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

Cannot write secrets #279

Open
sosiskin2000 opened this issue Dec 9, 2022 · 1 comment
Open

Cannot write secrets #279

sosiskin2000 opened this issue Dec 9, 2022 · 1 comment

Comments

@sosiskin2000
Copy link

sosiskin2000 commented Dec 9, 2022

Gem version latest.
Cannot write secrets to vault.
According to documentation write example:

Vault.logical.write("secret/bacon", delicious: true, cooktime: "11")

shows error "* no data provided"

but If im reading secret from :

secret = Vault.logical.read("secret/bacon_old")
Vault.logical.write("secret/bacon", secret.data)

its working well.

@jackivanov
Copy link

Vault.logical.write("secret/data/bacon", data: {delicious: true, cooktime: "11"})

The docs need to be update to match kv-v2

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

No branches or pull requests

2 participants