-
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 backend documentation inconsistencies #412
Comments
Hey @jefferai I think the command is functioning as intended and this is actually a docs bug. What do you think? |
@sethvargo I think these are both documentation bugs, although I haven't checked |
Please note problem number 3 that I just added to the original comment above. |
@jefferai Thanks for catching these! The first one is not a "bug" per-se, the CLI tool just is mapping the |
I noticed a few inconsistencies today with the Token auth backend:
The docs specify
no_parent
to create an orphan token, but the help text from thetoken-create
command says that this command is calledorphan
.The docs say that if
lease
is not specified, "the token is valid indefinitely." But this isn't true; it's valid for Vault's hard-coded limit of 30 days. Someone that doesn't carefully look at the returnedtoken_duration
and only uses the documentation may get a rude awakening a month down the line.The docs for
auth/token/create
indicate that to add metadata to a token you usemetadata
, but when doing this via the Go API it doesn't work; I need to usemeta
. However, from the command line client,metadata
does work, because it's not converting from JSON like the API.The text was updated successfully, but these errors were encountered: