-
Notifications
You must be signed in to change notification settings - Fork 54
Help: can't write to secrets path and can't disable secrets path #28
Comments
Also interesting:
|
Regarding the TLS errors, I am using TLS in the cluster indeed, and also the client is authenticating with cert method. But that has been working fine for everything else. api_addr is also set (don't know if relevant, but saw you mentioning it in another issue). |
I was missing some stuff, of course. The plugin commands needs to include the TLS related options, as I'm using TLS in the API listener. So I added -ca-cert, -client-cert and -client-key to the command. In fact ./plugin -h shows the options. So that addressed the TLS handshake errors I posted before. I would suggest this should be in the README. Also, I wasn't invoking plugin info correctly, need to pass the plugin type before the plugin name, so the correct command is "valut plugin info secret secrets-gen/". However, not quite there yet. If I try to disable the path, it still fails:
|
Ok, so it seems that in order to unmount the path I need to deregister the plugin and then restart the cluster. Very unexpected, but it was the only way I got going. So re-doing everything from scratch, as soon as I enable the path again, I get the 403 permission denied for the unwrap. |
Looks related to hashicorp/vault#7176, but this is supposedly fixed well before 1.6.1. |
So, I disabled the auto-unseal to avoid setting the unseal token as environment variable, and the plugin is now working as expected. So the Vault issue is not fixed. Closing. |
This issue has been automatically locked since there has not been any |
Hi @sethvargo ,
I'm trying to setup your plugin with Vault 1.6.1.
I started by downloading the latest release file for Linux amd64, installing it in a Vault 1.6.0 cluster.
I registered the plugin and enabled a secrets path with it. Then tried to generate a password but it fails with 500/internal error.
At this point I proceeded with upgrading Vault to latest 1.6.1, compiling the plugin and re-deploy it. I de-registered and re-registered. Then tried again to generate password but fails in the same way.
I then tried to disable the secrets path using the plugin, but that fails with 400/unrecognized remote plugin message.
Vault logs show:
Any suggestion on what I might be doing wrong?
Thanks!
The text was updated successfully, but these errors were encountered: