Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(vault-jwt): store vault token for use in vault jwt module #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

moo-im-a-cow
Copy link
Contributor

currently, the vault jwt module generates a vault token, but it doesnt actually store it for future vault commands to use.

even with the module configured, running vault token lookup fails, because the login command in the module just prints the token but doesnt keep it to be used by future calls to vault

added -field=token to the write command, which makes it print only the token itself to stdout, not the rest of the info about the token
then pipe that into vault login -, which reads from stdin, and does the process of actually storing the token for future use.

(compared to the other vault coder modules which both call vault login, but this one doesnt, but it should.)

@cdr-bot cdr-bot bot added the community Pull Requests and issues created by the community. label Apr 22, 2025
@moo-im-a-cow moo-im-a-cow changed the title make vault jwt module log into vault properly. fix(vault-jwt): make vault jwt module store vault token for use. Apr 22, 2025
@moo-im-a-cow moo-im-a-cow changed the title fix(vault-jwt): make vault jwt module store vault token for use. fix(vault-jwt): make vault jwt module store vault token for use Apr 22, 2025
@moo-im-a-cow moo-im-a-cow changed the title fix(vault-jwt): make vault jwt module store vault token for use fix(vault-jwt): store vault token for use in vault jwt module Apr 22, 2025
@matifali
Copy link
Member

Thanks @moo-im-a-cow, can we bump the module version by one patch version? I can then make a release.

@moo-im-a-cow
Copy link
Contributor Author

moo-im-a-cow commented Apr 22, 2025

Thanks @moo-im-a-cow, can we bump the module version by one patch version? I can then make a release.

is that just in the readme file or somewhere else too?

i've incremented the module version to 1.0.21 in the readme file.

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

Thanks for contribution.

@matifali matifali enabled auto-merge (squash) April 22, 2025 09:50
@matifali matifali merged commit 5c5cf8e into coder:main Apr 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Pull Requests and issues created by the community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants