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

make token create case insensitive [VAULT-1021] #10743

Merged
merged 4 commits into from
Jan 27, 2021
Merged

make token create case insensitive [VAULT-1021] #10743

merged 4 commits into from
Jan 27, 2021

Conversation

HridoyRoy
Copy link
Contributor

https://hashicorp.atlassian.net/browse/VAULT-1021

This allows for tokens creation to be case insensitive against allowed aliases. Previously there was a mix of case sensitivity and case insensitivity, so mixed case aliases were disallowed. Note that entity aliases will still retain their case sensitivity internally, but for every verification step, they will be checked in a case-insensitive way.

Copy link
Contributor

@mgritter mgritter 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.

Comment on lines 110 to 114
been specified, the entity will not be inherited from the parent. Note that
`allowed_entity_aliases` is not case sensitive. For example, creating tokens
with alias `aLiAs` and alias `alias` will both succeed even if the
`allowed_entity_aliases` list only allows for token creation for entity alias
`alias`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a bit wordy, I would maybe note in allowed_entity_aliases that the matching is not case-sensitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@vercel
Copy link

vercel bot commented Jan 27, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

vault-storybook – ./ui

🔍 Inspect: https://vercel.com/hashicorp/vault-storybook/elozqdr8v
✅ Preview: Canceled

@HridoyRoy HridoyRoy merged commit 22d741e into master Jan 27, 2021
@HridoyRoy HridoyRoy deleted the vault-1021 branch January 27, 2021 17:56
jartek pushed a commit to jartek/vault that referenced this pull request Sep 11, 2021
* make token create case insensitive

* changelog

* comment update
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