-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
OpenAPI Explorer (Swagger UI) "Try it out" functionality broken for ListOperations / ones with query parameters #18614
Comments
Thanks for fixing! |
OK! But, it's not related to this closed issue, so this isn't a good place to report that. Actually, I've just loaded up the API Explorer in 1.14.0 and both list and read operations on
No, that's largely unrelated. I've participated in the relevant conversation at hashicorp/vault-client-go#174 and am still intending to follow through on producing a PR, though I've queued that behind my work on hashicorp/vault-client-go#180. |
Ah, I see the issue. Thanks for including the curl commands, they're the important bit. The issue is simply a misunderstanding / lack of docs about how the You have a key named Why? Because all Try creating a secret |
Thanks, that's an unexpected twist :) Then there is a back question, do I understand correctly that you can get the metadata of a single secret only with the Read function? KvV2ReadMetadata will not work with this logic. |
Retrieving KV v2 secret metadata is always a read operation, not a list. It always operates on only a single secret. The generated client libraries KvV2ReadMetadata function is currently broken, pending necessary changes to Vault's OpenAPI. It will work in the future, once the bug is fixed. |
Thank you very much for your help!
Well, let's wait. Will the up-to-date information on bug fixing be posted as part of vault-client-go/issues/174? |
Yes |
Describe the bug
In the embedded Vault API Explorer (Swagger UI), the "Try it out" functionality for making requests from the UI does not work for ListOperations. It fails because the
?list=true
query parameter is not added to the request.To Reproduce
Steps to reproduce the behavior:
/identity/entity-alias/id
and execute it via "Try it out""1 error occurred:\n\t* unsupported operation\n\n"
Environment:
Vault 1.12.2 and 1.13-dev
Additional context
Issue is not unique to the mandatory list parameter on ListOperations - the
allowed_client_id
query parameter is also not populated into the generated request or displayed curl command properly for the/identity/oidc/provider
endpoint, for example.The text was updated successfully, but these errors were encountered: