bank-vaults icon indicating copy to clipboard operation
bank-vaults copied to clipboard

Can't enable secret plugin in 1.15.0

Open pabardina opened this issue 3 years ago • 4 comments

Describe the bug: Hello! Since 1.15.0, I can't enable a secret plugin. I got the error :

{"level":"error","msg":"error configuring vault: error configuring secret engines for vault: error adding managed secrets engines: error mounting artifactory into vault: Error making API request.\n\nURL: POST http://vault.vault:8200/v1/sys/mounts/artifactory\nCode: 400. Errors:\n\n* plugin_name must be provided for plugin backend","time":"2022-02-17T15:58:11Z"}

If I roll back to 1.14.2, it works as attended.

It seems that the plugin_name is always empty.

Expected behaviour:

I can enable a secret plugin.

Steps to reproduce the bug:

My configuration :

    secrets:
      - path: artifactory
        plugin_name: name
        type: plugin

Thanks

/kind bug

pabardina avatar Feb 17 '22 16:02 pabardina

Can this be the root cause? https://github.com/banzaicloud/bank-vaults/pull/1519 @aabouzaid ?

bonifaido avatar Mar 02 '22 08:03 bonifaido

@pabardina could you please provide a full example to reproduce the issue?

Also is not a valid config:

secrets:
  - path: artifactory
    plugin_name: name
    type: plugin

You need to set the actual plugin name in plugin_name.

aabouzaid avatar Mar 03 '22 03:03 aabouzaid

Ah, one more thing, please try to use v1.15.1 since there are some bug fixes that could affect the secrets engines.

aabouzaid avatar Mar 03 '22 04:03 aabouzaid

@pabardina have you managed to get this resolved based on this information?

bonifaido avatar Mar 07 '22 08:03 bonifaido

Thank you for your contribution! This issue has been automatically marked as stale because it has no recent activity in the last 60 days. It will be closed in 20 days, if no further activity occurs. If this issue is still relevant, please leave a comment to let us know, and the stale label will be automatically removed.

github-actions[bot] avatar Mar 31 '24 00:03 github-actions[bot]