-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
404 response for LIST sys/config/ui/headers endpoint if no headers set #20740
Comments
Although surprising, and probably not the best API design, this behaviour is the same across most (all?) of the LIST endpoints in Vault. It would be weird for |
Thank you for bringing this issue to our attention. Unfortunately, the Vault API has returned HTTP 404 for List operations that do not have any results for quite some time now. We consider the potential adverse effects of changing this behavior would outweigh the clarity that this change would bring. Given this assessment, I will close this issue. I would encourage you to continue raising issues like this in the future and we will continue to evaluate them to see what can be done on a case by case basis. |
Will documentation be updated to reflect this policy? |
As this is a cross-cutting truth across the entire Vault API, not just one endpoint, it would make more sense to put it in https://developer.hashicorp.com/vault/api-docs, I think. I'd be open to writing a PR for the docs, but only if someone from HashiCorp is explicitly interested in reviewing and merging it, as I already have 8 open PRs waiting on HashiCorp, some pending for months, and it's getting a bit discouraging. |
I've just hit a similar problem while listing entity aliases, it should definitely be in the doc |
Describe the bug
If no header is configured for via the
sys/config/ui/headers/:name
endpoint then a 404 error is returned by the list ui headers endpointhttps://developer.hashicorp.com/vault/api-docs/system/config-ui#list-ui-headers
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A 200 response is returned for the LIST sys/config/ui/headers endpoint even if there are no headers configured.
Environment:
1.13.2
The text was updated successfully, but these errors were encountered: