Skip to content
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

operator generate-root -decode: allow token from stdin #12881

Merged
merged 3 commits into from
Oct 20, 2021

Conversation

davidducros
Copy link
Contributor

Allow passing "-" as the value for -decode, causing the encoded token to
be read from stdin. This is intended to prevent leaking the encoded
token + otp into process logs in enterprise environments.

Allow passing "-" as the value for -decode, causing the encoded token to
be read from stdin. This is intended to prevent leaking the encoded
token + otp into process logs in enterprise environments.
@davidducros
Copy link
Contributor Author

Created issue #12882 to cover this request.

Copy link
Contributor

@ccapurso ccapurso left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I left one comment regarding validating the value read from stdin which likely needs to be addressed then verified with another test case.

@vercel vercel bot temporarily deployed to Preview – vault October 20, 2021 15:21 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 20, 2021 15:21 Inactive
Copy link
Contributor

@ccapurso ccapurso left a comment

Choose a reason for hiding this comment

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

Looks good, thanks again for the contribution!

@ccapurso ccapurso added this to the 1.9 milestone Oct 20, 2021
@ccapurso ccapurso merged commit ea05477 into hashicorp:main Oct 20, 2021
@davidducros
Copy link
Contributor Author

Thanks for the speedy response @ccapurso

@davidducros davidducros deleted the allow-decode-from-stdin branch October 21, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

operator generate-root -decode: allow passing encoded token via stdin
2 participants