You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When updating an existing identity group by its name or its id via the CLI writeor via the HTTP API POST requests, an empty response is returned from Vault. The changes are applied in the backend.
Expected behavior
According to the documentation (Update group by ID and Create/Update group by name) the "update" operation should return information about the group the same way as "create" does.
Environment:
Vault Server Version : 1.17.6
Vault CLI Version : Vault v1.18.2 (e36bac59ddb8e10e8912c0ddb44416c850939855), built 2024-11-20T11:24:56Z
Server Operating System/Architecture: Ubuntu 20.04 server, MacOS 15.1.1 client
Additional context
As the docs do not explicitly state what the response in case of "update" should be (it just gives a "sample), here's a supporting case:
We manage the identity groups via a custom "IaC" solution. To keep the Vault up to date, we:
Iterate over the groups in the config.
write the group to Vault (to either create or update it).
read the group to fetch its ID (which is not stored in the local config as it's Vault generated)
write a group alias to Vault (using the group fetched in 3.).
Having at least the ID always returned from the write operation, no matter if it's an "update" or "create" would save us a read for each of the groups.
The text was updated successfully, but these errors were encountered:
For more context, I found a related issue: #6852. Unfortunately seems like this is an expected behaviour for the sake of consistency 🙃 However, that was over 3 years ago - maybe things have changed?
Describe the bug
When updating an existing identity group by its name or its id via the CLI
write
or via the HTTP APIPOST
requests, an empty response is returned from Vault. The changes are applied in the backend.To Reproduce
We can directly follow the example from the documentation.
Prepare the payload for group creation
Create the group
Validate group's existence
Prepare the payload for group update (policy change in this case)
Update the group
empty 204 response received from Vault
(optional) Validate the update
Expected behavior
According to the documentation (Update group by ID and Create/Update group by name) the "update" operation should return information about the group the same way as "create" does.
Environment:
Vault Server Version :
1.17.6
Vault CLI Version :
Vault v1.18.2 (e36bac59ddb8e10e8912c0ddb44416c850939855), built 2024-11-20T11:24:56Z
Server Operating System/Architecture: Ubuntu 20.04 server, MacOS 15.1.1 client
Additional context
As the docs do not explicitly state what the response in case of "update" should be (it just gives a "sample), here's a supporting case:
The text was updated successfully, but these errors were encountered: