Skip to content

Architecture / Decision records / ADR-HIS-064

ADR-HIS-064 Secrets and keys platform unit: an inventory controller over OpenBao, grants as identity groups, access read from the store's audit device, and the encryption check

Status Accepted
Decided 2026-11-25 by session RC-1-S14
Record Drafted 2026-11-25; approved 2026-11-25 by the Enterprise Architecture Board
Where the rule lives platform/secrets-keys/ (its README.md, openbao/server.hcl, mod-ise-006/ with openbao/his-secrets-controller.hcl and encryption/approved-configurations.json, api/encryption.v1.openapi.yaml, api/key-recovery.v1.openapi.yaml)

Context

RC-1-S14 builds MOD-ISE-006 for FR-ISE-KEY-001 and FR-ISE-KEY-002. Technology stack row 13 selects OpenBao as the controlled store. The contract of RC-1-S02 (contracts/ise, secrets.v1) fixes the inventory API: metadata only, no value crossing it, rotation in the two steps start and complete. Its contract point for this session says to serve that API from OpenBao, refuse an interval over CFG-ISE-014, publish CertificateExpiring at the CFG-ISE-013 windows and CredentialRotatedOrRevoked, and record every access and denial in the item history.

The specification and the contract leave these open:

  • how each item type lives in the store;
  • how a grant becomes an access rule;
  • how the unit learns of each access, given that workloads read the store directly (behaviour 2);
  • how consumers are "verified to be using the new material" (WF-ISE-007 step 4);
  • how CFG-ISE-014's finer classes map onto the contract's four item types;
  • what state a rotated item is in;
  • where the dual-controlled key recovery of behaviour 7 and the encryption check of FR-ISE-KEY-002 are offered, since neither has a contract operation;
  • what form a provisioning definition takes before the deployment topology unit exists.

OpenBao 2.6 refuses to enable an audit device through its API: devices are declared in the server configuration only.

Decision

  1. The unit is a Java service from the template beside the store's configuration, as ADR-HIS-054 allows for a platform unit: ise-secrets-keys, module mod-ise-006, beside openbao/server.hcl.
  2. The service is the inventory controller. It holds DE-ISE-012 in its database and drives the material in OpenBao.
  3. Workloads read their material from OpenBao at runtime, not through the unit. A unit outage therefore never stops a workload (FR-ISE-KEY-001 section 10).
  4. Each item type in the store.
  5. Secret and Service credential: a KV version 2 path his-kv/<itemId>. A service credential's value comes from OpenBao's random generator. A secret's value is written by its custodian directly into the store, so its rotation mode is "By task". All other types are "Automatic".
  6. Certificate: a PKI issuing role per item that allows only the item's subject: the workload's <sa>.<ns>.svc and SPIFFE URI, or the interface's host name. Keys are ECDSA P-256, signed by an ECDSA chain. The bundle is written into the item's KV path. A certificate is Requested until the lifecycle has issued it and validated its chain.
  7. Key: a Transit key his-transit/<itemId>, AES-256-GCM, never exportable.
  8. Generations are the KV versions and the key versions. The overlap is "both generations valid".
  9. At completion the old generation stops working, by type:
    • a service credential's or secret's old KV version is destroyed;
    • a certificate's old serial is revoked (CRL) and its version destroyed;
    • a key's old version no longer encrypts (min_encryption_version) and still decrypts what it protects.
  10. The controller cannot read values. Its OpenBao policy (his-secrets-controller.hcl) gives write-only access to the KV data paths, no Transit encrypt or decrypt, and no read of any secret. Only a new certificate's bundle and a new service credential pass through the unit's memory, on their way into the store, and are never logged, stored or answered. In development and tests the bootstrap prepares the store and then switches to a controller token of its own, which proves that policy enough. In production it runs once as a job under dual control.
  11. Grants are identity groups. Each item has one ACL policy and one internal identity group, both named his-item-<itemId>. The group's members are the entities of the granted identities. OpenBao evaluates group membership at each request, so a grant change or a revocation takes effect at the next request, within CFG-ISE-012.
  12. Workloads log in with a JWT (Kubernetes service account tokens in production).
  13. A SPIFFE identity of the contract maps to the login alias system:serviceaccount:<ns>:<name>, a setting.
  14. Least privilege: a grant names one identity exactly, with no pattern and no duplicate. A workload certificate is granted only to its bound workload.
  15. Access is read from the store's own audit device. server.hcl declares two devices:
  16. a file device to standard output, the complete record, collected into the logs;
  17. a socket device to the unit (port 9310).

The unit turns each read of an item's material, answered or refused, into a history entry and a D10 audit event: - ise.secret.accessed for a read answered; - ise.service-identity.denied for a refusal, the security event of PR-KEY-001-1.

The store's request identifier deduplicates. Values in the device's lines are HMAC'd by OpenBao, and the unit keeps nothing of request or answer bodies. Since devices are configuration-only, an administrator cannot switch the record off at run time. 6. Consumers are verified by what they read. Each access records the generation read: the KV metadata.version, or Transit's key_version, both unhashed numbers. A consumer is verified when it has used the current generation. complete refuses, with one error per consumer, until every granted consumer is verified, and the lifecycle completes an automatic rotation as soon as they are. When the overlap ends first, it is extended and an alert is raised (section 10). 7. CFG-ISE-014 by what the record holds. - A certificate bound to a workload identity is an internal mTLS certificate: 30 days. - Any other certificate is partner-facing or a node certificate: 1 year. - A secret or service credential: 90 days. - A key is a data encryption key (1 year), unless its name is configured as key-encryption-key (2 years), intermediate-ca (3 years) or root-ca (10 years).

Interval and validity are both checked against the maximum, and the refusal names it. 8. A Rotated item behaves as Active. After complete the item is Rotated (section 4.3), and its replacement is the material in use. A later rotation and a revocation (with or without suspected compromise) accept Rotated as they accept Active and Expiring, and a Rotated item enters Expiring at its warning window. The specification is silent on this, and secrets.v1 names only Active and Expiring for rotateItem and revokeItem. The person answered on issue #28 (2026-11-25): follow common practice. In key management (NIST SP 800-57 Part 1, the key states of section 5.3) the replacement is the active material, and a compromise can be declared in any state before destruction; certificate lifecycle tools renew and revoke a renewed certificate like any other. Accepting one more state is backward compatible; the contract's descriptions follow in an ISE contract session. 9. The expiry notice goes out whatever else happens. CertificateExpiring is raised once per window and expiry, at 30 days and at 7 days, even when a renewal starts in the same cycle. Automatic certificates renew at two thirds of their lifetime (CFG-ISE-013). Non-certificate items with a validity also expire, but publish no certificate event. 10. Two APIs of the unit's own, in the conventions of contracts/common, until an ISE contract session moves them into contracts/ise compatibly: - key-recovery.v1: request, confirmation by a second person (never the requester, never a service identity), and the record. A confirmed recovery grants the requester's recovery identity time-limited read access in the store. A revoked key's versions are kept for this; destroyed values cannot be recovered. - encryption.v1, which has three parts: - The provisioning check. A resource definition (kind, classification, at-rest algorithm and key reference, transport protocols and suites, mutual TLS, plain listener) is checked against the Active version of approved-configurations.json, which holds D02-ISE 9.7. A refusal answers 400 validation-failed with one entry per unmet configuration, like the ISE contract's refusals, and is recorded. - Exceptions, approved by someone other than the person recording them, and time-bound. - The coverage report and its channel scan. The scan sends ClientHellos of its own, so it needs no protocol the JVM disables and trusts nothing it is shown. It checks mutual TLS with the JDK against configured anchors only.

Consequences

  • The store stays the only holder of material. Workloads depend on it, a Tier 1 platform dependency, and not on this unit, which is Tier 2.
  • Every access to an item is in its history and in the D10 audit, within the latency of one socket write. While the unit is down, the socket device fails and the file device keeps the complete record. OpenBao then refuses requests only if both devices fail.
  • The controller is trusted to write policies named his-item-* and to manage their groups. A defect in it could widen a grant; that is why its policy is a reviewed file and every grant change is in the history and the audit.
  • A unit that provisions a store or endpoint (deployment topology RC-1-S20 and later) sends the definition to checkProvisioning before applying it, and does not apply a refused one. Until those units exist, the check proves the rule but nothing calls it.
  • The ISE audit event types this unit emits must be in the D10 audit catalogue, or the audit service quarantines them: ise.secret.accessed, ise.key.lifecycle, ise.certificate.lifecycle, ise.service-identity.denied and ise.config.changed.
  • Suspending the interfaces bound to a compromised item is the interface registry's (MOD-ISE-003), from CredentialRotatedOrRevoked with suspectedCompromise.
  • Trust anchors and node certificate binding (FR-ISE-KEY-003) build on the PKI mount and the identity groups here.

Alternatives considered

  • The unit as a broker that hands material to workloads. It would see every value and become a Tier 1 hot path, against behaviour 2 and section 10.
  • Polling OpenBao for access. OpenBao has no API to read its audit log. The file device read by the unit would tie the unit to the store's nodes; the socket device is OpenBao's own streaming mechanism.
  • cert-manager issuing workload certificates. That is the production path in Kubernetes, with OpenBao as its issuer, and the inventory then reads the issued certificates' metadata. There is no Kubernetes in the integration environment, and the inventory must rotate, verify and revoke certificates in this slice, so the unit issues through the same per-item PKI role. Moving issuance to cert-manager changes only the issuing step of MaterialStore.
  • Per-identity policies instead of per-item groups. Revoking an item would then need every identity's policy edited. One group per item makes revocation a single write.
  • Accepting a read of either generation as verification. A consumer still on the old version would then pass, and the old material would be retired under it.