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

Pad TOTP input key so that it can be parsed by base32.DecodeString #11887

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

mjrlee
Copy link
Contributor

@mjrlee mjrlee commented Jun 17, 2021

base32.DecodeString expects length 8 for the buffer

Resolves issue #11874

@vercel vercel bot temporarily deployed to Preview – vault-storybook June 17, 2021 17:08 Inactive
@vercel vercel bot temporarily deployed to Preview – vault June 17, 2021 17:08 Inactive
@ncabatoff
Copy link
Collaborator

Hi @MartinLeedotOrg,

This looks great, thanks! Could I trouble you to add a changelog entry, as per https://github.com/hashicorp/vault/blob/main/CONTRIBUTING.md#changelog-entries ?

Add padding to the input key to ensure it reaches that length.
@mjrlee
Copy link
Contributor Author

mjrlee commented Jul 14, 2021

Done!

@ncabatoff ncabatoff merged commit 2155b1d into hashicorp:main Jul 14, 2021
@ncabatoff
Copy link
Collaborator

Thanks!

jartek pushed a commit to jartek/vault that referenced this pull request Sep 11, 2021
Add padding to the input key to ensure it reaches that length.
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.

None yet

2 participants