Skip to content
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

vault: improve Vault API interaction #458

Merged
merged 1 commit into from
Apr 8, 2024
Merged

vault: improve Vault API interaction #458

merged 1 commit into from
Apr 8, 2024

Conversation

aead
Copy link
Member

@aead aead commented Apr 8, 2024

This commit improves the Vault API interaction by
using the vaultapi.KVv1 and vaultapi.KVv2 types where possible. This simplifies the List, Delete and Get APIs.

Further, this commit changes the List API implementation by using HTTP GET instead of LIST. This is a workaround that prevents listing errors caused by some middleware/firewalls. Such systems may reject API calls with "non-standard" HTTP methods.

@aead aead force-pushed the vault-sdk branch 2 times, most recently from 4d7589f to 6946e60 Compare April 8, 2024 15:45
shtripat
shtripat previously approved these changes Apr 8, 2024
Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This commit improves the Vault API interaction by
using the `vaultapi.KVv1` and `vaultapi.KVv2` types
where possible. This simplifies the `List`, `Delete`
and `Get` APIs.

Further, this commit changes the `List` API implementation
by using HTTP GET instead of LIST. This is a workaround that
prevents listing errors caused by some middleware/firewalls.
Such systems may reject API calls with "non-standard" HTTP methods.

Signed-off-by: Andreas Auernhammer <[email protected]>
@aead aead merged commit 22fc31a into master Apr 8, 2024
7 checks passed
@aead aead deleted the vault-sdk branch April 8, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants