# 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 )` · `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/.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-212 | **Migrated ADCS templates meet the active key-size policy instead of weakening it (2026-10-18, ADCS rehearsal B2).** The migration raises an RSA template's minimum key size to the strictest enabled policy floor and says so in the dry run ("key size raised from N to M to meet policy X"); re-applying a migration or migrating a template with the same name and OID updates the existing template through the normal approval instead of returning 409. | Live rehearsal: migrated RSA-2048 templates were refused by the Baseline policy and could not be replaced. | W33-19 rehearsal; replace-adcs.md | locked | | D-213 | **DC, Kerberos and RAS templates migrated from ADCS are restricted from Windows autoenrollment (2026-10-18, B5).** Templates whose EKUs mark them DC/Kerberos/RAS-only get `auto_enroll=false` and enroll list `["pki-admin","protocol:wstep:restricted"]`. XCEP/WSTEP enforce a template's enroll list only when it contains a `protocol:wstep` entry (`protocol:wstep` = every Windows client, `protocol:wstep:` = one machine; `protocol:wstep:restricted` matches nobody), so existing API-role-only lists keep their pre-change behaviour. | A workstation was offered and tried to enroll DC templates; Kerberos gives the hub no groups, so grants are by host FQDN. | W33-19 rehearsal | locked | | D-214 | **Estate revert restores the pre-takeover management state (2026-10-18, B4) and inventory re-sync never downgrades a taken-over certificate (B3).** Revert sends inventory-origin certificates back to `external` and others to `unmanaged`, auditing `{from,to}`; renewal method and owner team are not yet restored (follow-up). | Rehearsal: revert produced `unmanaged`, and a re-sync silently undid a takeover. | W33-19 rehearsal | locked | | D-195 | **Team policy semantics are back-compat; loosening is approval-gated (W33 lead, 2026-10-17).** No policy row for a team = unrestricted; an empty allow-list = no restriction on that axis; `max_validity_days` 0 = no cap; `monthly_quota` 0 = unlimited. CREATE from no row applies at once (always a tightening). DELETE, emptying a non-empty list, adding to a non-empty list, raising a cap/quota or setting it to 0 are loosenings and go through the pending-action queue (proposer ≠ approver). Lookup/counter errors fail closed (503). | W33-20 said absent = deny-all, W33-21 said absent = unrestricted; deny-all would refuse every non-admin issuance after upgrade (non-admin team = principal id). Keeping two-person control on every loosening preserves the reason W33-20 chose deny-all. | W33-20, W33-21; UC-M04 | locked | | D-196 | **Team policy reads are scoped (W33 lead, 2026-10-17).** A non-admin may read only its own team's policy; listing and reading other teams needs pki-admin or auditor. Refusals are audited. | Policies reveal another team's allowed CAs and domains. | W33-20, W33-22 | locked | | D-197 | **A fresh hub starts with zero CAs (first-run mode) instead of exiting (W33 lead, 2026-10-17).** With no CA, no `KRYPTKEEPER_DEFAULT_CA_ID` and no `KRYPTKEEPER_BOOTSTRAP_CREATE_ROOT`, the hub logs `[FIRST-RUN]` and starts; ACME/EST/CMP/WSTEP resolve the default CA per request and answer 503 until a root exists; SCEP/XCEP need a restart. A `ListCAs` error or a missing explicit default CA stays fatal. The listener serves an in-memory ephemeral self-signed certificate (never plain HTTP) until the root exists and the hub restarts. | The onboarding wizard's Root CA step (UC-L01) was unreachable on a stock install; the bootstrap token and first login must not cross a cleartext listener. | W33-32 (gap of W33-02) | locked | | D-198 | **W33 agent enrollment extends W29-06's tokens rather than adding its own (W33, 2026-10-17).** W29-06 (`agent_enrollment_tokens`, migration 000240, `/api/v1/agent/enrollment-tokens`, `kkenr_` secrets, SHA-256 at rest, default 24 h / max 7 d) is canonical. W33-24 adds: tenant scope (migration 000323 adds `tenant_id`; mint stamps the caller's tenant, list/revoke see only it unless tenant bypass, a cross-tenant id is 404 like an unknown one); attach (the conditional UPDATE that redeems also sets `redeemed_agent_id`); `/agent/register` per-IP rate limit (429), 401 when no credential is sent, and one identical 403 for unknown/used/expired/revoked tokens; audit detail carries the token id, never the token. W33's `name_hint` maps onto `label`, `used_at` onto `redeemed_at`, `agent_id` onto `redeemed_agent_id`. W33-25: the agent reads `KRYPTKEEPER_ENROLL_TOKEN` from env or its env file only (never argv), sends it as `enrollment_token`, and scrubs it after exchange; TargetSetup mints/revokes on W29's routes. Open self-registration stays off by default (W5-07). | One token model instead of two; W33 keeps its hardening on top of W29's API. | W29-06, W33-24, W33-25 | locked | | D-199 | **On-behalf-of certificate requests always require approval (W33, 2026-10-17).** The request is enforced against the delegator's team policy and quota; delegation is tenant-scoped and never inferred from team_id; the delegate cannot approve; audit rows carry requester, delegate and approver. | Spec recommended default; keeps delegation from becoming a policy bypass. | W33-23 | locked | | D-200 | **SSO override lock-out guard (W33, 2026-10-17).** A `sso.oidc_*` config override is refused (409, audited) unless an enabled local admin exists and the IdP discovery probe passes; the probe goes through the egress client (https only, no redirects, no loopback/link-local/metadata, 3 s, 1 MiB). In oidc mode a local login-session JWT (break-glass) still authenticates so a bad override can be reset; DELETE of an override is never guarded. | Prevents an override from locking every admin out; the probe must not be an SSRF primitive. | W33-06 | locked | | D-201 | **Requester role (W33, 2026-10-17).** Fixed role with `certificate.read` + `certificate.issue`, writes confined to `POST /api/v1/certificates` plus self-service routes; scoped keys cannot widen it. Its UI shows only Request and My Requests. | Least privilege for self-service requesters. | W33-22 | locked | | D-202 | **Tenant gates fail closed when the tenant store is unavailable (security review F6, 2026-10-17).** With `MULTI_TENANCY` on and no tenant store (`NewTenantStoreFromEnv` returns nil on a DB open or schema error), `caVisibleToTenant`, `templateVisibleToTenant`, `filterCAsByTenant`, `filterCertificatesByTenant`, `filterTemplatesByTenant`, the CA-backed rows of `filterApprovalsByTenant` and `checkPendingActionTargets` deny non-bypass principals (lists empty, by-ID not visible, targets refused) instead of passing everything. Unscoped super-admins and `MULTI_TENANCY` off are unchanged. Matches `keyVisibleToTenant` and `cmdbCertVisible`. | A Postgres blip at boot must not expose every tenant's CAs, certificates and templates until restart. | security review F6 | locked | | D-204 | **SCIM has a grant ceiling and a default-tenant scope (security review F7, 2026-10-17).** The SCIM bearer can never assign `break-glass`, `bootstrap` or `mcp-agent`, and can assign `pki-admin` / `super-admin` only when `SCIM_ALLOW_ADMIN_ROLES=true` (default off). The ceiling applies to user create, user PATCH, `APP_SCIM_DEFAULT_ROLE` and the `APP_SCIM_GROUP_ROLE_MAP_JSON` group map (a SCIM client creates the groups, so the map is reachable with the bearer alone): a refused role answers 403 and is audited as denied, and a group still records membership but the privileged role is withheld. With `MULTI_TENANCY` on, SCIM reads, deprovisions and re-roles only default-tenant users; other tenants' users answer 404. SCIM deprovision (PATCH `active=false`, DELETE) and group member removal now cancel the user's pending issuance approvals (`CancelPendingForRequester`, W33-23); group removal cancels only approvals whose team id equals the group displayName. | The SCIM bearer is one long-lived, tenant-less secret held by the IdP; without a ceiling a leak of it is a leak of every admin role, and break-glass holders can override dual control. Operators who really provision admins from the IdP opt in explicitly. Residuals, accepted for v1: custom roles are not inspected, so a custom role with admin-equivalent permissions is still assignable through SCIM; and `pki-operator`, an approver role, stays assignable because provisioning operators is the normal SCIM use. Whoever holds the bearer already controls identity, so the ceiling bounds the blast radius of a leaked bearer rather than making SCIM untrusted. Out-of-scope user targets, withheld group roles and group removals are audited; removing a non-member cancels nothing. | security review F7; W33-23; D-102 | locked (vetoable) | | D-203 | **Agent, NHI and SPIFFE admin APIs are global-admin-only under multi-tenancy until they carry a tenant column (security review F3/F4, 2026-10-17).** With `MULTI_TENANCY` on, `GET /api/v1/agents`, `GET /api/v1/agents/{id}/tasks`, `DELETE /api/v1/agents/{id}`, `GET /api/v1/nhi/identities`, `POST /api/v1/nhi/identities/{id}/(approve, reject, revoke)` and `POST /api/v1/spiffe/svid` return 403 (audited as denied) unless the caller is an unscoped super-admin (`tenantBypass`). Agent-credential endpoints (`/api/v1/agent/*`, enrollment) and the join-token workload paths are unchanged, as is proposing an NHI identity. No migration in v1; per-tenant agents, NHI identities and SPIFFE trust domains are the follow-up. | The `agents` and `nhi_identities` tables and the SPIFFE signing CA have no tenant, so any tenant-scoped filter would be a guess; denying the operator surface is the only isolation that holds today. Tenant admins lose fleet visibility until the column lands. | security review F3, F4; D-102 | locked (vetoable) | | D-193 | **Live ecosystem legs ship as PENDING-RUN harnesses.** F5/Citrix appliance (W32-06), real Slack/PagerDuty/Teams (W32-09), ServiceNow dev instance + Jira Cloud (W32-18) and the clean-VM contributor dry run (W32-20) need accounts or hardware the build host lacks; each ships its harness, env contract and a results doc marked PENDING-RUN. Local stand-in results are labelled stand-in, never as the real service. Notification retries stay 3 attempts / linear 5 s (W32-09 asserts the current contract); 8-attempt exponential backoff, a Teams delivery channel and `owner_team` routing are filed as prerequisite tickets, not faked. | W32-06, W32-09, W32-18, W32-20 | locked | | D-192 | **Every ITSM event class has a producer.** `announceITSM` sends one itsm message per enabled itsm notification rule, tenant-visible via `caVisibleToTenant`, no-op when the provider does not deliver. Rules target ITSM with channel `itsm` and an ITSM connection id as target (migration 000302 widens the channel CHECK; `/notifications/test-delivery` still refuses itsm so a test never opens a real ticket). `approval_pending` fires on approval create (id `approval:`, links the ticket); `renewal_failed` fires on the scheduler's terminal auto-renew failure (id per failure episode, fingerprint = cert SHA-256, so the next verified renewal auto-resolves it; the manual-execute path is a follow-up); `expiry_no_owner` fires once per cert per window. Reconcile runs hourly and alerts once per ticket deleted again. | W32-26, W32-28, W32-33 | locked | | D-191 | **ServiceNow ticket type picks the table.** `ticket_type` `incident` (default) or `change_request`; the table is recorded in the stored `TicketRef.URL` so later Exists/Resolve/Approval calls hit it. A change resolves to `state=3, close_code=successful`; Find searches incident then change_request and treats 403/404 on change_request as no match. Approval reads the record's `approval` field and the newest approved `sysapproval_approver` row (integration user needs read on it). | W32-11, W32-26, W32-28 | locked | | D-190 | **ITSM connection `event_classes` is an array of `{class, ticket_type}`.** Classes `renewal_failed|approval_pending|expiry_no_owner`; ServiceNow types `incident|change_request`, Jira any issue-type name (default `Task`); stored and returned verbatim, legacy string arrays still read. `POST /itsm/connections/{id}/test` is admin-only, tenant-scoped (404 cross-tenant), audited, read-only (`Find("kk-connection-test")`), and returns one of three fixed details, never the upstream body. | W32-17, W32-25 | locked | | D-189 | **ChatOps posting is best-effort and never blocks an approval.** Approval and pending-action stores call a hook on create/decide; one ordered worker (256-slot queue, drop with warning when full) posts to the owner team's Slack channel / Teams conversation from `notifications.slack_team_channels` / `notifications.teams_team_channels` (env fallback); tokens/app password are Secret config keys. Unmapped team or missing credentials = no HTTP call. Message refs live in the self-healing `chatops_message_refs` table and outcomes (approved/rejected/expired) edit the message. | W32-22, W32-23, W32-27 | locked | | D-188 | **Teams tokens are validated with the stdlib, RS256 only.** Bot Framework JWT: `alg` must be RS256 with a `kid` (checked before key lookup), RSA >= 2048, iss/aud(=`TEAMS_APP_ID`, empty fails closed)/`serviceurl` exact, exp/nbf with 5-minute skew; JWKS via the egress client, cached 24 h, refetched at most once a minute on unknown kid. No JOSE dependency added. Only AAD tenants with at least one identity mapping can act. | W32-23 | locked | | D-187 | **ChatOps decisions go through the real approval routes.** Slack (signed `v0:ts:body`, 5-minute skew, replay guard; secret `SLACK_SIGNING_SECRET`) and Teams verify before parsing; `chatopsDecide` maps the external identity to an active Kryptkeeper user in the mapping's tenant and serves `/approve` or `/reject` through the mux with an injected principal and the `chatops` channel, so tenant gates, approver roles and proposer≠approver all apply. Every refusal is audited and changes no state; the identity map is admin-only. | W32-21, W32-23 | locked | | D-186 | **Approvals record their acting channel.** `ApprovalChannel{ui|itsm|chatops, external_id}` rides in the request context; approval.* audit rows lead with `channel`/`external_id` keys and action.* rows append them (no schema or openapi change). `authenticateDecider` honours an injected principal only when a non-ui channel is also set, so an HTTP caller can never supply one. | W32-15 | locked | | D-185 | **Ticket approvals are a poller, not a webhook.** The ITSM approval bridge polls linked tickets every 60 s (Jira status + ServiceNow `approval`), maps the approver through the admin-only `itsm_principal_map` (000301), and decides through the real approve route with the `itsm` channel; reopening a ticket after approval does not undo it; bootstrap principals cannot be mapped. Pending actions are not bridged. | W32-12, W32-26 | locked | | D-184 | **ITSM framework.** Migration 000300 adds `itsm_connections` / ticket events; one ticket per event id (`:`) across retries, backoff 5 min to 6 h, credentials from the encrypted credential store, connectors built through the egress client. `/api/v1/itsm/**` is admin-only; deleting a connection with ticket history is 409. | W32-10 | locked | | D-183 | **Webhooks are signed `v1=HMAC-SHA256(ts.body)`.** Headers `X-Kryptkeeper-Timestamp`, `-Event-Id`, `-Signature`; during rotation the previous secret also signs for 24 h after the new one is set (`v1=new,v1=old`). No secret = unsigned with one WARN per process. Receivers reject stale (> 5 min) or unsigned deliveries (docs/ops/WEBHOOK_VERIFY.md). | W32-08, W32-16 | locked | | D-182 | **The OpenAPI spec is served byte-identical and drives the SDKs.** `GET /api/v1/openapi.yaml` serves the embedded file unmodified; `info.version` in the repo equals the release version (release prep bumps it; `scripts/check-spec-version.sh` fails the release on drift). Go/TS/Python SDKs are generated by openapi-generator 7.25.0 in the release workflow and smoke-tested against a live hub before goreleaser runs. Terraform provider: 202 from the hub is a pending-approval error carrying the action id; acceptance runs against a native hub. | W32-01..05 | locked | | D-194 | **Wave progress counts delivery, not issuance.** A member whose delivery outcome is `delivery_unsupported` or `failed` (persisted as `migration_wave_members.delivery_status`) is reported as `undelivered`, not migrated, and keeps the wave out of `done` even when its successor cert is full-chain `quantum_safe`; a later `migrated` result clears it. Found by the W31-11 live run. | W31-21; D-105, D-175 | locked | | D-181 | **PQC key custody is stated, not implied.** The Keys pages, Cloud Keys page and `GET /reports/key-custody` (`pqc_custody_statement`) carry one statement that ML-DSA and hybrid keys are software-keystore-only (docs/ADR_PQC_KEYS_SOFTWARE_ONLY.md); a Go drift test pins the UI text to `PQCCustodyStatement`. | W31-19; FR-P48 | locked | | D-180 | **Scale and timing tests run nightly, not on PR CI.** The 1,000-cert wave run (W31-10, ~80s) and the 100k-cert blast-radius p95 test (W31-18) skip unless `KRYPTKEEPER_SCALE_TESTS=1`, which `nightly-scale-and-protocol.yml` sets; PR CI runs `internal/bootstrap` under `-race` near its 30m budget, where a timing bound is meaningless. The 200-member wave failure-injection tests stay on PR CI. | W31-10, W31-18 | locked | | D-179 | **Blast radius is honest about scope.** `GET /api/v1/blast-radius`: unknown target 404; a cert or CA owned by another tenant 403 (same convention as CA revoke; it reveals existence); algorithm impact is computed on the tenant-filtered graph; `edge_coverage` is disclosed; sub-CA chaining uses `ListCAs` (cap 1000) and falls back to cert-only edges on error. Approve/revoke screens gate on the preview; issuance approvals show a static notice; bulk-revoke impact is deferred. | W31-16, W31-17, W31-18 | locked | | D-178 | **Non-PQC algorithm transitions reuse PQC waves.** Wave execution takes an optional `target_algorithm` (must be in the template's `allowed_algorithms` and a supported transition target; else 400 + audit); `BuildTransitionCSR` wraps `BuildMigrationCSR` for PQC and adds the classical branch (migrator.go unchanged). v0.19 UI is a caption only; no auto-derive endpoint. | W31-14, W31-15 | locked | | D-177 | **PQC issuance refusals reuse the FIPS posture unchanged.** Issuance calls `keystore.CheckFIPSAlgorithm` (hybrid refused whenever FIPS is enabled; ML-DSA refused only when `fips140` is enforced); allow-list, FIPS and HSM-PQC refusals are 422 and audit `certificate.issue_refused` with `reason=allow_list|fips|hsm_pqc algorithm=` instead of the generic failure row. FIPS-mode tests skip unless run with `GODEBUG=fips140=on|only`. | W31-06; D-086 | locked | | D-176 | **PQC wave approvals expire and are separately audited.** `KRYPTKEEPER_PQC_WAVE_APPROVAL_TTL_HOURS` (default 24, separate from `APPROVAL_TTL_HOURS`); an expired approval is refused 409 and audited denied; proposer cannot approve (403). Audit keeps `pqc.wave_execute_propose/approve` and adds `pqc.wave_member_result` and `pqc.wave_regressed`; alerts `pqc_wave.member_failed` and `pqc_wave.regressed` carry no key material. | W31-09 | locked | | D-175 | **PQC waves verify delivery and roll back, but production delivery stays manual for now.** `runWaveMigration` delivers through a `waveDeliverer` seam; verify failure rolls back and marks the wave `regressed`; progress counts only members whose current cert is PQC (absent members are not migrated; leaf-only never reaches done). Production uses `unsupportedWaveDeliverer`: bound targets report `delivery_unsupported` (D-103 generate-without-deliver) until ML-DSA private-key export exists (follow-up). | W31-08, W31-11; D-103, D-105 | locked | | D-174 | **ML-DSA CAs sign their own CRLs and OCSP responses.** Hand-rolled RFC 5280/6960 DER in the new `internal/revsign` package (placed outside `internal/ca` to avoid an import cycle); classical issuers still use the stdlib. `CAListItem.revocation_signing` reports `ml-dsa` or `classical` (hybrid CAs sign classically). OpenSSL 3.6.5 verifies both (W31-04 live run). | W31-05, W31-04 | locked | | D-173 | **PQC readiness labels degrade, never flatter.** An unknown-OID key that is not ML-DSA is `not_applicable`; Ed25519 is classical; a cert whose issuing CA chain cannot be resolved (non-empty `caID`) takes the weaker leaf-only label; imported certs with no issuer keep the single-hop answer. CBOM certificate components carry `kryptkeeper:pqc_readiness`. | W31-01, W31-02; D-104, D-105 | locked | | D-172 | **Track IETF LAMPS composite signature OIDs after v1.0; the hybrid encoding stays the project's own until then.** Kryptkeeper's hybrid certificates use the alt-sig extensions of draft-ounsworth-x509-alt-sig-alg-07 (docs/PQC_HYBRID_ENCODING.md); no interop with LAMPS composite is claimed. Revisit when the composite draft is an RFC and OpenSSL or another mainstream verifier accepts it. Decision-tracking item only, no code. | W31-07; D-104; FR-P48 | locked | | D-171 | **Process-shared HA replica ID and deduped failover alert (W30-27).** Every scheduler's HACoordinator now shares one random replica ID per process (regenerated on restart), so one dead hub reads as one previous holder. Lease takeover from a different holder writes audit `ha.failover` per lock and at most one `scheduler.failover` alert per previous holder per 10 min; first acquire, self-renew and a graceful Release (row deleted) emit nothing. `backup.stale` measures from the newest successful `backup.create` audit row, latches per episode in memory (a new leader may re-alert once), and never alerts when no backup was ever taken, since backups are on-demand only | W30-27, W30-23 | locked | | D-170 | **Inventory refresh fetches only changed rows (W30-25/26).** The 2 s table refresh first scans `(fingerprint, updated_at, revoked)` and fetches full rows only where `rowSupersedes` could accept them (missing, newer, or newly revoked); semantics unchanged. 100k Postgres: search p99 975→115 ms, peak RSS 2.49→1.70 GiB. Resident inventory (~17 KiB/cert) stays the limit for 1M; lazy parsing is deferred | W30-21, W30-25, W30-26 | locked | | D-169 | **Fan-out reports undelivered (W30-04).** `FanOutChannel.Send` returns `ErrNoConfiguredChannel` when no member is configured instead of nil, so CT findings are not marked notified when nothing was delivered. Members come from `deliveryChannelsFromEnv`, not the escalation-wrapped provider, so fan-out cannot trigger escalation loops | W30-04, W30-03 | locked | | D-168 | **Escalation target is a Secret config key (W30-03).** `notifications.escalation_target` can hold a webhook URL or routing key, so it is Secret (spec said false); GET /config shows only `configured`. HTTP error text passes through `delivery.RedactURLs` before logging or escalation | W30-03 | locked | | D-167 | **Expiry thresholds fire once per crossing per fingerprint (W30-01/02).** A recorded crossing never re-fires for that fingerprint (renewal = new fingerprint = new cycle); a template-scoped rule overrides all global rules for that cert; pct/template requests return 503 when the options store is down rather than dropping options. A routed (`@owner_team`) rule is marked crossed once at least one route accepts; team routes are tenant-checked with `caVisibleToTenant` | W30-01, W30-02 | locked | | D-166 | **SLO samples are in memory; first tick is the baseline (W30-05/06).** Ratio SLOs are judged over the 30-day window from in-process samples, so after a restart pre-existing failures do not page until new ones arrive (documented in the dashboard `__comment`). Objectives are runtime-tunable via config keys `slo.*` (ratios 0.5 failed`. After the 3rd failure the scheduler emits `evidence.delivery_failed` through the W28-04 `AlertEventSink` (default sink: log line plus audit row, `evidence_schedule` resource) and does not call `MarkSent`, so the schedule stays due and the next poll retries. Detail carries schedule id, framework, attempts and error, never recipients or SMTP credentials. | W28-20; W28-13 | locked | | D-141 | **Posture/report pages drill through to existing list filters, and the audit page seeds its filters from the URL.** CA Health and Issuance Velocity "By CA" rows link to `/certificates?ca_id=`; Revocation Activity "By CA" rows and the recent-revocation CA cell link to `/certificates?status=revoked&ca_id=` and the common name to `/certificates/`; Change Audit resource cells link to `/audit?resource_id=` (the change-audit payload carries no `resource_type`, so a guessed type would risk empty results; events with no resource fall back to `/audit?action=`). `Audit.tsx` seeds its draft and applied filters from `action`, `actor_type`, `resource_type`, `resource_id`, `outcome` on load; `resource_id` is filtered server-side (already supported by `GET /audit` and the audit stores) and shown as a clearable "Filtered to resource" chip. No new query keys beyond what `Certificates.tsx` and `GET /audit` already read | W28-21; W28-18 | locked | | D-127 | **Takeover of unmanaged certificates is audit-logged, not approval-gated (the owner, 2026-10-15, option card "Audit only").** Takeover assigns an owner and a renewal path and flips management_state to managed; no key material moves. Every takeover writes an estate.takeover audit row and is reversible by POST /api/v1/estate/revert. Choosing an upstream renewal path stays governed by the policy engine (UC-E01). FR-P69 is amended accordingly. | No key moves; the code already behaves this way (`internal/bootstrap/handlers_estate.go` header). | `docs/v1-vision/06-DECISIONS.md` #1; UC-D08; W11-06, W24-31 | locked | | D-128 | **Descope FR-063 agent self-update from v1.0.** Agent upgrades are done by package manager, MSI, config management or image replacement. | No self-update or manifest-verification code exists (`THREAT_MODEL.md`); a self-updating binary adds a signing-key and downgrade-attack surface the v1.0 threat model has not accepted. Revisit in v1.x as "Agent self-update with signed manifest". | UC-M24; FR-063 | locked | | D-153 | **The RFC 3161 time-stamp service (W29-14) signs with an operator-provisioned key and certificate, and is closed to anonymous callers by default.** `KRYPTKEEPER_TSA_CERT_FILE` + `KRYPTKEEPER_TSA_KEY_FILE` (PKCS#8, mode 0600 enforced, optional `KRYPTKEEPER_TSA_CHAIN_FILE` and `KRYPTKEEPER_TSA_POLICY_OID`) because the hub CA cannot mint a spec-valid TSA certificate (it never marks the EKU critical and refuses extra id-ce extensions, and `openssl ts -verify` requires exactly that). `POST /api/v1/tsa` needs a hub principal unless `KRYPTKEEPER_TSA_ALLOW_ANONYMOUS=true` (startup WARN), because jarsigner and openssl ts cannot send a Bearer token; no per-source rate limit exists yet, so anonymous mode is unthrottled. Follow-up: a CriticalEKU issuance option so the hub can issue its own TSA certificate. | W29-14 spec decisions | locked | | D-152 | **Code-signing issuance from a CI OIDC token (W29-11/12): CSR keys are ECDSA P-256/P-384/P-521 or RSA >= 3072 (Ed25519, RSA-2048 and ML-DSA are refused with 400); failing to record an issued certificate in the inventory is fatal (503, nothing handed out), because an unrecorded certificate cannot be revoked or policy-checked; trust-rule creation is dual control through the approval queue while deletion is single control (admin-only, audited), because removing trust is the safe direction.** A trust-rule issuer must be https with no loopback exception, the rule's CA must be visible to the proposer's tenant (checked at proposal and again at approval), and a rule's repo pattern must name an owner and its ref pattern must start with `refs/`. | W29-11, W29-12 spec decisions | locked | | D-151 | **Agent enrollment: the shared, reusable CSV enrollment secret (`KRYPTKEEPER_AGENT_ENROLLMENT_SECRETS`) is demoted to a warned transition path; per-agent single-use enrollment tokens (admin-minted via `POST /api/v1/agent/enrollment-tokens`, redeemed once at `/api/v1/agent/register`, revocable) are the preferred mechanism.** The hub logs a startup warning when a shared secret is configured (never the secret itself) and unauthenticated open registration stays off. | A shared reusable secret cannot be attributed to one agent or revoked individually; single-use tokens bound to a label and TTL limit blast radius and leave an audit trail. | W29-06, W29-07 | locked | | D-150 | **The request-time NHI authorizer is built and tested but not wired to any request path yet (W29-03).** `NHIAuthorizer.Authorize` resolves scopes live by SPIFFE ID with no cache (so revocation and scope edits apply on the next call, inside the 60 s bound) and `RevokeBySPIFFEID` burns unredeemed join tokens, but nothing in the hub presents an SVID as a request credential until mTLS/SVID principal resolution lands. Follow-up ticket: SVID-to-principal resolution on the listener. The SVID itself lives to its expiry (max 7 d) until CRL/OCSP linkage ships. | W29-03 spec decisions (registry revoke, wiring, caching) | locked | | D-126 | **After a CA key is marked compromised, OCSP keeps answering for leaves issued under it, signed by the retired (compromised) key, until the key is retired.** A relying party that holds only the old anchor can verify nothing signed by the new key, so a `revoked` answer from the old key is the only way it learns those leaves are revoked; an attacker holding the key could forge `good` either way, so refusing (`unauthorized`) removes the true signal without removing the risk. the owner chose this recommended option on 2026-10-16 (W23 thread). The old anchor must still be distrusted out of band; retired keys are destroyed by `RetireRotatedKeys`, after which old-issuer requests answer `unauthorized` | W23-19, W23-41, W23-38 | locked | | 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-332 | **Templates can fix subject RDNs, ACME issues under its template's whole policy, and the engine refuses what the issuing CA's name constraints forbid (2026-10-31, from a user question about name-constrained CAs; lead default, owner may override).** (1) `subject_policy.fixed_rdns` (DC, O, OU, L, ST, C; never CN) makes the subject exactly CN plus those RDNs on every path that passes the template, so a requester cannot step outside them; written in DN reading order, encoded top of the tree first, DC as IA5String. (2) ACME finalize resolves the template of `KRYPTKEEPER_ACME_TEMPLATE` or of the provisioner and applies its full policy (before only its enrollment roles were checked); a shorter template validity caps the 90-day default instead of refusing, a breach is `badCSR`, an unreadable template fails closed. (3) Before signing, the engine checks the leaf against the DNS, IP, email, URI and directoryName constraints of the issuing CA and the ancestors it holds, and refuses with a `name_constraints` policy violation. (4) crypto/x509 leaves a directoryName constraint unhandled, which failed every external-CA chain through such a CA; the external path drops that one unhandled marker only when the extension holds nothing but forms it can evaluate, and then checks directoryName itself on the verified chain. | The certificate was going to fail at the relying party anyway; refusing at issuance tells the requester why, and a template bound to a protocol should govern it. | W20-09, D-112 | locked | | D-331 | **Trust push and agent transport fail closed (v1.1 scan, 2026-10-27; lead default, owner may override).** (1) The agent never follows a hub redirect and refuses a non-https `KRYPTKEEPER_HUB_URL` unless the host is loopback; there is no opt-out because every shipped and documented hub URL is https or loopback. (2) A pending trust bundle whose certificates all appear in a newer bundle for the same agent is dropped, and the rest are applied oldest first, so the operator's latest intent for a root always wins. (3) The root helper stages certificates in a fresh 0700 directory and writes its state through an exclusive temp file; moving the state directory off the agent user's ownership is roadmap (B-04). (4) A plugin version with a lower trust tier than the running one needs approval even when its capabilities are within the current grant, and only a platform super-admin approves a plugin enable under multi-tenancy. | | D-330 | **Connectors may only bind credentials the caller's tenant may use, and ambient cloud identity is pinned (v1.1 scan, 2026-10-27; lead default, owner may override).** (1) `credential_ref` on connector create must name a credential visible to the caller's tenant (the targets rule) and, for `aws_pca`/`gcp_cas`, a `cloud_iam` one; other kinds have no clean type mapping and get the tenant check only. Connectors created before this are not re-validated. In a single-tenant hub a `discovery.manage` holder can still bind any credential, as with targets; a per-credential use grant is roadmap. (2) `auth: ambient` means the hub's own cloud identity: `gcp_cas` talks only to `https://privateca.googleapis.com`, `aws_pca` cannot override its endpoint, and under multi-tenancy only a platform super-admin creates one. (3) CyberArk CCP sources authenticate the hub by AppID and allowed-machine list only; per-source client certificates are roadmap (A-01). | | D-329 | **The Opsgenie notify plugin is deprecated, not validated, and removed in 2.0 (2026-10-26, from the closing-the-gap review).** Atlassian stopped selling Opsgenie on 2025-06-04 and ends support on 2027-04-05, so a real-tenant run would prove an integration with months left. The plugin stays in the tree and the catalogue so 1.1 users are not broken in a patch release. The deprecation lives in a hub-side list keyed by plugin id (`internal/plugins/delivery/deprecated.go`), not in the manifest, because every hub parses manifests strictly and a new field would make a 1.1.0 hub refuse the plugin. The hub logs a warning on install and on each load, the catalogue description says deprecated (it is the plugin README's first line), and the docs point users to Jira Service Management, PagerDuty or a webhook. | | D-328 | **Signed plugin catalogue (W37-11 as W38-11; proposed, lead default; owner may override).** (1) `catalogue.json` (format version 1) lists plugin versions with `manifest_url`, `wasm_url`, `bundle_url` (a cosign bundle over the exact manifest bytes), the module `sha256`, a capability summary and an optional `min_hub_version`; the catalogue is signed with `cosign sign-blob --key` into `catalogue.json.bundle` beside it. (2) **No new trust root:** the catalogue is verified by `PluginTrust`, i.e. the compiled-in first-party plugin key or a key in `KRYPTKEEPER_PLUGIN_TRUSTED_KEYS`. Keyless signing was not used, because the hub verifies plugin signatures offline against that key and keyless would have needed Fulcio/Rekor and a second identity check. An unsigned or unknown-signer catalogue is refused. (3) The hub fetches only when an administrator opens the Catalogue tab or calls `GET /api/v1/plugin-catalogue` (no polling), through `egress.NewClient` (HTTPS only, private space allowed for internal mirrors, same-host redirects); `KRYPTKEEPER_PLUGIN_CATALOGUE_URL` overrides the default `https://kryptkeeper.io/plugins/catalogue.json`, and empty disables it. (4) Install downloads manifest, bundle and module, checks the module against both the catalogue's and the manifest's pinned SHA-256 and that the manifest id and version match the entry, then calls `DeliveryPluginManager.Install`, the function a manual upload calls, so tiers and enable-time approval (High/Critical need a second admin) are identical; the result is a disabled version. (5) Air-gapped hubs use `POST /api/v1/plugin-catalogue/import` with the catalogue, its bundle and one plugin's files from the release asset; the catalogue signature is verified the same way and nothing touches the network. (6) Non-delivery kinds carry `min_hub_version` 1.1.0 so an older hub says so instead of failing on the unknown `kind` field. (7) The release workflow gets a `plugin-catalogue` job that signs plugins and the catalogue with the plugin key held as two repository secrets; this is the first CI use of that key and is the owner's call to enable (packaging/SIGNING.md). | Local upload is friction for first-party plugins; the repository is public. A key-signed catalogue keeps one trust root and works offline. | W37-11; D-311; D-117; D-320 | proposed (lead default; owner may override) | | D-327 | **Intune SCEP through the Intune validation API (W20-23; proposed, lead default; owner may override).** (1) A SCEP label (`/scep/