Skip to content

ci: use the dedicated per-repo ECR publish role - #1011

Merged
Piccirello merged 2 commits into
mainfrom
ecr-per-repo-publish-role
Jul 31, 2026
Merged

ci: use the dedicated per-repo ECR publish role#1011
Piccirello merged 2 commits into
mainfrom
ecr-per-repo-publish-role

Conversation

@Piccirello

@Piccirello Piccirello commented Jul 30, 2026

Copy link
Copy Markdown
Member

Migrates duckgres's prod image pushers (the four container-image-*-cd.yml CD workflows) off the shared github-posthog-ecr-publish-role to the dedicated main-only github-duckgres-publish-role, referenced via the repo variable AWS_ECR_PUBLISH_IAM_ROLE.

e2e-mw-dev.yml and scenario-dev.yml push test images to root ECR on PRs/dispatch via _image-build.yml; the dedicated role is main-only, so those intentionally stay on the shared role for now (they need an any-ref role — a follow-up, same -prs-style decision as charts/housekeeper). So this is a partial cutover: duckgres stays in the shared role's trust until the test workflows are handled.

Part of splitting the shared role (trusts ~18 repos on resource:*) into per-repo least-privilege roles. The variable is already set.

Points this repo's ECR publish at its own least-privilege role via the repo variable `AWS_ECR_PUBLISH_IAM_ROLE` (set to `arn:aws:iam::795637471508:role/github-<repo>-publish-role`), instead of the shared `github-posthog-ecr-publish-role`. Part of splitting the shared role (which trusts ~18 repos on `resource:*`) into per-repo roles scoped to only each repo's own images and refs. The variable is already set; merging this completes the cutover.
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

Test Impact Plan

Deterministic summary of how this PR changes tests, CI runners, and coverage-risk signals.

Summary

Area Added Changed Deleted
Test files 0 0 0
E2E/journey files 0 0 0
Workflow files 0 4 0

Signals

  • Test cases: +0 / -0
  • Assertions: +0 / -0
  • Skips or known failures added: 0
  • Workflow continue-on-error added: 0
  • Workflow path filters added: 0
  • Test commands removed from justfile: 0
  • E2E/journey retry lines added: 0

Coverage risk: neutral or increased

No coverage-reduction warnings detected.

e2e-mw-dev and scenario-dev push test images to root ECR on PRs/dispatch via
_image-build.yml. The dedicated github-duckgres-publish-role is main-only, so
they must keep using the shared role (any-ref trust) for now. Only the
container-image-*-cd.yml prod pushers migrate to the per-repo role here.
@Piccirello
Piccirello marked this pull request as ready for review July 31, 2026 17:54
@Piccirello
Piccirello merged commit 2b8e64d into main Jul 31, 2026
25 checks passed
@Piccirello
Piccirello deleted the ecr-per-repo-publish-role branch July 31, 2026 17:55
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