-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
no response from post to /identity/entity/id/:id #6852
Comments
Can you show output with the exact curl command with |
sure. I've put in "read" statements as well to show that the data has changed ;)
so as you can see, the metadata has been changed, but no output |
What version of Vault? I believe this changed recently and the docs reflect the latest released version. |
I mentioned in the initial description Vault Server Version : 1.1.1 |
yeah, I see that 1.1.3 is available. Will check that out. Perhaps the docs could / should say what version of vault they apply to. |
This looks to be the same issue I'm seeing (server version 1.2.3) with updating an A create/POST returns a vault/vault/identity_store_entities.go Lines 259 to 262 in 98b35d3
The original PR (#5355) shows documentation with status 200 being returned (status codes have since been removed from the documentation). |
This ambiguous return behavior is present in a number of places where there is a This is really a maddening behavior as any clients working with these API objects (Entity, Alias, certificate auth roles, perhaps others) requires 2 API calls in order to conduct and update and then retrieve the complete updated object. The additional calls add complexity and latency to interactions with vault AND quickly breaks when you start dealing with tokens designed for a specific and limited number of uses. It would be much better if the response on an update was a 200 and the entire object representation was returned and a 201 on a create and likewise the entire object representation was returned. This behavior would be consistent both with expectations and the relevant HTTP protocol standards. |
Another issue open over a year, with no indication that any action will be taken. Pretty difficult to sell people internally on the value of hashicorp's enterprise solutions when issues like this just lay dormant forever. |
Hello, I'd like to pick this issue and work on it. Before I go ahead with the implementation I would like to discuss the path that the change should take. Is the expectation only to update the status code? Or would it make sense to have the entire object representation be returned as pointed out by @drawks in both create and update scenarios and reflect so in the documentation as well? |
Hi @priyaaank, Sorry, we made a mistake in tagging this as a @drawks: You make some good points, namely (1) it would be nice to return 201 for creations, and (2) it would be convenient for clients if we could save them a roundtrip by returning the resource on create/update. Unfortunately, both of these changes would make this API inconsistent with the rest of Vault. A wholesale change is possible in a v2 of the API, but we don't have any immediate plans of that nature. |
Describe the bug
The api documentation (https://www.vaultproject.io/api/secret/identity/entity.html) states that a
post
to/identity/entity/id/:id
has a response similar toThe actual response is null
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the response suggested by the documentation
Environment:
The text was updated successfully, but these errors were encountered: