Skip to content

Implementation plan / Session plan / Handover RC-3-S11

Handover RC-3-S11 Build: Platform: secrets and keys

Card: RC-3-S11. Issue: cema-care/his#67. Branch: session/RC-3-S11. Slice: RC-3. Decision record: ADR-HIS-100. Builds on RC-1-S14 and the contracts of RC-3-S03.

What was built and where

Everything is in platform/secrets-keys/, except the decision record, its row in the decision record index, and this handover. The unit's README, platform/secrets-keys/README.md, has a new section "Node authentication", the new settings and policy actions.

Scope as read. FR-ISE-KEY-003, node authentication for system-to-system interfaces, and TEST-ISE-028, on the unit RC-1-S14 built. It meets the contract point that RC-3-S03 left in contracts/ise/README.md: - serve secrets.v1 1.1; - mark trust anchors and node certificates with nodeRole, each node certificate bound to one interface; - answer checkNodeCertificate, refusing untrusted, expired, revoked and unbound certificates; - when the revocation status is unknown, fail closed for an external peer, and allow the configured grace with an alert for an internal Tier 1 path; - record every outcome (ise.node-auth.failed for a failure) and send it to security monitoring; - keep the interface working through a rotation, and refuse the old certificate afterwards.

What was built, on top of RC-1-S14 (nothing of it rebuilt):

  • Migration V2__node_authentication.sql:
  • on the item, node_role and material_source (store, or imported for a public certificate whose private key is elsewhere);
  • on each generation, its SHA-256 fingerprint, its issuer's fingerprint, the start of its validity, the public certificate of an imported one, and when its revocation status was last known;
  • the history actions node-auth and bind;
  • the table node_auth_attempt, one row per check.
  • checkNodeCertificate (package nodeauth: NodeAuthService, Revocation, NodeAuthStore, NodeAuthController). The decision order is in ADR-HIS-100, point 1.
  • Revocation status comes from the store for the certificates it issues, and from the issuer's CRL for an imported certificate that names one. The CRL must be signed by the anchor. A fetched list is used for at most 5 minutes (CFG-ISE-012); after that it is fetched again, and if that fails the status is unknown, never the older list's answer. An imported certificate without a CRL has the inventory as its only revocation source.
  • Grace is his.secrets.node-auth.revocation-grace, 1 hour, for internal-tier-1 only, with an ERROR "alert:" line.
  • Every outcome becomes an attempt row, a history entry (when the certificate is known), a D10 audit event (ise.node-auth.failed or ise.node-auth.succeeded) and the metric his_node_auth_total{decision,reason}.
  • The unit's own API api/node-authentication.v1.openapi.yaml (inventory/ImportedCertificates.java and its controller), with four operations:
  • importTrustAnchor: a PEM, or source: internal-pki, the store's issuing CA;
  • importNodeCertificate: a partner's node certificate;
  • importRenewal: a partner's or an anchor's new certificate, which starts the rotation;
  • bindNodeCertificate: the Integration Engineer's binding to an interface.

These operations accept only public certificates on the approved configurations of 9.7, and a node certificate must be signed by an anchor in use. Only people can call them, and the policy decision point decides each call. - secrets.v1 1.1 in the inventory. nodeRole is in every item answer. listCryptographicItems has the nodeRole and boundInterface filters. A Certificate registered with an integration.v1 boundInterface is a node certificate issued by the store. - Rotation of node certificates (WF-ISE-007, AC-03): - A certificate the store issues rotates as in RC-1-S14. - A partner's certificate completes once a check accepts its new certificate. Its old certificate is refused from then on as revoked. - An anchor completes only once no node certificate still trusted depends on its old certificate. - Imported items rotate by task, so the owner gets the D10 rotation task when one is due. - MaterialStore gained issuingCaCertificate(), and Material carries the fingerprints and the start of validity. The store's issuance computes them. - Checks. scripts/ends-when-rc-3-s11.sh is this card's "Ends when", repeatable. RC-1-S14's scripts/ends-when.sh is unchanged. - ADR-HIS-100 and its row in the decision record index (99 records). ADR-HIS-098 is taken by the open pull requests #249 and #250; ADR-HIS-100 was checked free against origin/main and every open pull request on 2026-11-29.

Dependencies: none added, and no lockfile changed. Certificate and revocation list handling uses the JDK only.

Checks and their result

The integration environment ran as HIS_SESSION=RC-3-S11 (his-rc-3-s11), light profile. The module tests start their own OpenBao, as in RC-1-S14. Each partner system of a test is a PKI mount of its own, with its own synthetic root CA and, where needed, its CRL.

Check Command Result
Build and every test ./gradlew build in platform/secrets-keys Passed: 98 tests, none failed, one skipped (the kit's Kafka adapter test, full profile only). NodeAuthTest: 13 tests
Provider contract test SecretsContractTest, part of the build his-contract verify contracts/ise on all 9 operations of secrets.v1 1.1, checkNodeCertificate included: no case failed. validate-event of the events published: passed
Dependency scan, image scan, static analysis, secret scan Step 2 of scripts/ends-when-rc-3-s11.sh (platform/delivery-pipeline/bin/dependency-scan, image-scan, static-analysis, secret-scan code) 0 blocking (dependency: 4 medium; image: 15 low, 117 medium); no blocking static analysis finding; no leak found
The change stays in its unit; no contract changed Step 3 of scripts/ends-when-rc-3-s11.sh Passed: only platform/secrets-keys/, this handover, ADR-HIS-100 and the decision record index changed
Ends when HIS_SESSION=RC-3-S11 platform/secrets-keys/scripts/ends-when-rc-3-s11.sh Passed, all three steps (98 tests, NodeAuthTest 13 passed, contract checkNodeCertificate passed)
Links under docs/ python3 docs/implementation_plan/tools/check_links.py 0 broken, 0 duplicate anchors
Documentation site mkdocs build Builds; the only warnings are earlier documents' links to platform/ and contracts/

Requirements and test scenarios

Every test names its requirement, and its test scenario where one exists. The tests are in platform/secrets-keys/mod-ise-006/src/test/java/care/cema/his/ise/mod006/NodeAuthTest.java, tagged FR-ISE-KEY-003 and BR-ISE-015.

Requirement, criterion or scenario Covered by
AC-01: an untrusted node is refused (SEC-018) untrusted: an unknown fingerprint, a presented chain that does not start with the certificate, a certificate whose anchor was revoked
AC-02: a revoked certificate is refused revoked (revoked in the inventory; CredentialRotatedOrRevoked published with the interface); revokedByIssuer (revoked in the partner CA's revocation list); revocationListUnreachableAfterFetch (the partner revokes and its list server goes away: after crl-max-age an external node is refused as revocation-unknown, not answered from the cached list)
AC-03: after a rotation the interface keeps working and the old certificate is rejected issuedRotation (a certificate the store issues); partnerRotation (a partner's, completed once the new one connects); anchorRotation (a trust anchor, blocked while a node depends on its old certificate)
Part 1: certificates chaining to a trusted anchor untrusted, imports (an unanchored certificate is refused at import), anchorRotation
Part 2: validity and revocation at connection expired, revokedByIssuer, revocationUnknown
Part 3, PR-KEY-003-2: bound to one interface notBound (refused unbound and on another interface; the Integration Engineer binds, a service identity cannot)
Part 4: rotation before expiry, revocations published partnerRotation, revoked; the expiry windows and rotation tasks of RC-1-S14 apply to these items unchanged
Part 5, section 12: every outcome recorded and forwarded untrusted (ise.node-auth.failed, denied, with interface, reason and node; the attempt row); revoked (ise.node-auth.succeeded; history node-auth)
PR-KEY-003-1: expired, revoked or untrusted refused and logged expired, revoked, untrusted
Section 10: revocation status unobtainable revocationListUnreachableAfterFetch; revocationUnknown: external refused, plain internal refused, internal Tier 1 accepted with grace and an alert, refused after the grace
Sections 3, 7 and 13: actors, inputs, private keys never leave imports: a PEM with a private key, a CA as a node certificate, an unanchored certificate, RSA 2048, an interval over CFG-ISE-014, and an import by a service identity are refused. A host-name boundInterface stays a plain TLS certificate
secrets.v1 1.1 filters nodeRole, boundInterface listing
Policy decision point policy (validation of the check; ise.secrets.check-node-certificate denied gives 403)
TEST-ISE-028 (connect with untrusted, revoked and unbound certificates; rotate a node certificate) untrusted, revoked, revokedByIssuer, notBound, issuedRotation, partnerRotation; tagged TEST-ISE-028
Contract secrets.v1 1.1 checkNodeCertificate (IF-ISE-007) contract/SecretsContractTest "IF-ISE-007 FR-ISE-KEY-003 TEST-ISE-028 contract checkNodeCertificate"

The non-functional targets were designed for as follows: - NFR-ISE-005, security: - each check fails closed by default; - only public certificates are accepted, on the 9.7 configurations; - private keys never reach the unit; - the policy decision point decides every call; - imports and binding are for people only; - every outcome is audited as a security event. - NFR-ISE-009, interoperability: IHE ATNA-aligned node authentication by certificate. The contract test covers secrets.v1 1.1. The unit's own API follows the conventions of contracts/common. - NFR-ISE-012, observability: his_node_auth_total{decision,reason}, "alert:" ERROR lines for unknown revocation status, and the template's correlation identifiers. - NFR-ISE-016, time integrity: UTC throughout. Validity and grace are compared with the unit's clock, and the CRL's next update is honoured. - NFR-ISE-018, localization: no screen. English messages and UTC instants, as in the rest of the unit.

Review round 1 (pull request #252)

  • A cached revocation list was used until its own next update when a fresh fetch failed. It is now used for at most crl-max-age (5 minutes). After that a failed fetch makes the status unknown, so an external peer is refused (Revocation.list). The settings' description, ADR-HIS-100 point 3 and this handover now say the same.
  • New test revocationListUnreachableAfterFetch.
  • The no-distribution-point reading is now a question for the owner of D02-ISE, below.

Differences from the card or specification

  • The API that takes certificates is the unit's own. secrets.v1 1.1 has no operation that accepts a certificate, and NewCryptographicItem has no nodeRole. Trust anchors and partner node certificates come in through api/node-authentication.v1 (ADR-HIS-100, point 2). No contract file changed (session rule 4).
  • Audit of a successful node authentication. Part 5 forwards successes and failures, but D02-ISE 9.5 names only ise.node-auth.failed. Successes are ise.node-auth.succeeded (question below).
  • Grace only for internal-tier-1. Section 10 gives grace to internal Tier 1 paths and says nothing of other internal paths. A plain internal peer fails closed, which is the reading that does not widen access. The grace default of 1 hour is a technical setting, since the specification gives none.
  • A trust anchor is the direct issuer. Where a partner issues from an intermediate, the intermediate is imported as the anchor (ADR-HIS-100, point 1).
  • Imported certificates must be on the approved configurations. A partner on RSA 2048 is refused at import; there is no exception path at import yet (follow-up).
  • boundInterface is not checked against the interface registry, which RC-3-S15 builds. Any value of the integration.v1 pattern is taken. A boundInterface of another form keeps its 1.0 meaning, a TLS certificate's host name, and makes no node certificate. This keeps RC-1-S14's registrations valid.

Needs a person

  • Enterprise Architecture Board: approval of ADR-HIS-100.
  • Question for the owner of D02-ISE (audit): FR-ISE-KEY-003 part 5 forwards node authentication successes as well as failures, but 9.5 names only ise.node-auth.failed. Should 9.5 gain ise.node-auth.succeeded, the type the unit now emits for an acceptance? Until then the D10 catalogue does not know it.
  • Question for the owner of D02-ISE (access): please confirm that a plain internal peer (not Tier 1) fails closed when revocation status is unknown, and set the grace for internal Tier 1 paths. The unit uses 1 hour, his.secrets.node-auth.revocation-grace.

  • Question for the owner of D02-ISE (access): an imported partner certificate that names no CRL distribution point has the inventory as its only revocation source, so its status is good unless a Security Engineer revokes it. Is that acceptable, or should such a certificate count as revocation-unknown (refused for external peers)?

None of these questions stops the work: the unit takes the conservative reading, and each answer is a setting or a catalogue entry.

Follow-ups outside the card

  • Integration engine (RC-3-S15):
  • call checkNodeCertificate on every connection of an interface with node authentication;
  • notify the partner contact on untrusted for a registered partner (section 10, "Partner certificate changed without notice"), since the unit does not know whose an unknown fingerprint is;
  • suspend interfaces on CredentialRotatedOrRevoked with suspectedCompromise;
  • give this unit a way to check that a boundInterface is registered.
  • D10 audit catalogue (the audit unit): register ise.node-auth.failed and ise.node-auth.succeeded as security events, beside the ISE types RC-1-S14 listed.
  • D10 policy (RC-1-S16's unit):
  • ise.secrets.check-node-certificate for the service identities of the integration engine and the gateways;
  • ise.secrets.import-trust-anchor and ise.secrets.import-node-certificate for the Security Engineer;
  • ise.secrets.bind-node-certificate for the Integration Engineer.
  • ISE contract session of a later slice: move node-authentication.v1 into secrets.v1 compatibly, with key-recovery.v1 and encryption.v1 (RC-1-S14).
  • FR-ISE-KEY-002 exceptions at import: let an approved, compensated exception admit a legacy partner certificate below the 9.7 configurations.
  • Observability (platform/observability): an alert rule on his_node_auth_total{reason="revocation-unknown"} and on the "alert: revocation status" lines; a security monitoring rule on ise.node-auth.failed (category node-authentication-failed of security-monitoring.v1).
  • Screens (UI-ISE-008): show trust anchors and node certificates by nodeRole, with their binding.
  • Development realm: a synthetic Integration Engineer user (the tests use dev.integration-engineer).