-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error when creating new secret #13
Comments
i have a feeling this might be related to the vault API not returning the custom metadata after saving. if this still happens would you be able to show the output of the API call that is made on the click on "Save"? you should be able to get it from your browser's devtools. |
I have a similar problem, but the error message is different.
API call for "Save" |
The vault server needs to be at least 1.9 to support custom_metadata. The custom_metadata fields are silently ignored before that. With v1.8.7 on the server, I experienced the exact same error message. When I upgraded to 1.10.4 the error went away. You can test this from the command line using: vault kv metadata delete secret/test-secret The output should have: If not then the vault server needs to be upgraded. |
I solved the problem what I indicated. In my case, the error was that the vault used KV secrets engine with version 1. Check KV secrets version: The working result: Upgrading from version 1 to version 2: |
thanks for digging into it! i might add a note to the readme. |
When creating new secret, I get error "(intermediate value).custom_metadata is undefined". Secret actually has been created, just need to manually refresh netbox page.
The text was updated successfully, but these errors were encountered: