Build an OpenBao RPM alongside the Vault one #3
Reference in New Issue
Block a user
Delete Branch "benvin/openbao-rpm"
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?
The plugin runs under both Vault and OpenBao, but nfpm only produced a single RPM that installs into
/opt/vault-plugins. OpenBao hosts expect their plugins under/opt/openbao-plugins, so a second package is needed.Changes
nfpm.yamlwithPACKAGE_NAME,PACKAGE_PLUGIN_DIR, andPACKAGE_PREINSTALLso one config renders per target serverpreinstall.shwithpreinstall.sh.tmplthatmkdir -p's the flavour's plugin directorybuild-rpm.shvia abuild_flavorhelper:vault-plugin-secrets-litellm→/opt/vault-pluginsandopenbao-plugin-secrets-litellm→/opt/openbao-pluginsBoth packages wrap the same binary,
provides/replacesonly their own name (so they coexist on one host), and are picked up automatically by the existingdist/*.rpmupload step. Verified locally: both RPMs build and install the binary to the correct directory with a matching preinstall.