Skip to content

ci: Log in to Docker Hub with OIDC instead of a stored token - #9236

Merged
khvn26 merged 2 commits into
mainfrom
kimgustyr/eng-1168-docker-hub-oidc
Dec 3, 2026
Merged

khvn26 merged 2 commits into
mainfrom
kimgustyr/eng-1168-docker-hub-oidc

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Logs in to Docker Hub with a short-lived OIDC token instead of a stored access token (ENG-1168).

  • The publishing job runs in the dockerhub environment, whose deployment rules allow only v* tags (plus main where the workflow can be run manually).
  • docker/login-action v4.8.0 exchanges the job's GitHub OIDC token through our Docker OIDC connection (vars.DOCKERHUB_OIDC_CONNECTIONID). The connection trusts repo:Flagsmith/*:environment:dockerhub to push only to our listed images.
  • The publishing job has id-token: write.

The old Docker Hub secrets stay until a release has published through OIDC; they're deleted afterwards. See Publishing Docker images.

Quay targets keep using QUAY_PUBLISH_PASSWORD until ENG-1169 (#9237).

@khvn26
khvn26 requested a review from a team as a code owner December 3, 2026 17:03
@khvn26
khvn26 requested review from Zaimwa9 and removed request for a team December 3, 2026 17:03
@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 5:34pm UTC
flagsmith-frontend-preview Ignored Ignored Preview Dec 3, 2026 5:34pm UTC
flagsmith-frontend-staging Ignored Ignored Preview Dec 3, 2026 5:34pm UTC

Request Review

@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-9236 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-9236 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9236 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9236 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9236 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 1 file

Confidence score: 5/5

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

Requires human review: Switches Docker Hub publishing auth from a stored token to OIDC; the OIDC connection and required id-token permission are not verifiable from this diff, and the change alters the reusable workflow's credential inputs.

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 (98bd7bc) to head (4d41d63).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9236      +/-   ##
==========================================
+ Coverage   98.11%   98.96%   +0.85%     
==========================================
  Files        1725     1725              
  Lines       73959    73959              
==========================================
+ Hits        72562    73193     +631     
+ Misses       1397      766     -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 commented Dec 3, 2026 •

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

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  34.5 seconds
commit  4d41d63
info  🔄 Run: #24119 (attempt 1)

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

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

passed  5 passed

Details

stats  5 tests across 5 suites
duration  53.6 seconds
commit  4d41d63
info  🔄 Run: #24119 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.4 seconds
commit  4d41d63
info  🔄 Run: #24119 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.8 seconds
commit  4d41d63
info  🔄 Run: #24119 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  58.2 seconds
commit  7d16db8
info  🔄 Run: #24115 (attempt 1)

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

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

passed  7 passed

Details

stats  7 tests across 5 suites
duration  10.4 seconds
commit  7d16db8
info  🔄 Run: #24115 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24115 (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  7d16db8
info  🔄 Run: #24115 (attempt 1)

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

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.1 seconds
commit  7d16db8
info  🔄 Run: #24115 (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

The Docker OIDC connection trusts repo:Flagsmith/*:environment:dockerhub, and the environment's deployment rules limit publishing to release tags (and main where the workflow can be run manually).
@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

@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 1 file (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 Docker Hub release publishing from a stored token to short-lived OIDC and adds a dockerhub deployment environment. The OIDC trust, id-token permission, and environment protection rules are not verifiable from this diff, so the release-auth change needs human sign-off.

Turn on auto-fix | Re-trigger cubic

@khvn26
khvn26 merged commit 0f7bd79 into main Dec 3, 2026
40 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1168-docker-hub-oidc branch December 3, 2026 18:11
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.

2 participants