Skip to content

Use datadog image registry for gitlab ci jobs#316

Merged
vickenty merged 1 commit into
masterfrom
vickenty/ddi
Jul 23, 2026
Merged

Use datadog image registry for gitlab ci jobs#316
vickenty merged 1 commit into
masterfrom
vickenty/ddi

Conversation

@vickenty

Copy link
Copy Markdown
Contributor

No description provided.

@vickenty
vickenty marked this pull request as ready for review July 23, 2026 11:11
@vickenty
vickenty requested a review from a team as a code owner July 23, 2026 11:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d09241ee40

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .gitlab-ci.yml
- "docker-in-docker:amd64"

image: maven:3.9-eclipse-temurin-17
image: $REGISTRY/images/mirror/maven:3.9-eclipse-temurin-17

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin the release image registry

For this manual release job, GitLab supports CI/CD variables in image and manual/pipeline variables have higher precedence than top-level .gitlab-ci.yml defaults, so a user who can start the job with variables can set REGISTRY=attacker.example and make the secret-fetching release job run from attacker.example/images/mirror/maven:.... Because the script then retrieves Sonatype credentials and the GPG private key from SSM, keep this image reference fixed to the trusted registry instead of using an externally overrideable variable.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is a concern. Is there a reason we can't just hardcode $REGISTRY?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easier to maintain if this needs to change. Users with access to Gitlab to run the pipeline will likely have write access, I'm not sure this would actually protect us from anything.

@vickenty
vickenty merged commit 80974ab into master Jul 23, 2026
19 checks passed
@vickenty
vickenty deleted the vickenty/ddi branch July 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants