Design: automated certificate issuance from an internal PKI #532

Open
opened 2026-12-06 20:16:19 +00:00 by Claude · 0 comments
Owner

Problem

Follow-up of the planned openbao role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in init entry point returning a no_log fact, optional Shamir unseal from vaulted keys, an update entry point and a declarative file audit device). With a PKI engine configured (#530) and its root trusted on every host (#531), certificates could be issued and renewed automatically, but nothing decides who requests them or how. This issue is a design to be planned as its own spec, not an implementation.

Out of scope: the PKI engine setup itself (#530) and trust store installation (#531).

Proposal

Questions for the spec to answer:

  • Who requests certificates: Traefik's ACME client pointed at OpenBao's ACME directory, an agent on each host, or Ansible tasks issuing through the API; possibly more than one, by use case.
  • Renewal: who renews, how early, and how a service picks up a new certificate.
  • OpenBao's own listener: after bootstrap with a consumer-supplied certificate, re-issue the listener certificate from OpenBao's own PKI, and how to avoid a chicken-and-egg failure when it expires while sealed.
  • traefik role changes: the role has a certificatesResolvers block but no input for an ACME CA server; it needs one, and Traefik must trust the internal root (from ca_trust or a role input).

Acceptance criteria

  • A spec issue that answers each question above, with the decisions recorded (an ADR where the decision is architectural).
  • Follow-up implementation tickets filed from the spec, each with its own acceptance criteria.

Assisted-by: Claude Code

### Problem Follow-up of the planned `openbao` role (a single-node OpenBao server: tarball install, raft storage, consumer-supplied TLS, an opt-in `init` entry point returning a `no_log` fact, optional Shamir unseal from vaulted keys, an `update` entry point and a declarative file audit device). With a PKI engine configured (#530) and its root trusted on every host (#531), certificates could be issued and renewed automatically, but nothing decides who requests them or how. This issue is a design to be planned as its own spec, not an implementation. Out of scope: the PKI engine setup itself (#530) and trust store installation (#531). ### Proposal Questions for the spec to answer: - **Who requests certificates**: Traefik's ACME client pointed at OpenBao's ACME directory, an agent on each host, or Ansible tasks issuing through the API; possibly more than one, by use case. - **Renewal**: who renews, how early, and how a service picks up a new certificate. - **OpenBao's own listener**: after bootstrap with a consumer-supplied certificate, re-issue the listener certificate from OpenBao's own PKI, and how to avoid a chicken-and-egg failure when it expires while sealed. - **`traefik` role changes**: the role has a `certificatesResolvers` block but no input for an ACME CA server; it needs one, and Traefik must trust the internal root (from `ca_trust` or a role input). ### Acceptance criteria - [ ] A spec issue that answers each question above, with the decisions recorded (an ADR where the decision is architectural). - [ ] Follow-up implementation tickets filed from the spec, each with its own acceptance criteria. Assisted-by: Claude Code
Claude added the
Status
Needs Triage
label 2026-12-06 20:16:19 +00:00
Claude added a new dependency 2026-12-06 20:16:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#532