Skip to content

ci: Log in to Quay with OIDC robot federation and select publish targets by environment - #9238

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1169-quay-oidc
Dec 3, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1169-quay-oidc

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Logs in to Quay with a short-lived robot token from OIDC robot federation instead of QUAY_PUBLISH_PASSWORD (ENG-1169), and makes the GitHub environment the single input for where an image is published.

  • .reusable-docker-publish.yml takes environment (dockerhub or quay) and a short target-image (e.g. flagsmith-api) instead of target-registry-url and full image names. The job runs in that environment.
  • Registry details come from the environment's variables: REGISTRY (docker.io / quay.io), REGISTRY_NAMESPACE (flagsmith / flagsmithofficial), REGISTRY_USERNAME (flagsmith / flagsmithofficial+ci_user). The image is REGISTRY/REGISTRY_NAMESPACE/target-image.
  • The registry trusts the environment's OIDC subject (repo:Flagsmith/flagsmith:environment:<env>), and the environment's deployment rules allow only v* tags. Quay federation subjects are exact-match, so a ref-based subject couldn't cover every tag.
  • The Quay job exchanges a GitHub OIDC token (audience quay) at https://quay.io/oauth2/federation/robot/token for a 1-hour robot token, then runs docker login.

…ets by environment

Quay publishing exchanges the job's GitHub OIDC token for a short-lived robot token instead of using QUAY_PUBLISH_PASSWORD. Publishing jobs run in the dockerhub or quay environment, whose variables (REGISTRY, REGISTRY_NAMESPACE, REGISTRY_USERNAME) set where they publish.
@khvn26
khvn26 requested a review from a team as a code owner December 3, 2026 18:14
@khvn26
khvn26 requested review from germangarces and removed request for a team December 3, 2026 18:14
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
docs Ignored Ignored Dec 3, 2026 6:14pm UTC
flagsmith-frontend-preview Ignored Ignored Dec 3, 2026 6:14pm UTC
flagsmith-frontend-staging Ignored Ignored Dec 3, 2026 6:14pm UTC

Request Review

@github-actions github-actions Bot added the ci-cd Build, test and deployment related label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9238 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9238 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9238 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9238 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9238 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9238 Finished ✅ Results ✅

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Updates Docker publishing to use environment-based image naming and short-lived OIDC authentication. It depends on external Quay/GitHub federation configuration.

Turn on auto-fix | Re-trigger cubic

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (0f7bd79) to head (f7bec53).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9238   +/-   ##
=======================================
  Coverage   98.96%   98.96%           
=======================================
  Files        1725     1725           
  Lines       73959    73959           
=======================================
  Hits        73193    73193           
  Misses        766      766           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24124 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  38 seconds
commit  f7bec53
info  🔄 Run: #24124 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #24124 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  54.7 seconds
commit  f7bec53
info  🔄 Run: #24124 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24124 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  37.1 seconds
commit  f7bec53
info  🔄 Run: #24124 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24124 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.3 seconds
commit  f7bec53
info  🔄 Run: #24124 (attempt 1)

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

31 screenshots compared. See report for details.
View full report

@khvn26
khvn26 merged commit 951d142 into main Dec 3, 2026
41 of 42 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1169-quay-oidc branch December 3, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Build, test and deployment related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants