-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vault: adjust key creation/deletion to Vault API (#159)
This commit fixes an issue in the Vault backend. Hashicorp Vault returns 204 (No Content) when creating / deleting a key successfully. Hence, the Vault SDK returns no error BUT also no secret/entry object - since no content. However, the Vault SDK may also return no error AND no secret/entry object in case of some network errors - e.g. broken network connection. This commit works around this ambiguous behavior by implementing the key creation / deletion using low-level SDK primitives and explicitly checking the HTTP response status code. Signed-off-by: Andreas Auernhammer <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters