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

Chef rotate all keys -- rotates a deleted key #257

Closed
stevendanna opened this issue Feb 13, 2017 · 0 comments · Fixed by #351
Closed

Chef rotate all keys -- rotates a deleted key #257

stevendanna opened this issue Feb 13, 2017 · 0 comments · Fixed by #351
Assignees

Comments

@stevendanna
Copy link

From chef/chef-server#1079:

So if '_keys' is anywhere in the name of the vault item, the rotate vault keys command will dismiss the rest of the vault item name and attempt to rotate a key on an invalid name...
Example :
Test_keystore - is read as - Testtore_keys_keys.
And
Test_keystore2 - is read as - Testtore2_keys_keys.

It wasn't attempting to read a deleted vault item, it just seems to escape the string as soon as '_keys' is read.

I haven't been able to look into this more deeply but it smells like an unanchored regular expression somewhere.

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 a pull request may close this issue.

2 participants