Skip to content

feat: Add Vault signer for JWT#4512

Merged
nabokihms merged 6 commits into
dexidp:masterfrom
deckhouse:vault-signer
Feb 10, 2026
Merged

feat: Add Vault signer for JWT#4512
nabokihms merged 6 commits into
dexidp:masterfrom
deckhouse:vault-signer

Conversation

@nabokihms
Copy link
Copy Markdown
Member

@nabokihms nabokihms commented Feb 6, 2026

Overview

This pull request introduces a new, pluggable signing interface for JWT tokens in the server, allowing for both local and Vault-based signing. The changes refactor how signing keys are managed and accessed throughout the codebase, replacing direct storage access with a new Signer abstraction, and update configuration, server initialization, and key verification logic accordingly.

What this PR does / why we need it

Outsourcing the signing function to an external provider is crucial for security reasons. Signer abstraction allows us to add more signers in the future.

Special notes for your reviewer

Docs https://dexidp.io/docs/configuration/tokens/#token-signing-configuration

@nabokihms nabokihms force-pushed the vault-signer branch 2 times, most recently from 7e4d504 to 7854bc4 Compare February 6, 2026 10:54
Introduce a signer interface with Vault and local implementations for JWT signing.

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
Comment thread server/handlers.go Outdated
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
@nabokihms
Copy link
Copy Markdown
Member Author

@sagikazarmark could you please take a look? I plan to add integration tests in future releases.

Copy link
Copy Markdown
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

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

Couple thoughts

Comment thread server/signer_vault.go
Comment thread server/signer_vault.go
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
@nabokihms
Copy link
Copy Markdown
Member Author

@sagikazarmark if you are ok, let's merge this, and I will provide integration tests.

nabokihms and others added 2 commits February 10, 2026 07:39
Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: Maksim Nabokikh <max.nabokih@gmail.com>
@nabokihms nabokihms merged commit 56958b1 into dexidp:master Feb 10, 2026
9 checks passed
@nabokihms nabokihms added release-note/new-feature Release note: Exciting New Features and removed kind/enhancement labels Feb 23, 2026
@nabokihms
Copy link
Copy Markdown
Member Author

@whs whs mentioned this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/new-feature Release note: Exciting New Features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants