-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Token lookup via accessor returns the properties of another accessor #2916
Comments
Is it reproducible with a normal Vault dev server? |
Not as far as I've tested. I've only been able to reproduce this by launching the core programatically |
Oh, I see what's happening. I launched the core with a dev root token, and then I created another root token and forced the same ID on it. So there's two accessors, that lead to the same ID. I imagine this is not a problem with UUIDs, but is this the expected behaviour? Can be reproduced with normal vault server by just creating two tokens with the same ID (root token required) |
I'm scheduling this to fix as a bug in that we shouldn't allow the same ID to be used multiple times. But it's also not at all something you can do in the normal case (and really, we've been planning to take out the ability to ever specify the ID for a while, and may deprecate it with 0.8 and see if it's going to completely screw with anyone). |
I see, makes sense! Would removing id parameter imply removing the ability to force root token id with a dev server? |
No, we'd keep that as it's super useful for dev. |
Disclaimer: This bug is reproduced by programatically launching the vault core.
Description: The launched dev core has one accessor that, when looked up, refers to another accessor.
Note the difference between the accessor in command and returned value.
The code that launches the vault core can be found here https://github.com/Caiyeon/goldfish/blob/master/config/dev.go#L154
If you want, you can pull the repo and run
go run server.go -dev
. Vault will be accessible athttp://127.0.0.1:8200
with root tokengoldfish
. This is reproducible in minutesThe text was updated successfully, but these errors were encountered: