Skip to content

Implement workload identity federation - #7330

Merged
nscuro merged 1 commit into
DependencyTrack:mainfrom
nscuro:workload-identity
Sep 18, 2026
Merged

nscuro merged 1 commit into
DependencyTrack:mainfrom
nscuro:workload-identity

Conversation

@nscuro

@nscuro nscuro commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Description

Allows service accounts to exchange tokens issued by an external IdP for a DT session token via an RFC 8693 compliant endpoint. This enables service accounts to authenticate without long-lived static credentials such as API keys.

The exchange supports both OIDC ID tokens and SPIFFE JWT-SVIDs. This change includes e2e tests for both using Ory Hydra (for OIDC) and SPIRE (for SPIFFE).

Addressed Issue

Closes #7056

Additional Details

See the included ADR for the full details.

The diff is unfortunately a bit bloated due to the many new OpenAPI spec files, and every new file having the full license header. I decided against artificially splitting this up because delivering the feature in a single functional package is more valuable and easier to verify end-to-end.

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly
  • This PR is a substantial change (per the ADR criteria), and I have added an ADR under docs/adr/

@nscuro nscuro added this to the 5.2 milestone Sep 17, 2026
@nscuro nscuro added the enhancement New feature or request label Sep 17, 2026
@owasp-dt-bot

owasp-dt-bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

codacy-production Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 1 medium

Results:
1 new issue

Category Results
Performance 1 medium

View in Codacy

🟢 Metrics 244 complexity

Metric Results
Complexity 244

View in Codacy

🟢 Coverage 90.94% diff coverage · +0.04% coverage variation

Metric Results
Coverage variation ✅ +0.04% coverage variation (-1.00%)
Diff coverage ✅ 90.94% diff coverage (70.00%)

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (9c44cd2) 44902 39270 87.46%
Head commit (3593802) 45479 (+577) 39795 (+525) 87.50% (+0.04%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#7330) 651 592 90.94%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@nscuro
nscuro force-pushed the workload-identity branch 6 times, most recently from f66f31a to 671e001 Compare September 18, 2026 09:30
Allows service accounts to exchange tokens issued by an external IdP for a DT session token via an RFC 8693 compliant endpoint (https://www.rfc-editor.org/info/rfc8693/). This enables service accounts to authenticate without long-lived static credentials such as API keys.

The exchange supports both OIDC ID tokens and SPIFFE JWT-SVIDs (https://spiffe.io/docs/latest/spiffe-specs/jwt-svid/). This change includes e2e tests for both using Ory Hydra (for OIDC) and SPIRE (for SPIFFE).

See the included ADR for the full details.

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro
nscuro merged commit a7a05c6 into DependencyTrack:main Sep 18, 2026
21 of 22 checks passed
@nscuro
nscuro deleted the workload-identity branch September 18, 2026 10:17
@nscuro nscuro mentioned this pull request Oct 26, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support workload identity federation as alternative to API keys

2 participants