Install plugin under /usr/libexec #7
+2
-2
@@ -20,7 +20,7 @@ nfpms:
|
||||
- &rpm
|
||||
id: vault
|
||||
package_name: vault-plugin-secrets-gpg
|
||||
bindir: /opt/vault-plugins
|
||||
bindir: /usr/libexec/vault-plugins
|
||||
scripts:
|
||||
preinstall: packaging/scripts/preinstall-vault.sh
|
||||
replaces: [vault-plugin-secrets-gpg]
|
||||
@@ -37,7 +37,7 @@ nfpms:
|
||||
- <<: *rpm
|
||||
id: openbao
|
||||
package_name: openbao-plugin-secrets-gpg
|
||||
bindir: /opt/openbao-plugins
|
||||
bindir: /usr/libexec/openbao-plugins
|
||||
scripts:
|
||||
preinstall: packaging/scripts/preinstall-openbao.sh
|
||||
replaces: [openbao-plugin-secrets-gpg]
|
||||
|
||||
@@ -32,14 +32,14 @@ or build one:
|
||||
make build # -> dist/vault-plugin-secrets-gpg
|
||||
```
|
||||
|
||||
Copy the binary into the server's `plugin_directory`, then register it in the
|
||||
The RPM installs the binary to `/usr/libexec/vault-plugins` (openbao flavour:
|
||||
`/usr/libexec/openbao-plugins`); point the server's `plugin_directory` there, or
|
||||
copy a built binary into your configured directory. Then register it in the
|
||||
plugin catalog and enable the engine. On OpenBao, run the same commands with
|
||||
`bao` in place of `vault`.
|
||||
The example assumes `plugin_directory = "/etc/vault/plugins"`; use the
|
||||
directory set in your server config.
|
||||
|
||||
```sh
|
||||
SHA256=$(sha256sum /etc/vault/plugins/vault-plugin-secrets-gpg | cut -d' ' -f1)
|
||||
SHA256=$(sha256sum /usr/libexec/vault-plugins/vault-plugin-secrets-gpg | cut -d' ' -f1)
|
||||
vault plugin register -sha256="$SHA256" secret vault-plugin-secrets-gpg
|
||||
vault secrets enable -path=gpg vault-plugin-secrets-gpg
|
||||
```
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Ensure the plugin directory exists before the binary is laid down.
|
||||
mkdir -p /opt/openbao-plugins
|
||||
mkdir -p /usr/libexec/openbao-plugins
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# Ensure the plugin directory exists before the binary is laid down.
|
||||
mkdir -p /opt/vault-plugins
|
||||
mkdir -p /usr/libexec/vault-plugins
|
||||
|
||||
Reference in New Issue
Block a user