docs(vault): add safe-session local CA cutover runbook #614
No reviewers
Labels
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/platform!614
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/m04-safe-session-cutover-runbook"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canary status: pending — Forgejo Actions must run before merge.
Canary Context Pack
Product story
M04 Vault sunset needs a reversible, evidence-first cutover from Vault SSH signing to the local safe-session OpenSSH CA signer, while keeping Infisical as the only canonical secret source.
What changed
safe-session-apilocal signer mode.Why it changed
Vault is still running on RS2000, but observed inventory shows no KV secrets and only the safe-session SSH signing path remains. This PR prepares the runtime cutover without performing it.
Files touched
compose/overlays/safe-session-local-ca.yamlscripts/cutover/safe-session-local-ca-preflight.shrunbooks/safe-session-local-ca-cutover.mdRelevant context
decisions/0024-infisical-primary-secrets-pipeline.mdmigrations/vault-to-infisical.mddocs/specs/vault-to-infisical-migration-v0/02-plan-and-tasks.mdRuntime evidence
No runtime mutation was performed. Validation run locally:
Known constraints
PLATFORM_RUNTIME_SAFE_SESSION_CA_KEY_FILE.m04-vault-runtime-cutover-approved.m04-vault-destructive-cleanup-approved.Explicit out-of-scope
llmopsparity.Requested decision
Approve this as the nondestructive cutover runbook/guardrail PR.
Merge blockers
DeepSeek V4 Pro redteam
DeepSeek V4 Pro reviewed the overlay, preflight, and runbook and returned APPROVE. The review called out no blockers; the main caveat was that modes
0500/0700are owner-only but executable, which is acceptable for the host-key preflight and can be tightened later if desired.Validation
bash -n scripts/cutover/safe-session-local-ca-preflight.sh— passUV_CACHE_DIR=/private/tmp/codex-uv-cache PYTHONPATH=control-plane uv run --project control-plane python -m platformctl.cli validate all --json— pass (exitCode=0, 88 modules)Spec sources read
AGENTS.md— Forgejo identity and PR contractdocs/forgejo-agent-operations.md— Forgejo write path and identity rulesdecisions/0024-infisical-primary-secrets-pipeline.md— M04 boundarymigrations/vault-to-infisical.md— migration plandocs/specs/vault-to-infisical-migration-v0/02-plan-and-tasks.md— task sequencingscripts/safe-session-api/local_signer.py— signer contract from PR #613scripts/safe-session-api/server.py— runtime signer mode contract from PR #613Refs #64
Refs #609
db3265034886eaa7b5bc86eaa7b5bc11aef9acf4Patchwarden PR sanity
advisory_findings6142c2848e3f70dd56eceb1681a72cbdeba9e54ae73presentDeterministic findings
No deterministic findings.
Model reviewers
global-glm/glm-5.1:cloudStatus:
okVerdict:
OKlowPreflight mode check accepts 500/700 despite runbook stating '0600 or stricter'scripts/cutover/safe-session-local-ca-preflight.sh line 27:case "$mode" in 400|500|600|700) ;;accepts mode 700 (rwx for owner), but runbooks/safe-session-local-ca-cutover.md line 21 states 'mode0600or stricter'. Mode 700 adds execut400|600only, or update the runbook to accurately reflect that modes 500/700 are accepted. This is a hardening opportunity, not a blocker, since 700 is still owner-only.global-deepseek/deepseek-v4-pro:cloudokOKredteam/kimi-k2.6:cloudStatus:
okVerdict:
NOT_OKhighPreflight omits owner validation despite runbook requiring root:rootscripts/cutover/safe-session-local-ca-preflight.sh lines 27-28 computeowner="$(stat ... )"and line 44 emits it inok(), but never enforce the value; runbooks/safe-session-local-ca-cutover.md explicitly lists the precondition 'The rendif [[ "$owner" != "root:root" ]]; then fail "ca_key_owner_must_be_root:root"; fiPolicy notes
PLATFORMCTL_PR_SANITY_REDTEAM_MODELis configured.11aef9acf41c7f99a3601c7f99a3602c2848e3f7