Move OpenBao plugin_directory to /usr/libexec/openbao-plugins #581
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The vault plugin RPMs now install to
/usr/libexec/openbao-plugins/(and/usr/libexec/vault-plugins/) instead of/opt/openbao-plugins/. OpenBao on the vault nodes still hasplugin_directory = /opt/openbao-plugins(profiles::vault::server::plugin_dirinhieradata/roles/infra/storage/vault.yaml). Upgrading any pinnedopenbao-plugin-secrets-*package to a/usr/libexecrelease removes its binary from/opt, and OpenBao can no longer launch that plugin.Proposal
One puppet-prod PR (branch off
develop) that flips the directory and bumps every pin together:Paired terraform-vault PR updating
config/plugins/*.yamlsha256 (binary hashes from the GitHub release RPMs):6f05ac0cdcf4759cb099a3a962d28ca042c1d6cf60858439ca3240c81f7fd802dbad8ccd0514b43d48a392fe49c667f72de961bb86b7cb33208032626005bcb8ea368aff4eb63dd5ffcfbcc7979a636918b2ffa668506cd1722dfe6de65bb7759ebf342d7bad83503ff72c2266793fde63a62b4eb818fd51176104e513d8f192c7be39a0c9b7cdc976ceb88e3fc7f1c6497958b29f13ad9681b45ba2a44e979eef8c09d879606950068a69df39ba77d3f113fdc54f0f7d8231998306df35600bf20335bf30a8828b2199f1da97f9c2bbe440ca5fbc09b2513d24fdd431f0ed9bRollout: merge puppet → puppet run on each vault node (standbys first) → restart OpenBao (
plugin_directoryis read at startup only) → step down the leader and restart it → apply terraform-vault →vault write sys/plugins/reload/backend mounts=<m> scope=globalper mount (watch for mounts pinned to the oldplugin_version).Blocked on
github_rpmremote (not rpm-internal)./opt/openbao-plugins:rpm -ql openbao-plugins(base bundle, unpinned) and whether the apptoken engine is still mounted (unmount it before dropping its package).Acceptance
plugin_directory = "/usr/libexec/openbao-plugins"on every vault node;/opt/openbao-pluginsholds no plugin binaries still in use.vault secrets list -detailedshows the newrunning_sha256), and a creds read on each engine succeeds.