Skip to content

TTS-4498 Stop storing Docker ECR tokens during image promotion - #564

Merged
docwho2 merged 1 commit into
mainfrom
codex/ecr-credential-helper
Nov 25, 2026
Merged

docwho2 merged 1 commit into
mainfrom
codex/ecr-credential-helper

Conversation

@docwho2

@docwho2 docwho2 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The production promotion step currently uses docker login for both ECR registries, which writes base64-encoded authorization tokens to Docker's configuration and emits the unencrypted-credentials warning.

Install the Amazon ECR credential helper on the production Ubuntu runner and configure it for the source and destination registries. Docker obtains credentials from the current AWS role on demand. Disable the helper's disk token cache, isolate the Docker configuration in a private temporary directory, and remove that directory on both success and failure. Image pull/tag/push and digest-based deployment behavior remain the same.

Validation:

  • Actionlint 1.7.12, workflow YAML parsing, shell syntax checks, and git diff --check: passed.
  • Executed the actual promotion shell block with mocked AWS/Docker commands for success, pull failure, and push failure. Verified both helper mappings, mode 0600 configuration, disabled token caching, digest output on success, and cleanup in every case.
  • No Java/application changes; local Maven build, Ubuntu package installation, and live registry operations were not run. Those require the deployment runner after approved merge.

This addresses the credential-storage warning only. The ECR HTTP 403 requires the separate source-repository permission fix; merge that fix first. No merge or deployment was performed.

Tracking: TTS-4498.

Authorization fix: #563 — restore cross-account ECR pull access.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T13:21:01.128140Z dd44c32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@docwho2
docwho2 merged commit e109690 into main Nov 25, 2026
5 checks passed
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.

1 participant