Skip to content

feat(hashivault): token helper#2174

Merged
bobcallaway merged 1 commit intosigstore:mainfrom
simonostendorf:feat/hashivault/token-helper
Oct 17, 2025
Merged

feat(hashivault): token helper#2174
bobcallaway merged 1 commit intosigstore:mainfrom
simonostendorf:feat/hashivault/token-helper

Conversation

@simonostendorf
Copy link
Contributor

Resolves sigstore/cosign#2861

Summary

I want to use cosign in kubernetes with vault (e.g. with connaisseur).

Currently the token has to be mounted in ~/.vault-token or set via VAULT_TOKEN. When using dynamic regenerated tokens, the vault-agent-injector can/should be used. But the agent injector can only save the token to a file named token.

This PR allows token helpers so that a custom token helper can return the vault token that the agent injector injected into the pod.

Release Note

Added ability to use token helpers for Hashicorp Vault.

Documentation

none, the vault-token file is currently not documented either (i guess) and as mentioned in cosign#2861 we are keeping this as near to the vault cli as possible, so its documented there.

@simonostendorf simonostendorf requested review from a team as code owners October 15, 2025 12:43
Signed-off-by: Simon Ostendorf <simon.ostendorf@cancom.de>
@simonostendorf simonostendorf force-pushed the feat/hashivault/token-helper branch from cdac2f7 to c3b6153 Compare October 16, 2025 07:09
@bobcallaway bobcallaway merged commit af4ca14 into sigstore:main Oct 17, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Storing VAULT_TOKEN as environment variable - security concern?

2 participants