openbao_config: new role for OpenBao configuration as code #530
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#530
Reference in new issue
Block a user
Problem
Follow-up of the planned
openbaorole (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-ininitentry point returning ano_logfact, optional Shamir unseal from vaulted keys, anupdateentry point and a declarative file audit device). That role stops at a running, unsealed server. Everything configured through OpenBao's API (auth methods, policies, secret engines) is then done by hand and not reviewable.Out of scope: installing or unsealing the server (the
openbaorole).Proposal
A new role
openbao_configthat declares, from consumer variables:The API client is to be decided as part of this issue:
community.hashi_vault(OpenBao compatibility is undocumented; it would be a new Collection dependency, with a version floor and a stated reason);ansible.builtin.uriagainst the HTTP API (no new dependency, more code).The role must be idempotent and keep tokens under
no_log.Acceptance criteria
openbaorole with a policy, an auth method and a PKI engine with root and intermediate CA, and a second converge reports no changes.minor_changes.Assisted-by: Claude Code