opentelekomcloud / vault-plugin-secrets-openstack

Create OpenStack tokens using HashiCorp Vault
Apache License 2.0
23 stars 6 forks source link

Installation #85

Closed kucerakk closed 2 years ago

kucerakk commented 2 years ago

Issue on page: https://github.com/opentelekomcloud/vault-plugin-secrets-openstack/blob/main/doc/source/installation.rst

Here I believe we miss the plugin registration prior to the enablement of the plugin.

So either we need :

$ export SHA256=$(shasum -a 256 "/etc/vault/plugins/vault-plugin-secrets-openstack" | cut -d' ' -f1)

$ vault write sys/plugins/catalog/vault-plugin-secrets-openstack \
    sha_256="${SHA256}" \
    command="vault-plugin-secrets-openstack"

OR

export SHA256=$(shasum -a 256 "/etc/vault/plugins/vault-plugin-secrets-openstack" | cut -d' ' -f1)
vault plugin register -sha256="${SHA256}" secret vault-plugin-secrets-openstack

FOR CONSIDERATION Perhaps it would be also better to have amd in the Installation guide instead of arm... vault-plugin-secrets-openstack_1.0.1linuxarm64.tar.gz VS vault-plugin-secrets-openstack_1.0.1linuxamd64.tar.gz

gtema commented 2 years ago

You are right. Instruction was created while running dev vault. And arm is just a "typo" if me seeing too bad ;-)

kucerakk commented 2 years ago

the same applies to missing plugin registration here and having arm, too :) https://github.com/opentelekomcloud/vault-plugin-secrets-openstack/blob/main/doc/source/examples/demo.rst