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

[Token Auth] Roles not returning token_no_default_policy #12225

Closed
tristanmorgan opened this issue Aug 2, 2021 · 3 comments · Fixed by #12565
Closed

[Token Auth] Roles not returning token_no_default_policy #12225

tristanmorgan opened this issue Aug 2, 2021 · 3 comments · Fixed by #12565
Labels
bug Used to indicate a potential bug core/token core Issues and Pull-Requests specific to Vault Core

Comments

@tristanmorgan
Copy link
Member

Describe the bug
The status of token_no_default_policy is not being returned when reading token role configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Run vault auth enable token
  2. Run vault write auth/token/roles/test token_no_default_policy=true
  3. Run vault read auth/token/roles/test
  4. token_no_default_policy is not being returned in response

Expected behavior
token_no_default_policy should be displayed (if the default value had been overwritten?)

Environment:

  • Vault Server Version: 1.8.0, 1.7.3, 1.6.5
  • Vault CLI Version : 1.8.0
  • Server Operating System/Architecture: Linux amd64

Vault server configuration file(s):

-dev","-dev-listen-address=0.0.0.0:8200

Additional context
I thought it was a problem with the Terraform Vault Provider but even checking cURL showed it was Vault.

@tristanmorgan
Copy link
Member Author

Additional additional context
vault read sys/raw/sys/token/roles/test does show that data is present.

@tristanmorgan
Copy link
Member Author

Seems the code is missing from vault/token_store.go tokenStoreRoleRead()

@pmmukh pmmukh added bug Used to indicate a potential bug core Issues and Pull-Requests specific to Vault Core core/token labels Sep 1, 2021
@hsimon-hashicorp
Copy link
Contributor

Hi @tristanmorgan! We will be taking a look at this soon, however, please feel free to work on a PR and submit it for review too if this is an issue you might feel comfortable tackling. Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug core/token core Issues and Pull-Requests specific to Vault Core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants