feat(ci-oidc): admin UI for CI OIDC provider and identity mapping management#390
Draft
luko0610 wants to merge 3 commits into
Draft
feat(ci-oidc): admin UI for CI OIDC provider and identity mapping management#390luko0610 wants to merge 3 commits into
luko0610 wants to merge 3 commits into
Conversation
a3b9ea7 to
f5ba4b7
Compare
2 tasks
5720ed8 to
56944eb
Compare
…agement Adds a dedicated CI OIDC management interface under Settings → SSO → CI Providers, allowing administrators to configure keyless CI/CD authentication without storing static secrets. Types (src/types/ci-oidc.ts): - CiOidcProvider, CiOidcIdentityMapping, and their request/response types matching the backend API schema API client (src/lib/api/ci-oidc.ts): - CRUD helpers for providers and identity mappings - Toggle enable/disable for both providers and individual mappings Pages: - src/app/(app)/(admin)/settings/sso/ci/page.tsx Full management page: provider list, create/edit/delete providers, nested identity mapping management with claim-filter editing, priority ordering, and role assignment - src/app/(app)/(admin)/settings/sso/page.tsx Extended SSO settings index with CI Providers tab alongside existing OIDC SSO configuration
56944eb to
0df19c0
Compare
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Adds the admin interface for managing CI OIDC providers and identity mappings introduced in the backend companion PR (artifact-keeper#1).
Administrators can configure which CI/CD systems (GitLab CI, GitHub Actions, generic OIDC) are trusted to exchange tokens, and define fine-grained claim-filter rules that determine which pipelines get access and what role they receive — all without storing static secrets.
How it works
The new CI Providers tab appears under Settings → SSO alongside the existing OIDC SSO configuration.
Provider management
Identity mapping management
New files
src/types/ci-oidc.tsCiOidcProvider,CiOidcIdentityMapping, and all request/response shapessrc/lib/api/ci-oidc.tssrc/app/(app)/(admin)/settings/sso/ci/page.tsxModified files
src/app/(app)/(admin)/settings/sso/page.tsx— added CI Providers tab to the SSO settings indexVerified end-to-end
ci-test/hello:latest— run #25616754667ci-test/hello-gitlab:latest— pipeline #2513124814Companion PR
Backend: artifact-keeper#1
Pipeline usage
The token exchange is a single
curl/wgetcall. To avoid copying it into every project, it should be centralized once and called from each pipeline.The exchange call (what's happening under the hood)
GitHub Actions — reusable workflow (define once)
Create
.github/workflows/ak-login.ymlin a central org repo (e.g.your-org/ci-templates):Calling it from any project (zero curl duplication):
GitLab CI — include template (define once)
Create a file in a central project (e.g.
your-group/ci-templates), sayak-login.yml:Calling it from any project (zero curl duplication):