Move OpenBao plugin_directory to /usr/libexec/openbao-plugins #581

Open
opened 2026-11-19 23:28:39 +11:00 by unkin-agent · 0 comments
Member

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 has plugin_directory = /opt/openbao-plugins (profiles::vault::server::plugin_dir in hieradata/roles/infra/storage/vault.yaml). Upgrading any pinned openbao-plugin-secrets-* package to a /usr/libexec release 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:

profiles::vault::server::plugin_dir: /usr/libexec/openbao-plugins

profiles::packages::include:
  openbao-plugin-secrets-arrstack: {ensure: '0.4.0'}
  openbao-plugin-secrets-gitea:    {ensure: '0.3.0'}
  openbao-plugin-secrets-rancher:  {ensure: '0.2.0'}
  openbao-plugin-secrets-ghp:      {ensure: '0.2.0'}
  openbao-plugin-secrets-netbox:   {ensure: '0.3.0'}
  openbao-plugin-secrets-gpg:      {ensure: '0.2.0'}
  openbao-plugin-secrets-litellm:  {ensure: '0.2.0'}
  # openbao-plugin-secrets-apptoken: removed (engine retired)

Paired terraform-vault PR updating config/plugins/*.yaml sha256 (binary hashes from the GitHub release RPMs):

plugin version sha256
arrstack 0.4.0 6f05ac0cdcf4759cb099a3a962d28ca042c1d6cf60858439ca3240c81f7fd802
gitea 0.3.0 dbad8ccd0514b43d48a392fe49c667f72de961bb86b7cb33208032626005bcb8
rancher 0.2.0 ea368aff4eb63dd5ffcfbcc7979a636918b2ffa668506cd1722dfe6de65bb775
ghp 0.2.0 9ebf342d7bad83503ff72c2266793fde63a62b4eb818fd51176104e513d8f192
netbox 0.3.0 c7be39a0c9b7cdc976ceb88e3fc7f1c6497958b29f13ad9681b45ba2a44e979e
gpg 0.2.0 ef8c09d879606950068a69df39ba77d3f113fdc54f0f7d8231998306df35600b
litellm 0.2.0 f20335bf30a8828b2199f1da97f9c2bbe440ca5fbc09b2513d24fdd431f0ed9b

Rollout: merge puppet → puppet run on each vault node (standbys first) → restart OpenBao (plugin_directory is read at startup only) → step down the leader and restart it → apply terraform-vault → vault write sys/plugins/reload/backend mounts=<m> scope=global per mount (watch for mounts pinned to the old plugin_version).

Blocked on

  • The vault nodes can install the new RPMs: they are GitHub release assets only, served through the planned artifactapi github_rpm remote (not rpm-internal).
  • Confirm nothing else uses /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-plugins holds no plugin binaries still in use.
  • Every registered secrets plugin mount is healthy after the restart (vault secrets list -detailed shows the new running_sha256), and a creds read on each engine succeeds.
  • terraform-vault plan is clean after apply.
## 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 has `plugin_directory = /opt/openbao-plugins` (`profiles::vault::server::plugin_dir` in `hieradata/roles/infra/storage/vault.yaml`). Upgrading any pinned `openbao-plugin-secrets-*` package to a `/usr/libexec` release 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: ```yaml profiles::vault::server::plugin_dir: /usr/libexec/openbao-plugins profiles::packages::include: openbao-plugin-secrets-arrstack: {ensure: '0.4.0'} openbao-plugin-secrets-gitea: {ensure: '0.3.0'} openbao-plugin-secrets-rancher: {ensure: '0.2.0'} openbao-plugin-secrets-ghp: {ensure: '0.2.0'} openbao-plugin-secrets-netbox: {ensure: '0.3.0'} openbao-plugin-secrets-gpg: {ensure: '0.2.0'} openbao-plugin-secrets-litellm: {ensure: '0.2.0'} # openbao-plugin-secrets-apptoken: removed (engine retired) ``` Paired terraform-vault PR updating `config/plugins/*.yaml` sha256 (binary hashes from the GitHub release RPMs): | plugin | version | sha256 | |---|---|---| | arrstack | 0.4.0 | `6f05ac0cdcf4759cb099a3a962d28ca042c1d6cf60858439ca3240c81f7fd802` | | gitea | 0.3.0 | `dbad8ccd0514b43d48a392fe49c667f72de961bb86b7cb33208032626005bcb8` | | rancher | 0.2.0 | `ea368aff4eb63dd5ffcfbcc7979a636918b2ffa668506cd1722dfe6de65bb775` | | ghp | 0.2.0 | `9ebf342d7bad83503ff72c2266793fde63a62b4eb818fd51176104e513d8f192` | | netbox | 0.3.0 | `c7be39a0c9b7cdc976ceb88e3fc7f1c6497958b29f13ad9681b45ba2a44e979e` | | gpg | 0.2.0 | `ef8c09d879606950068a69df39ba77d3f113fdc54f0f7d8231998306df35600b` | | litellm | 0.2.0 | `f20335bf30a8828b2199f1da97f9c2bbe440ca5fbc09b2513d24fdd431f0ed9b` | Rollout: merge puppet → puppet run on each vault node (standbys first) → restart OpenBao (`plugin_directory` is read at startup only) → step down the leader and restart it → apply terraform-vault → `vault write sys/plugins/reload/backend mounts=<m> scope=global` per mount (watch for mounts pinned to the old `plugin_version`). ## Blocked on - The vault nodes can install the new RPMs: they are GitHub release assets only, served through the planned artifactapi `github_rpm` remote (not rpm-internal). - Confirm nothing else uses `/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-plugins` holds no plugin binaries still in use. - Every registered secrets plugin mount is healthy after the restart (`vault secrets list -detailed` shows the new `running_sha256`), and a creds read on each engine succeeds. - terraform-vault plan is clean after apply.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/puppet-prod#581