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

auth/token: Fix ignored parameter warnings for valid parameters on token create #16938

Merged

Conversation

davidadeleon
Copy link
Contributor

This PR fixes a bug where a user would receive a warning that the endpoint ignored unrecognized parameters, when those parameters are in fact recognized and expected when calling vault token create in the CLI or the equivalent API call:

❯ ./vault token create -explicit-max-ttl="10m" -policy="default"
WARNING! The following warnings were returned from Vault:

  * TTL of "768h" exceeded the effective max_ttl of "10m"; TTL value is capped
  accordingly

  * Endpoint ignored these unrecognized parameters: [display_name entity_alias
  explicit_max_ttl num_uses period policies renewable ttl type]

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