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

Support secrets from v2 kv store #84

Merged
merged 3 commits into from
Mar 5, 2019
Merged

Conversation

luke-richardson
Copy link
Contributor

The v2 kv secrets engine returns the secret data in a different format (https://www.vaultproject.io/api/secret/kv/kv-v2.html#sample-response-1) than v1, this means that vault-sidekick writes a string representation of a map with "data" and "metadata" keys to file, rather than the secret data.

This change introduces a check to identify if the secrets engine is a v1 or v2 response.

@gambol99 gambol99 self-requested a review January 10, 2019 18:31
@gambol99 gambol99 self-assigned this Jan 10, 2019
Copy link
Contributor

@gambol99 gambol99 left a comment

Choose a reason for hiding this comment

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

Just the one typo ... but aside from that LGTM :-) ..

README.md Outdated Show resolved Hide resolved
vault.go Show resolved Hide resolved
@gambol99
Copy link
Contributor

gambol99 commented Mar 5, 2019

Sorry for the massive delay @luke-richardson .. thank you kindly .. LGTM

@gambol99 gambol99 merged commit 7742ca5 into UKHomeOffice:master Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants