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

Allow @ to be part of key name in TOTP secret engine #5652

Merged
merged 4 commits into from
Oct 31, 2018

Conversation

vishalnayak
Copy link
Member

Fixes #5645

@vishalnayak vishalnayak added this to the 1.0 milestone Oct 30, 2018
@kalafut
Copy link
Contributor

kalafut commented Oct 31, 2018

I think the pattern in pathCode needs the new regex too since it takes in a key name.

@chrishoffman chrishoffman removed this from the 1.0 milestone Oct 31, 2018
@chrishoffman chrishoffman added this to the 1.0 milestone Oct 31, 2018
@@ -14,7 +14,7 @@ import (

func pathCode(b *backend) *framework.Path {
return &framework.Path{
Pattern: "code/" + framework.GenericNameRegex("name"),
Pattern: "code/" + framework.GenericNameWithAtRegex("name"),
Copy link
Member

Choose a reason for hiding this comment

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

Are we likely to see this used elsewhere? Should this really be in the framework package?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is unlikely that we see it elsewhere. I originally had it in the totp package itself, but then moved to framework to keep it close to GenericNameRegex to increases chances of changes to that reflected in this as well.

@vishalnayak vishalnayak merged commit 9a222b0 into master Oct 31, 2018
@vishalnayak vishalnayak deleted the totp-key-name-regex branch October 31, 2018 16:58
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.

4 participants