Skip to content

ci: Log in to Quay with OIDC robot federation instead of a stored password - #9237

Closed
khvn26 wants to merge 4 commits into
kimgustyr/eng-1168-docker-hub-oidcfrom
kimgustyr/eng-1169-quay-oidc
Closed

khvn26 wants to merge 4 commits into
kimgustyr/eng-1168-docker-hub-oidcfrom
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.

Stacked on #9236. See Publishing Docker images.

@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 Preview Dec 3, 2026 6:03pm UTC
flagsmith-frontend-preview Ignored Ignored Preview Dec 3, 2026 6:03pm UTC
flagsmith-frontend-staging Ignored Ignored Preview Dec 3, 2026 6:03pm UTC

Request Review

@github-actions github-actions Bot added the ci-cd Build, test and deployment related label Dec 3, 2026
@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.11%. Comparing base (4d41d63) to head (abc1638).

Additional details and impacted files
@@                          Coverage Diff                           @@
##           kimgustyr/eng-1168-docker-hub-oidc    #9237      +/-   ##
======================================================================
- Coverage                               98.96%   98.11%   -0.86%     
======================================================================
  Files                                    1725     1725              
  Lines                                   73959    73959              
======================================================================
- Hits                                    73193    72562     -631     
- Misses                                    766     1397     +631     

☔ 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 added ci-cd Build, test and deployment related and removed ci-cd Build, test and deployment related labels Dec 3, 2026
@khvn26
khvn26 marked this pull request as ready for review December 3, 2026 17:27
@khvn26
khvn26 requested a review from a team as a code owner December 3, 2026 17:27
@khvn26
khvn26 requested review from emyller and removed request for a team December 3, 2026 17:27
@github-actions github-actions Bot removed 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-e2e:pr-9237 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-9237 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9237 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9237 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9237 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9237 Finished ✅ Results ✅

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

@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: Replaces stored-password Docker login for Quay with a short-lived OIDC robot-federation token and removes the docker-username/password inputs from the reusable workflow and Quay callers.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Dec 3, 2026 •

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

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  57.9 seconds
commit  abc1638
info  🔄 Run: #24122 (attempt 1)

🗂️ Previous results
✅ oss · depot-ubuntu-latest-16 — run #24122 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  33.5 seconds
commit  abc1638
info  🔄 Run: #24122 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24122 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  36.2 seconds
commit  abc1638
info  🔄 Run: #24122 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.4 seconds
commit  abc1638
info  🔄 Run: #24122 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #24120 (attempt 1)

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

passed  7 passed

Details

stats  7 tests across 6 suites
duration  1 minute, 1 second
commit  3d45356
info  🔄 Run: #24120 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24120 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  52.9 seconds
commit  3d45356
info  🔄 Run: #24120 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.1 seconds
commit  3d45356
info  🔄 Run: #24120 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.2 seconds
commit  3d45356
info  🔄 Run: #24120 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #24118 (attempt 1)

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  35.2 seconds
commit  9ceb7ae
info  🔄 Run: #24118 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24118 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  5.2 seconds
commit  9ceb7ae
info  🔄 Run: #24118 (attempt 1)

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

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

passed  26 passed

Details

stats  26 tests across 15 suites
duration  40.7 seconds
commit  9ceb7ae
info  🔄 Run: #24118 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.7 seconds
commit  9ceb7ae
info  🔄 Run: #24118 (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

@github-actions github-actions Bot added ci-cd Build, test and deployment related and removed ci-cd Build, test and deployment related labels Dec 3, 2026
…s from it

The reusable publish workflow takes environment (dockerhub or quay) and a short target-image name instead of target-registry-url and full image names. REGISTRY, REGISTRY_NAMESPACE and REGISTRY_USERNAME come from the environment's variables.

@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.

0 issues found across 3 files (changes from recent commits).

Confidence score: 5/5

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

Requires human review: Switches Quay publishing from stored-password login to a short-lived OIDC robot-federation token tied to GitHub environments; this is a security-sensitive authentication change and depends on Quay/GitHub environment configuration not visible in the diff.

Turn on auto-fix | Re-trigger cubic

@github-actions github-actions Bot added ci-cd Build, test and deployment related and removed ci-cd Build, test and deployment related labels Dec 3, 2026
@khvn26
khvn26 deleted the branch kimgustyr/eng-1168-docker-hub-oidc December 3, 2026 18:11
@khvn26 khvn26 closed this Dec 3, 2026
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.

1 participant