Files
kryptkeeper/docs/DECISIONS.md
T
2026-10-12 14:25:05 -04:00

39 KiB
Raw Permalink Blame History

Kryptkeeper — Decision Ledger

Single source of truth for locked decisions. Aggregated 2026-07-15 (design-review arc, G-22) from three prior scattered records: the SDLC_STATUS "Key Decisions (Locked)" table (Apr), phase-4-implementation/BLOCKING_DECISIONS.md DEC-001..005 (Apr), and per-scope-doc decision sections (Jun). Those records remain as history; new decisions land here only. Changes to locked rows are amendments the owner approves — never silently adopted. Rows adopted as part of a bundle ("adopt all") are flagged vetoable.

Status: locked · locked (amended <date>) · proposed.

ID Decision Rationale Source Status
D-001 Go for all backend services step-ca/Boulder precedent; stdlib crypto; single binary SDLC_STATUS (research) locked
D-002 TypeScript/React + shadcn/ui dashboard right tool; separate from CA core SDLC_STATUS locked
D-003 PostgreSQL primary + SQLite dev/embedded HA + analytics; SQLite for embedded SDLC_STATUS locked
D-004 Apache-2.0 license patent grant; enterprise legal; no copyleft SDLC_STATUS locked
D-005 crypto.Signer interface for all signing HSM/KMS/software swappable without CA-logic changes SDLC_STATUS locked
D-006 OCSP free in OSS competitive differentiator vs step-ca SDLC_STATUS locked
D-007 XCEP/WSTEP path for ADCS (not DCOM) DCOM needs Windows CA; XCEP/WSTEP is HTTP/SOAP SDLC_STATUS locked
D-008 Discovery scanning is pure Go (TLS dial + agents + cloud inventory) Amended 2026-07-15 (G-21): original wording "two-phase (masscan + Go TLS)" was never built — masscan has 0 code references. Recording built reality. If masscan is ever revisited: AGPL-3.0 → subprocess-only, optional, never vendored SDLC_STATUS + this review locked (amended 07-15)
D-009 RBAC canonical role set: pki-admin/pki-operator/pki-viewer/pki-auditor/discovery-operator/service-account reconciles FR-092 + contracts + threat model BLOCKING_DECISIONS DEC-001 locked
D-010 No custom roles in V1 scope control (DEC-002) BLOCKING_DECISIONS locked
D-011 API-key semantics & precedence policy per DEC-003 contract stability BLOCKING_DECISIONS locked
D-012 Audit-log identifier canonicalization per DEC-004 join-safe audit trail BLOCKING_DECISIONS locked
D-013 Endpoint naming consistency per DEC-005 contract stability BLOCKING_DECISIONS locked
D-014 CSRF posture: Bearer + same-origin, no CSRF tokens recorded decision doc SECURITY_CSRF_POSTURE.md locked
D-015 Multi-tenancy = policy folders, flag-gated OFF (MULTI_TENANCY=on); off ⇒ identical to single-tenant; certs/approvals inherit issuing CA's tenant; templates explicit-mapped; pending actions stamp proposer's tenant tenant isolation without forking the product v2.2 scope + SESSION_STATUS locked
D-016 Default bind loopback (APP_BIND_ADDR=127.0.0.1) resolved HIGH broad-bind finding (Apr audit) ops audit WS-01/02 locked
D-017 MCP write surface is propose-only (pending-actions queue; a human approves) — no direct mutation from AI tools AI-native without excessive agency v2.0 scope + mcpserver/writetools.go locked
D-018 Version canon: the release train vX.Y.Z (CHANGELOG/tags) is the only forward-looking scheme. "V1–V4" SDLC cycles and "Sprint 5–7 / S5-xx" are historical labels, frozen ends the three-scheme collision (G-7) this review locked
D-019 Vocabulary canon — see block below cheap agents copy exactly (G-23) this review locked
D-020 Configuration is env-only (no config files); env.example is the documentation surface and must be complete matches built reality; one surface to validate this review (G-11) locked
D-021 Health canon: /healthz (live) + /readyz (ready), unauthenticated, served by the backend; the edge must proxy both code truth (handlers_meta.go); ends G-9 ambiguity this review locked
D-022 Tenancy is a design gap, fixed forward (not a hotfix): v2.2 isolation is header-asserted/read-only/partial; flag OFF ⇒ no live exposure. Correct the doc claims now (R-B5); ticket the enforcement (R-B1..B4). Isolation will become identity-bound (tenant claim + membership), not header-trusted P2 interrogation + the owner "design gap, fix-forward" locked (vetoable)
D-023 CI has never executed: self-hosted Actions is enabled and all 9 workflows are registered "active", but 0 runners are registered and 0 workflow runs exist (verified via forge API 2026-07-15). Every historical "CI green" claim is decorative. Repo stays single-remote; a runner must be registered (HP-2) before CI means anything. UI lanes are also misconfigured (R-A1) independently the owner "verify the the self-hosted forge runner" → verification: none exists locked (vetoable)
D-024 Adopt the CI-integrity bundle (R-A1 UI lanes · R-A3 nightly gate · R-A4 OpenAPI machine contract) AM-3 "adopt all" locked (vetoable)
D-025 Adopt identity-bound tenancy (R-B1): JWT/OIDC tenant claim + tenant on api_keys/users; X-Tenant = super-admin view-as only; FKs ca_tenants/template_tenants→tenants AM-1 (B1 as v2.3 track) locked (vetoable)
D-026 Adopt tenant write-path + single-GET enforcement (R-B2); auto-map new CA/template to creator's tenant AM-1 locked (vetoable)
D-027 Adopt tenant-scoped reports/dashboard OR ADR that aggregate metadata is super-admin-only (R-B3) AM-1; resolved by D-102 (W2-03) locked (vetoable)
D-028 Adopt tenant context in audit rows: tenant + acting_as_tenant (R-B4) AM-1 locked (vetoable)
D-029 Adopt structural MCP non-approver identity (R-C1): a constrained agent role canApproveActions rejects by construction, or boot-time refusal of approver-capable tokens AM-4 locked (vetoable)
D-030 Adopt rate-limiting on /pending-actions + /reports/* (R-C2) AM-4 locked (vetoable)
D-031 Adopt the finding funnel + justified suppression (R-D1): raw→dedup→scope→applicability→effective, all stamped; accepted-risk/exception primitive (fixed-enum justification, expiry-dated, auto-reopen); raw never hidden. New doc docs/design/FINDING_ECONOMICS.md AM-2 "adopt the design now" locked (vetoable)
D-032 Adopt wiring the intended dedup/staleness (R-D2): upsert endpoints on unique key; write certificate_endpoints.last_seen/currently_active; mark findings "gone" on non-observation AM-2 locked (vetoable)
D-033 Adopt alert cooldown + per-target silence (R-D3): implement the dead alert_cooldown_hours, track last-notified per cert, allow rule to target/silence a cert/CA/template AM-2 locked (vetoable)
D-034 Adopt renewal failure handling (R-E1): retry budget + dead-letter/escalation; surface trigger failures beyond a log line AM-5 locked (vetoable)
D-035 Adopt migration-wave lifecycle (R-E2): stored status proposed→accepted→in_progress→done→regressed AM-5 locked (vetoable)
D-036 Adopt telemetry-posture statement in SECURITY.md (R-F2): no phone-home; state it AM-5/F locked (vetoable)
D-037 Own the 4 code-quality backlog items as tickets (AM-7): G-10 UI SAN field, G-28 plaintext agent tokens (security edge), G-29 MCP transport+packaging, G-20 pkg/errors→stdlib AM-7 locked (vetoable)
D-038 Deferred (recorded so not re-derived): bootstrap package split (G-13) — lint-boundary config now, dedicated refactor track later, NOT an arc amendment; full rule-lifecycle engine for grading — over-scoped, accepted-risk primitive (D-031) is right-sized P2 rejected-list locked
D-039 Open-source posture (R-F1) parked as a founder slate (no public repo today); Casey contributor persona stays in scope pending that decision AM-6/F1 proposed
D-040 Notifications must actually deliver (email/Slack/PagerDuty/webhook/SIEM) — the log-only stub is not acceptable for a cert-expiry product golden-state (PE-1); competitive T1-#7 locked (vetoable)
D-041 The fleet renewal scheduler renews, not just logs "triggered" golden-state (PE-2); T1-#3 (47-day survival) locked (vetoable)
D-042 PQC migration gains an EXECUTE step (migrate-wave re-issues to ML-DSA/hybrid) golden-state (PE-3); T2-#9 locked (vetoable)
D-043 Ship ACME EAB free (tactical wedge vs Smallstep/commercial paywalls) competitive T1-#2 + wedge locked (vetoable)
D-044 Last-mile install breadth: nginx/apache/HAProxy/IIS + F5/Citrix golden-state (PE-4); T1-#4 locked (vetoable)
D-045 Kubernetes + Istio service-mesh cert push (cert-manager issuer already covers native k8s) competitive T1-#4 locked (vetoable)
D-046 Issuance-time policy engine (algorithms/key-size/validity/CA constraints), data-driven competitive T1-#5 locked (vetoable)
D-047 MCP write surface covers issue/renew/rotate (not just revoke), all approval-gated golden-state (PE-5); T2-#12/T3-#15 substrate locked (vetoable)
D-048 HA/clustering: schedulers + issuance safe on ≥2 replicas (leader election / locks) golden-state (PE-9); T1-#6 locked (vetoable)
D-049 Enterprise auth: SSO (SAML/OIDC) + SCIM provisioning + custom RBAC roles competitive T1-#5/#6 (PE-10) locked (vetoable)
D-050 Complete HSM/KMS integration (PKCS#11 + cloud KMS) for CA + PQC keys competitive T1-#6 locked (vetoable)
D-051 Key escrow / backup / recovery workflow under dual control + executed drill competitive T1-#6; kin G-8 locked (vetoable)
D-052 CBOM with CycloneDX export (crypto-asset inventory beyond certs) competitive T2-#10 (differentiator) locked (vetoable)
D-053 CT-log monitoring for owned domains (rogue/shadow-cert detection) competitive T2-#11 (differentiator) locked (vetoable)
D-054 Cross-signing / multi-issuer in-place key rotation (zero-downtime rollover) competitive T2-#13 locked (vetoable)
D-055 SPIFFE/SPIRE workload identity + attestation (gRPC Workload API; extends v2.1) competitive T2-#12 locked (vetoable)
D-056 AI-agent / NHI identity issuance (short-lived, attested, workload-bound) competitive T3-#12 frontier (144:1 NHI) locked (vetoable)
D-057 SLO-native PKI ops (golden-signal dashboards + issuance/renewal SLOs) competitive T3-#14 whitespace locked (vetoable)
D-058 AI-assisted ops: issuance-anomaly detection + NL policy authoring — LLM proposes, never activates (rules-first, D-017 kin) competitive T3-#15 locked (vetoable)
D-059 Report export in CSV/XLSX (beyond JSON+PDF) golden-state (PE-11); T1-#8 locked (vetoable)
D-060 Service-mesh + SaaS/API discovery breadth competitive T2-#1 frontier locked (vetoable)
D-061 Agent enrollment attestation (close open self-registration) golden-state (PE-7); T1-#6 security locked (vetoable)
D-062 Managed-target / fleet model: user declares targets with per-target discovery/install/renewal mode agentless map; FR-P24 locked (vetoable)
D-063 Outbound credential store (encrypted): SSH/device/cloud creds referenced by targets, never inlined agentless map; FR-P25 locked (vetoable)
D-064 Agentless install via SSH — hub pushes cert+key + test/reload/verify/rollback, reusing the agent state machine agentless map (install is agent-only today); FR-P26 locked (vetoable)
D-065 Agentless discovery is DB-persisted + scheduled + cloud-wired (cloudinventory is dead code today) agentless map; FR-P27 locked (vetoable)
D-066 Ship a reusable wizard/stepper primitive (none exists) UX map; FR-P28 locked (vetoable)
D-067 Day-0 onboarding wizard replaces the empty-dashboard dead end UX map §2; FR-P29 locked (vetoable)
D-068 In-app configuration store + Integrations UI — ~101 env vars, ~1 UI-writable today UX map §4; FR-P30/P31 locked (vetoable)
D-069 Guided issuance wizard replaces the flat dialog UX map; FR-P32 locked (vetoable)
D-070 Guided renewal-policy UI (per target/fleet) instead of env-only UX map; FR-P33 locked (vetoable)
D-071 Interactive agent + agentless setup flow (token-gen+pairing / target+mode+cred) UX+agentless maps; FR-P34 locked (vetoable)
D-072 Role-aware navigation (filter nav by role, not only action buttons) UX map; FR-P35 locked (vetoable)
D-073 PQC migration journey UI (plan→select→schedule→execute) wraps the W4-03 execute action UX map; FR-P36 locked (vetoable)
D-074 Command-palette actions (issue/renew/revoke), not only navigation UX map; FR-P37 locked (vetoable)
D-075 Empty-state CTAs everywhere (mostly text-only today) UX map; FR-P38 locked (vetoable)
D-076 Real-time status via SSE for long ops instead of 30s polling UX map; FR-P39 locked (vetoable)
D-077 Bulk actions across inventory pages (Discovery/Keys), not just Certificates UX map; FR-P40 locked (vetoable)
D-078 Every board ticket carries a decision-complete spec (docs/board/specs/<id>.md) before it is claimed, so a cheaper model can execute it (validator reports coverage) the owner "full details for a cheaper model"; kickoff §2.1; NFR-P4 locked
D-079 Fix the PKCS#11 HSM backend (doesn't compile today) key-mgmt map G-32; FR-P41 locked (vetoable)
D-080 Wire + persist Cloud KMS (dead code today) key-mgmt map G-34; FR-P42 locked (vetoable)
D-081 Fix PQC/hybrid key export serialization (broken today) key-mgmt map G-31; FR-P43 locked (vetoable)
D-082 CA re-key/rotation lifecycle + guard against the bare-RotateKey footgun key-mgmt map G-35; FR-P44 locked (vetoable)
D-083 Key-generation policy (algorithm allow-list / min-strength) key-mgmt map G-42; FR-P45 locked (vetoable)
D-084 M-of-N key ceremony state machine (US-002/NFR-011) key-mgmt map G-41; FR-P46 locked (vetoable)
D-085 Secure key destruction: zeroization + KMS ScheduleKeyDeletion (RISKS.md claim is false) key-mgmt map G-40; FR-P47 locked (vetoable)
D-086 HSM/KMS support for ML-DSA/hybrid keys (or documented software-only risk) key-mgmt map; FR-P48 locked (vetoable)
D-087 Per-key ACL + rotation schedule/auto-rotate + key-compromise workflow key-mgmt map; FR-P49 locked (vetoable)
D-088 Dual-control/quorum for destructive key ops key-mgmt map; FR-P50 locked (vetoable)
D-089 FIPS 140-2/3 posture (federal/regulated buyers; NFR-011) key-mgmt map; FR-P51 locked (vetoable)
D-090 Real versioned migration runner (the 20 migration files are dead code) deploy map G-33; FR-P52 locked (vetoable)
D-091 /readyz verifies real dependencies (static stub today) deploy map G-37; FR-P53 locked (vetoable)
D-092 CA-key + hub DB backup/restore + DR tooling with executed drill (disk loss = permanent CA loss today) deploy map G-36; FR-P54 locked (vetoable)
D-093 Wire + fix the deploy pipeline (smoke.sh 404s; by-digest.sh unwired) deploy map G-38; FR-P55 locked (vetoable)
D-094 Reconcile Helm chart with docs + fix image path + external-secrets (default install fails today) deploy map G-39; FR-P56 locked (vetoable)
D-095 Compose quickstart-true (missing files, sqlite/pg conflict, UI build) deploy map; FR-P57 locked (vetoable)
D-096 Containerize agent + MCP + certmanager deploy map G-29; FR-P58 locked (vetoable)
D-097 Chart HA/observability objects (Postgres/ServiceMonitor/PDB/NetworkPolicy) deploy map; FR-P59 locked (vetoable)
D-098 /metrics on all serving paths + Prometheus scrape wired deploy map; FR-P60 locked (vetoable)
D-099 Air-gap/offline install bundle (regulated/ADCS market) deploy map; FR-P61 locked (vetoable)
D-100 Infrastructure-as-code (Terraform to stand up the platform) deploy map; FR-P62 locked (vetoable)
D-101 Distribution packaging + reconcile the cosign signing model deploy map; FR-P63 locked (vetoable)
D-125 Bearer tokens (AUTH_MODE=jwt/oidc) are read-only by default. A valid token gets role viewer unless APP_AUTH_ROLE_CLAIM + APP_AUTH_ROLE_MAP_JSON (ordered claim-value -> role pairs; first match wins; mcp-agent and bootstrap refused) grant more. Also: oidc mode requires issuer and audience, nbf is checked, HS256 secrets must be >= 32 bytes, and auth configuration errors stop startup The 2026-10-09 audit (A02-4) showed every token from the IdP, for any client, could issue certificates; weak HS256 secrets let any session holder forge pki-admin (A02-3) the owner, 2026-10-09 (docs/security/final-report.md §6) locked
D-124 SSH certificates are issued only within a template's SSH policy. POST /api/v1/ssh/certificates requires template_id; the template's ssh_policy (cert types, exact allowed principals, host patterns, max TTL) bounds what is signed, and a template without one cannot issue SSH certificates The 2026-10-09 audit (A01S-4) had a pki-operator mint a root certificate; FR-P70 already said SSH certificates are issued against a template the owner, 2026-10-09 (docs/security/final-report.md §6) locked
D-123 Multi-tenancy ships in v0.9 as experimental. A hub with MULTI_TENANCY on refuses to start unless KRYPTKEEPER_MULTI_TENANCY_EXPERIMENTAL=accept-risk is set, then logs a warning; the UI labels it Experimental. Tenant isolation is not a security boundary in v0.9: the 2026-10-09 audit's tenancy findings (A01-001, A01S-3, A01-002, A01-004/005, A01-006, A01S-6, A01-007, OWASP-002) are scheduled for v0.10 Fixing every tenancy finding was the largest remediation group; the owner chose to gate and label rather than delay the release. Findings that also hit single-tenant installs are fixed now the owner, 2026-10-09 (docs/security/final-report.md §6) locked
D-122 Key dual control is on by default (2026-10-09, owner decision after the security audit). KRYPTKEEPER_KEY_DUAL_CONTROL unset or anything other than false means ON; only an explicit false (case-insensitive) disables it, and the hub then logs a startup WARNING. Every route that lets private key material leave the hub is covered, not only POST /keys/{id}/export: /admin/backup (key_backup), /keys/escrow (key_escrow) and its recovery (key_escrow_recover), /keys/leaf-escrow (key_leaf_escrow) and its recovery (key_leaf_escrow_recover), and /keys/byok/export (key_byok_export) all answer 202 with an action_id, a DIFFERENT human approves it in the pending-action queue, and the proposer redeems a single-use grant (10-minute TTL) by repeating the request with approved_action_id; recovery and BYOK grants are bound to the digest of the bundle the approver saw. With the guard on and the queue unreachable the routes fail closed (503). Separation of duties follows the human, not the credential: API keys record created_by (the minter's canonical human; a key minted by a key resolves to the first human), so a key an admin mints under any principal_id cannot approve that admin's proposals (nor can the admin approve proposals made with that key); the bootstrap token never approves or rejects (setup/break-glass credential); mcp-agent still never approves. Approvals execute once: the approve path wins a compare-and-set (pending to executing) BEFORE running the executor, so racing approvals run the action once and losers get 409. Known limit: one person holding both the bootstrap token and a named login still presents two ids, so a proposal made with the bootstrap token and approved by that person's own session cannot be detected; the bootstrap token can no longer be the approver, which closes the path to a token-plus-session approval. Two humans are required: keys minted with the bootstrap token all resolve to the bootstrap holder, so a bootstrap-only install needs two config-provisioned admin keys or SSO/login users to approve, or the explicit KRYPTKEEPER_KEY_DUAL_CONTROL=false opt-out (logged). A2A7-001, A07-4, LLM-006, A01-003 (2026-10-09 audit); D-088 (W9-10) locked
D-121 SCEP enrollment uses one-time, name-bound challenges (the owner, 2026-10-08: "do W20-17 then W20-16, merging each PR when CI is green"). A pki-admin or pki-operator mints a challenge for one device's names with POST /api/v1/scep/challenges (default 1 h, at most 24 h; only its SHA-256 is stored). PKIOperation consumes it atomically and issues exactly those names, never the CSR's. KRYPTKEEPER_SCEP_ENABLED=true turns SCEP on. The static shared KRYPTKEEPER_SCEP_CHALLENGE and the unauthenticated /scep/mscep_admin that handed it out are removed; if the old variable is set, SCEP stays off. Intune never used mscep_admin; real Intune support is W20-23. The CMP shared secret has the same reusable shape and is not changed here. Same class of hole as W20-08 (WSTEP) and W20-14 (EST): a reusable secret, given out unauthenticated, that let its holder choose any name. docs/ops/SCEP.md (W20-16) locked (vetoable)
D-120 Plugin ABI versioned by api_version (kryptkeeper.delivery/v1); the hub supports the current and previous versions (the owner, 2026-10-08: "accept all"). docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-119 Plugins declare their credential and target schemas; the hub validates and stores them (the owner, 2026-10-08: "accept all"). Replaces growth of the shared pushCredentialPayload. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-118 F5 and Citrix become first-party reference plugins; the built-in pushers are deleted once the plugins pass the conformance kit and one real-device run (the owner, 2026-10-08: "accept all"). W19-11 is rewritten to: both pass the kit, at least one proven on a real device or trial VM. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-117 Plugin trust and distribution in v1: local upload with a pinned SHA-256, cosign signature verified when present, three tiers shown (first-party / verified / community), no remote registry before the repo is public (the owner, 2026-10-08: "accept all"). First-party plugins are signed with a separate plugin-signing key, not the release key. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-116 Enabling a plugin with a High or Critical capability goes through the pending-action queue, proposer ≠ approver; Standard-only plugins are enabled by a pki-admin (the owner, 2026-10-08: "accept all"). Re-approval when an upgrade widens the capability set. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-115 Plugins may receive private keys as a Critical capability, with second-person approval (the owner, 2026-10-08: "accept all"). F5/Citrix-style devices need the key; the alternative is CSR or device-keygen targets only. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-114 Delivery plugins run on the hub only in v1 (the owner, 2026-10-08: "accept all"). The agent's sudoers allowlist must not be widened invisibly by third-party code. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-113 Delivery plugin execution model (the owner, 2026-10-08: "accept all"). A: WASM with brokered host functions (capabilities enforced; one new pure-Go dependency, approval-gated). B: subprocess over stdio (any language; capabilities declared, not enforced). C: in-tree Go only (not a community system). Chosen: A, WASM; adding a pure-Go WASM runtime dependency (e.g. wazero) is approved. docs/design/DELIVERY_PLUGINS.md (W20-18) locked
D-112 EST authenticates with both RFC 7030 methods (the owner, 2026-10-07: "EST auth both"). HTTP Basic over TLS against a users file (KRYPTKEEPER_EST_USERS_FILE, bcrypt), with each user limited to DNS names under its own label-anchored suffixes; the subject is reduced to the CN and nothing else from the CSR survives. A TLS client certificate chaining to operator-configured anchors (KRYPTKEEPER_EST_CLIENT_CA_FILE) yields that certificate's subject and DNS SANs. Re-enrollment needs a certificate this hub issued, checked by the same ca.CheckHubClientCertificate as WSTEP renewal, and keeps its names. Credentials are refused on any request that did not arrive over TLS, and there is no challenge. Enrollment is off unless a method is configured, and the PR #34 lab override KRYPTKEEPER_EST_ALLOW_UNAUTHENTICATED is deleted. The client-certificate method and re-enrollment need KRYPTKEEPER_TLS_REQUEST_CLIENT_CERT=true (D-111). Known limit: revocation of a client certificate from an external anchor is not checked (the hub has no CRL for that CA); the operator controls which anchors are trusted. W20-14; D-111; D-110; PR #34 locked
D-111 The TLS client-certificate request is opt-in, off by default (the owner, 2026-10-07). KRYPTKEEPER_TLS_REQUEST_CLIENT_CERT=true turns on tls.RequestClientCert on the main listener. Unset, the hub sends no CertificateRequest. Why: W18-08 showed Windows never renews by TLS client certificate (D-110), and the listener-wide request made Windows' WinHTTP revocation fetch fail (ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED, W20-10) and made browsers show a certificate picker on the UI. The WSTEP TLS renewal path itself is unchanged and still enforced when on (validity, client-auth EKU, revocation, 403 plus audit); with the flag off it is unreachable, and non-Windows clients that need it opt in. Verified on the lab hub: with the flag off the handshake carries no CertificateRequest (TLS 1.2 and 1.3), with it on it does, and lab-win11 autoenrollment is unaffected. W20-13; D-110; D-109; W20-08 locked
D-110 How Windows renews, recorded against D-109 (the owner, 2026-10-07): a domain machine renews over Kerberos with a request signed by its old key; the TLS client-certificate renewal path stays, for non-Windows clients. Background: D-109 assumed Windows renewal would present the hub-issued certificate as a TLS client certificate. W18-08's live run on lab-win11 showed otherwise. CES clientAuthentication 8 means WS-Security message-level X.509 signing, which the hub does not implement. A domain machine renews over the Kerberos URI, sending a PKCS#7 SignedData around its CMC/PKCS#10 request, signed by the old key (MS-WSTEP 4.1.5.1). So: (1) XCEP advertises only the Kerberos CES URI; (2) WSTEP accepts the PKCS#7/CMC envelope, and identity still comes from Kerberos, never from the request; (3) the TLS client-certificate renewal path built in W20-08 (validity, client-auth EKU and revocation checks, 403 plus audit) is kept unchanged for non-Windows clients. Consequence found in W20-10: the listener-wide tls.RequestClientCert that path needs makes Windows' WinHTTP revocation fetch fail (ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED). CRL/OCSP are therefore also served on an opt-in plain-HTTP listener (KRYPTKEEPER_REVOCATION_HTTP_ADDR), and certificates point there (KRYPTKEEPER_REVOCATION_BASE_URL). W18-08; W20-08; W20-10; W20-11 locked
D-109 WSTEP/XCEP authentication model (the owner, 2026-10-06): Windows-integrated (Kerberos/Negotiate via SPNEGO, service account + keytab from the DC) for initial enrollment, plus client-certificate authentication for renewal. Background: until PR #25 /wstep issued client-auth certificates to unauthenticated callers. It is now off by default (KRYPTKEEPER_WSTEP_ALLOW_UNAUTHENTICATED is lab-only). Username/password (option b) was not chosen. W18-08/W19-10 cannot close on the unauthenticated path; they depend on W20-08 implementing this. PR #25; W20-08; W18-08; W19-10 locked
D-108 W19-06 acceptance narrowed to the certificate read path (the owner, 2026-10-06). The board said "pulls real users and groups" and "a group membership change is reflected on the next sync", but the hub's AD read path (adcs_live, W13-04) syncs userCertificate values only and has no user/group model. Accepted as met by the certificate analogue proven on real Samba AD: certificates attached to directory objects sync with origin=synced, and a certificate added to a NEW object appears on the very next sync (gated TestLive_NewCertificateReflectedOnNextSync). User/group directory sync is not a current product capability; it would be new product work, not a W19-06 remainder. W19-06; STATUS 2026-10-06 locked
D-107 W19-30 resolved: KEEP BOTH subject_alt_names and uri_sans on the certificate API — not a duplication bug. W18-14 flattened every SAN kind (DNS, IP, URI, email) into subject_alt_names as strings, but uri_sans — the pre-existing typed view carrying only URI SANs (e.g. SPIFFE IDs) — kept being populated too, so a URI SAN now appears in both places with nothing merging or reconciling them. the owner chose (2026-09-11) to keep both rather than drop the duplicate: (1) no consumer treats them as needing to agree — nothing merges subject_alt_names and uri_sans together, so there is no correctness hazard from divergence, only redundancy; (2) internal/bootstrap/renewal_executor.go's splitSubjectAltNames rebuilds a renewal CSR by re-classifying subject_alt_names back into DNS/IP/URI/email — narrowing that flat list to exclude URIs (on the theory that uri_sans already covers them) would break that rebuild, which needs every SAN kind in one list to reconstruct the CSR faithfully (W18-14's own point). Dropping uri_sans instead was also rejected: existing UI/API consumers reading it as the typed URI view (e.g. SPIFFE ID display) would break for no correctness gain. docs/openapi.yaml's CertificateItem.subject_alt_names/uri_sans now document this explicitly so a future reader doesn't mistake it for undetected drift again W19-30; W18-14 locked
D-106 V5 direction: Kryptkeeper manages the whole certificate estate, not only its own CA's output — CA-agnostic inventory + takeover paths, layered on the existing platform. the owner chose (2026-08-18) to combine the current EJBCA-killer trajectory with Venafi's category-defining mechanic: most customers need crypto inventory and management of certificates issued by OTHER CAs (DigiCert/Entrust/Sectigo/Let's Encrypt/ADCS) before — or instead of — switching CAs. Concretely: an estate model on inventory (origin internal|imported|discovered|synced + management_state managed|external|unmanaged), bulk import, an external-issuer connector framework the internal engine also satisfies, an ACME upstream client (incl. EAB) so renewals can execute AT the original CA, ADCS sync-in + a commercial-CA adapter interface, a one-click approval-gated takeover flow (renew-internally or renew-upstream), and an SSH CA extending the V3 sshkeys inventory to issuance. Everything reuses the existing spine (inventory, risk, ownership, approvals, audit, notifications, last-mile install) — connectors are providers behind interfaces, same as keystores. Scope calls made here, not dodged: KMIP deferred until a customer pulls it; PGP/OpenPGP out of scope (code-signing covers the signing need; the target market does not ask CLM tools for PGP). CT-log monitoring (W6-06/FR-P15) feeds the same unmanaged-inventory funnel rather than a parallel findings-only stream. Vision: docs/sdlc/phase-0-ideation/VISION_V5.md; requirements FR-P64..FR-P70; board wave W11 VISION_V5; FR-P64..70; W11-01..07; CLM brief Tier-1 #1 "direct-CA import" locked
D-105 W4-09 headline-indicator fix: quantum_safe_leaf_only certs get partial credit toward PQCScorePercent but must NOT unlock the PQC countdown's "complete" status. While implementing D-104's new readiness category (W4-09), advisor caught that the per-cert category alone wasn't sufficient — the FLEET-level headline indicators derived from it (PQCCountdownReport.PQCScorePercent/Status) still overclaimed: pqcStatus returned "complete" whenever vulnerable==0, and leaf-only certs were never counted vulnerable, so a fleet fully migrated to leaf-only-PQC against classical CAs — the exact migrate-wave scenario D-104 approved — would report the countdown's "proof of progress" artifact as 100%/"complete", the same false-safety-record class D-104 exists to prevent, one layer above the field this session already fixed. the owner chose partial credit, honest "complete": PQCScorePercent continues to count leaf-only certs toward coverage (same weight as migration_ready — real, already-shipped progress, and migrate-wave's whole product purpose per D-042/Moat-2 is moving this number), but pqcStatus now requires BOTH vulnerable==0 AND quantum_safe_leaf_only==0 before returning "complete" — the strongest headline claim stays reserved for actual chain-level safety, while the score still visibly rewards the accepted deliverable W4-09; G-70 locked
D-104 G-70 resolved: "PQC migrate" (W4-03/W4-08) delivers leaf-key protection, not chain-level protection, and must be labeled honestly rather than as full quantum_safe. Migrate-wave re-issues a member against its EXISTING (realistically classical, per G-69) issuing CA — the resulting cert's subject key is PQC-safe but the cert's own chain-level authenticity (the issuer's classical signature binding issuer to leaf) remains forgeable under a classical break. the owner chose to ship migrate-wave as scoped (re-issuing against existing CAs, no CA-rotation prerequisite) rather than require chain-level protection first (which would need CAs themselves to become PQC-capable before migrate-wave has a realistic target population — materially bigger scope). Required as part of this choice, not optional: computePQCReadiness (certificate_ca_provider.go:828) gains a new, honest readiness category distinguishing leaf-key-only PQC from full chain-level quantum_safe — ticketed W4-09. This also resolves W4-08's [DECISION] #1 (whether a CA-issued hybrid leaf needs a real issuer alt-signature, oidAltSignatureValue) for the correct reason: since chain-level protection isn't the product's stated deliverable, a classical CA producing an issuer-level ML-DSA signature is neither needed nor possible (it doesn't hold an ML-DSA key) — the original fork-drafted spec reached the same "don't populate oidAltSignatureValue" conclusion via an incorrect proof-of-possession justification; this decision corrects the reasoning without changing the outcome W4-03, W4-08, W4-09; G-67, G-69, G-70 locked
D-103 Superseded same-day, see note. W4-03's manual-install/delivery tradeoff (generate-without-deliver: the hub does not auto-install the new cert+key on the target host) is resolved — the owner chose "ship as generated, manual install documented as the deliberate scope" over descoping to plan+track-only or narrowing to agent-managed targets only (2026-07-18). This resolves only the delivery question. It does NOT mean W4-03 is buildable as specced — implementation the same day surfaced a separate, deeper blocker (G-67): the spec's CSR-building mechanism cannot actually produce an ML-DSA certificate at all (stdlib x509.CreateCertificateRequest rejects ML-DSA signers), and silently produces a classical-only CSR for hybrid targets (a false "quantum-safe" record, not a loud failure). W4-03 is blocked in plan.json pending a foundational CSR encode/parse prerequisite; this decision's "ship as specced" framing is stale until that's resolved W4-03; D-042/FR-P3; G-67 locked
D-102 D-027 resolved as both branches, split per report family: crypto-posture, ca-health, expiry-timeline, revocation-activity, issuance-velocity, change-audit, compliance-evidence, algorithm-sunset, executive-summary, and pqc-migration are now tenant-scoped (via a shared reportScopeCertificates/reportScopeCAs/reportScopeAuditEntries helper, report_tenant_scope.go). dashboard (summary/actions/history/ack/resolve), crypto-posture/trend, evidence (schedules/send), pqc-countdown, pqc-waves (list/create/auto-derive/members/accept/delete, W2-08), and renewal-slo (W2-07) are aggregate-super-admin-only (403 for any tenant-scoped principal when MULTI_TENANCY=on) — their data comes from fleet-wide summary/snapshot/wave/agent stores (CertSummaryProvider, DiscoveryProvider, NotificationProvider, PostureSnapshotStore, MigrationWaveStore, EvidenceSchedule, AgentStore) with no per-tenant breakdown; retrofitting one is a separate, larger change to those stores' query shapes, out of W2-03's write_scope. pqc-countdown mixes cert-derived counts (filterable) with fleet-wide trend/wave series (not) — filtering only the cert half would produce a self-contradictory report, so the whole endpoint is gated rather than partially scoped. pqc-waves is gated for the same reason plus one more: a wave's members can span CAs owned by different tenants, so there is no non-arbitrary any-vs-all rule for "is this wave visible to tenant X" — gating avoids inventing one. renewal-slo is gated because agent-token auth (the source of every metric in this report — agent counts, renewal outcomes, MTTR) has no tenant concept at all (G-50): there is no coherent per-tenant slice of "which agents/renewal results belong to tenant X" to filter down to, only an all-or-nothing fleet view. Alternative considered and not taken: FailedRenewals specifically (unlike the aggregate agent/outcome/MTTR counts) carries a Fingerprint per entry that COULD be resolved to an issuing CA and filtered by reportScopeCertificates-style tenant mapping, giving a tenant-scoped principal a scoped actionable queue while still denying the un-filterable aggregate metrics — this ticket took the simpler blanket-deny instead, consistent with the rest of this decision's precedent (pqc-countdown/pqc-waves also chose whole-endpoint gating over partial filtering rather than inventing a mixed response shape); revisit if tenant-scoped operators specifically need renewal-failure visibility before the underlying agent-tenant question (G-50) is resolved for real. Product tradeoff surfaced for veto: under multi-tenancy, tenant-scoped users lose the dashboard, posture trend, evidence packs, PQC countdown, PQC migration waves, and the renewal-SLO/autopilot report entirely — only unscoped super-admins can see them, until/unless those backing stores (or agent auth itself) gain real per-tenant aggregation W2-03, W2-07, W2-08; R-B3 locked (vetoable)

Vocabulary canon (D-019) — copy exactly

  • Ticket status axis: todo · in_progress · blocked · done — nothing else.
  • Ledger/decision status axis: shipped · ticketed · open (lessons); locked · proposed (decisions).
  • Severity scale: B blocker · H high · M medium · L low. (Historical docs use CRITICAL/HIGH/…, 🔴🟡🟠, P0–P3 — do not propagate.)
  • Ticket points: ∈ {1, 2, 3, 5, 8}.
  • Runners: UI = npm (package-lock.json is committed; never pnpm). Backend = go / make. Tests: go test ./..., npm --prefix ui run test, scripts/test/run.sh --suite <protocol|integration|smoke>.
  • Ports: backend :8080; staging edge (nginx, UI+API) :3000.
  • Health: /healthz, /readyz (D-021).
  • Versions: release train vX.Y.Z only (D-018).
  • ID schemes: decisions D-xxx (this file) · gaps G-x (DESIGN_REVIEW) · recommendations R-x (P2 index) · lessons L-xx (LESSONS.md) · prerequisites HP-x (PREREQUISITES.md) · requirements FR-xxx/NFR-xxx (SRS) · stories US-xxx · board tickets W<wave>-<nn> once the P5 board lands (legacy B/F/T x.y frozen).