Skip to content

TTS-4498 Restore production ECR pull access after CDK bootstrap - #563

Merged
docwho2 merged 1 commit into
mainfrom
codex/fix-ecr-promotion-permissions
Nov 25, 2026
Merged

docwho2 merged 1 commit into
mainfrom
codex/fix-ecr-promotion-permissions

Conversation

@docwho2

@docwho2 docwho2 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Production image promotion fails with ECR HTTP 403 after a CDK bootstrap upgrade replaces the STAGE asset repository policy. The production role has identity-side access, but the source repository no longer grants cross-account pull access. STAGE deployment and virus-scan integration tests passed in run 45619413220; production stopped before application deployment.

This change reconciles the source repository policy immediately after STAGE bootstrap. It grants only BatchCheckLayerAvailability, BatchGetImage, and GetDownloadUrlForLayer to the verified production GitHub role, preserving all unrelated policy statements. The default principal is arn:aws:iam::359590772493:role/github-oidc-provider-Role-F6vlRCdf8Hkx; PROD_PROMOTION_ROLE_ARN can override it if the role is replaced. Repeated runs skip unchanged policies, and read/parse/write failures stop the deployment rather than replacing an unreadable policy.

Validation:

  • python3 -m unittest discover -s .github/scripts -p 'test_*.py' -v: 7 tests passed; also added to PR CI.
  • Actionlint 1.7.12, workflow YAML parsing, shell syntax checks, and git diff --check: passed.
  • Checked that reconciliation immediately follows STAGE bootstrap.
  • No Java/application changes; local Maven build and live AWS mutation/promotion were not run. End-to-end access validation occurs when an approved merge runs deployment.

The separate credential-helper fix addresses Docker's storage warning; it does not repair this authorization failure. Review this permission fix first. No merge or deployment was performed.

Tracking: TTS-4498.

Companion PR: #564 — ECR credential helper.

@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:05.224023Z 6c6c5b3 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 closed this in #564 Nov 25, 2026
@docwho2 docwho2 reopened this Nov 25, 2026
@docwho2
docwho2 merged commit 7c57f60 into main Nov 25, 2026
8 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