Skip to content

fix(docker-release): derive the repo-level push role by convention#42

Merged
blairham merged 1 commit into
mainfrom
fix/docker-release-repo-role
Jul 5, 2026
Merged

fix(docker-release): derive the repo-level push role by convention#42
blairham merged 1 commit into
mainfrom
fix/docker-release-repo-role

Conversation

@blairham

@blairham blairham commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Trading's first stevedore run (post pinpredict/trading#1970) failed at Configure AWS credentials with Credentials could not be loadedsecrets.AWS_ROLE_ARN doesn't exist at org or repo level. The pre-stevedore matrix never hit that fallback because every matrix entry carried its per-service xp-<svc>-gha-push role; the single-job stevedore workflow is the first consumer of repo-level credentials.

Fix: default role-to-assume to arn:aws:iam::784682930591:role/xp-<caller-repo>-gha-push (the existing repo-level role convention — xp-trading-gha-push exists), with secrets.AWS_ROLE_ARN kept as an explicit override.

⚠️ Companion IAM fix required: xp-trading-gha-push currently has no policies (its 22-repo ECR policy lived in trading's retired .platform/manifests/ tree and was pruned when trading moved to per-service yamls). It needs an ECR push/describe policy on repository/trading/* before the run can succeed — tracked separately.

🤖 Generated with Claude Code

secrets.AWS_ROLE_ARN does not exist (org or repo) — the pre-stevedore
matrix never exercised the fallback because discover-services supplied
per-service roles, so the stevedore single job failed its AssumeRole
with "Credentials could not be loaded" on trading's first run. Default
to arn:aws:iam::784682930591:role/xp-<repo>-gha-push from the caller
repo name (the repo-level role convention; trading's already exists),
keeping the secret as an explicit override.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@blairham
blairham merged commit fc77745 into main Jul 5, 2026
2 checks passed
@blairham
blairham deleted the fix/docker-release-repo-role branch July 5, 2026 21:35
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