-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Updating Token Roles Fields have surprising behaviour #6296
Comments
Documentation bug: we should document that this endpoint distinguishes between create and update. |
So I am guessing when updating, only fields provided are updated, while the fields that aren't provided are kept as-is. But, what about |
Seems like a bug. |
lawliet89
added a commit
to lawliet89/terraform-provider-vault
that referenced
this issue
Mar 1, 2019
dandandy
pushed a commit
to dandandy/terraform-provider-vault
that referenced
this issue
Jun 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When updating a token role, I notice a couple of behaviour that is surprising to me. I noticed this while trying to update the relevant resource in the Vault Terraform provider.
Consider an existing Token Role with the following JSON returned from Vault:
When I submit the following Request:
Vault returns the following response when we read the token role:
Of note:
path_suffix
andbound_cidrs
are not "unset" to an empty string and empty list respectively.allowed_policies
) during the update, the corresponding field is not reset to the default value in Vault (in this case[]
). I'm not sure if this is an expected behaviour or if this is a bug.Expected behavior
path_suffix
andbound_cidrs
to be set correctly when updatingEnvironment:
Vault Server Version (retrieve with
vault status
): Vault v1.0.3 ('85909e3373aa743c34a6a0ab59131f61fd9e8e43')Vault CLI Version (retrieve with
vault version
): N/AServer Operating System/Architecture: Linux AMD64
Additional Information
The text was updated successfully, but these errors were encountered: