Repository navigation
feat(deploy): pin OK-170 release digests by platform child, with G0 package builder and rehearsal driver (OK-170) - #187
Merged
Merged
Conversation
… client-ID copies
…forbidden-server fixes, independent deviation proof
… drop unused test state
…partial conditions
…-only scan needles, check-target --post-setup, hash after passing check
…e and field credential needles, exact r2 differential, trimmed nonces
…efault kubectl passes the hash guard
…expectations # Conflicts: # deploy/kubernetes/fixtures/ok170-rehearsal/guards.mjs # deploy/kubernetes/fixtures/ok170-rehearsal/mutate.mjs
…ectl cannot open /dev/stdin under spawnSync)
… offline SSA model removed
…eouts, default-runner coverage, nonce isolation
…, managedFields reads, final-value check, failed-step record
…expectations # Conflicts: # deploy/kubernetes/fixtures/ok170-rehearsal/guards.mjs # deploy/kubernetes/fixtures/ok170-rehearsal/mutate.mjs # deploy/kubernetes/rehearse-ok170/seed.mjs
… set, scratch label, settle waits, procedure-only H
…der (sorted fieldsV1 keys made SSA reorder env)
…tory; server-only paths must be unowned; Namespace covered
…read, step-scoped attribution, exit codes
…tus attribution, STOP latch, artifact path checks, split guards
… from wet history, all gate inputs checked
…ks, Q9
- oracle binds every applied/admitted artifact (package + sha256) into expectations/package-bindings.json
- binding.mjs: recompute bindings from the final packages before P0; live-run checks 1-10 as functions;
prepareRun (check-target, Q9, seed rc 0 only, builds, oracle x2, identity checks, binding)
- q9.mjs: index/child digests, cosign identity, SLSA + SPDX attestations, source revision, frozen run URLs
- config: optional frozenRunUrls {C1, C1R, P1}
- common.mjs: shared helpers for new modules
…certificate run identity Review r1 (REVISE) findings: - B1 P0 binds and evaluates HANDOVER_UNDO_ARTIFACT (G0 undo dry-run, procedure L187) - B2 expectations.mjs bindingPlan/phasePackage shared by oracle and verifier; verifier requires the planned package - B3 Q9 requires the Fulcio certificate runInvocationURI/sourceRepositoryDigest/sourceRepositoryRef and the SLSA predicate to name the same run as the frozen URL - package directories and per-package inventories must match across all five packages - release JSON shape guard; coverage refusals name the artifact; stale-binding pipeline test - guard-removal harness separates true kills from fail-closed crashes (listed)
…y entries, true-kill cases Review r2 (REVISE): - oracle P0 undo dry-run as ok-173-breakglass must be warning-free, on the snapshot UID and resourceVersion, with zero value delta and an unchanged breakglass v1 Apply field set (procedure L190); else STOP before H - package directories compare every entry (empty or stray entries refuse) - binding-sums-line and common-tree-root cases now pass without their guard (duplicate row, symlinked tree)
…rget check, package root Review r3 (REVISE): - assertUndoDryRun: UID and resourceVersion must be present (absent on both sides no longer equal); breakglass fieldsV1 must be present - the undo artifact gets the same target check as every admission, before its dry-run - package roots must be real directories (a symlinked packages/ root refuses) Harness: mutate.mjs copies common.mjs into mutants; two stale variant sites (server-real-handover, server-pu-artifact) follow the r1/r2 oracle code.
- config, target, packages, seed, expectations, expectations-server and procedure use common.mjs stop, isRecord, sha256, prettyJson and refuseSymlinkAncestors; config.mjs and packages.mjs re-export stop and sha256 - behaviour unchanged: guard ids identical per file, STOP texts, exit classes, modes and write flags preserved - test: every mutation variant site must occur exactly once in its file - cases for the three previously surviving mutations (seed projection roots/metadata, server default base) and the writer ancestor check; full guard-removal campaign 245 killed, 0 survived
…etween checkpoints, session wiring - checks.mjs: Q1 verbatim, pinned-CA health 204, mixed/bootstrap expected-images writer with both Deployment keys, Q3 admission against hash-checked post-apply expectations - session.mjs: PID-owned port-forward per Ready Console replica, session-runner client; inconclusive never passes - procedure.mjs: STOP latch by boolean; foreign caller-check errors wrapped as phase STOPs (M5a follow-up 3)
… Q3 inputs, latch hook Review r1 (red-team + pr-reviewer): - runtime identity: the approved pair comes from the phase and bound recovery artifacts, never the caller's roles - Q3: package records, manifests and overlay pinned after prepareRun; checkpoint expected-images compared with the release; verifier requires VERIFY_READONLY=PASS - Q1 judged from the procedure step's own stdout - session evidence scans credential values and filenames; runner shutdown waits for queued cleanup and reports leftovers; checks and sessions latch through a procedure hook; one exported ProcedureStop helper - exit class before/after an apply attempt documented and tested (2 / 1)
…overlay render, latch on any check error Review r2 (pr-reviewer + red-team): - external STOPs exit 2 before any apply attempt, 1 after - Q3 verifier reads a private overlay built from the render pinned at createChecks - any error inside an observed check latches, wrapped without raw error text - mixed phases require the applied artifact; exact-pair cases for every phase->roles entry; latch hook required - session close always checks leftovers; bounded wait after SIGKILL; prepareRun digests verified by createChecks
…st, exit class by apply attempt only Review r3 (red-team): - Q3 overlay render uses targetEnvironment (KUBECTL_KUBERC=false, no other KUBECTL_*) and must equal the oracle's render digest (expectations/overlay-render.json, checksummed); drift STOPs with exit 2 - exit class depends only on whether an apply was attempted (2 before, 1 after); inline and observed checks agree - a latch hook returning a non-Error no longer throws a raw value
…ing, pinned phase schedule, recovery pair
…ared Recovery E verification, retained evidence pinned
…Recovery E stop rows
…helpers, run-evidence needle policy
…t credential basenames, rollout vs read split
…tl rollout timeout inside budget, live old-context check
…leased recovery records, rejected rc.31/rc.20
…ren in recovery tools, breakglass registry verify
…ce, rejected revision and tag scan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
OK-170 approval c15449 (B5) calls for one digest-pin PR before the disposable rehearsal. Arash's signed tags are published and verified. This PR pins them, together with the offline G0 package builder and the rehearsal driver that the rehearsal runs.
Released images
dev-breakglass-v0.1.0-rc.32928a2f17246deca…5ac2b6f851f3…d7550aef3d84…3699dev-v0.1.0-rc.21928a2f19d4cd302…51bc5309e1e9…9e3aadc02590…7250console-observer-dev-v0.1.0-rc.22fe9d8c3dd2d3b19…b1c3de83ba15…0c0c622100bd…edb5Each image was verified for tag→digest, the platform map, Trivy (amd64 and arm64), the cosign signature at the tag identity, SLSA v1 and SPDX 2.3 attestations, and labels (revision, auth/data mode). The full digests are in
deploy/kubernetes/overlays/expected-digests.jsonand the procedure's candidate table.Candidate source change. The Console candidate moved from
4dd41e7to928a2f1(#186, libzstd1 CVE-2026-124851 runtime-base re-pin). Its rc.31/rc.20 builds of4dd41e7failed the vulnerability gate and are rejected.Change
<repo>@<platforms["linux/amd64"]>for a released entry, and reject the index, the arm64 child, any other digest and the sentinel.ok-shared-liveis unchanged: C0/P0 stay the live and rollback pair, and only they may use the recorded index form.verify-recovery-image.sh(both modes) and the repo scan. Tags match whole, sorc.20never blocksrc.200.verify-recovery-image.sh registry bootstrap|breakglass <ref>. The role is explicit. The reference must equal that role's record index. The script checks the exact platform map, labels and thepublish-dev-imageattestation for the tag, and prints the verified role.Verification
On the PR head:
pnpm lint0.vitest run deploy/kubernetes(--maxWorkers=1 --testTimeout=15000): 1956/1956 passed.test:rehearsal-session: 111/111.// guard:site is removed once and its case fails.render-ok-shared-recovery.mjsrenders…@5309e1e9…(bootstrap) and…@b6f851f3…(post-recovery).verify-recovery-image.sh local 928a2f1…: PASS.Registry, anonymous GHCR:
registry bootstrap <C1-R>registry breakglass <C1>registry bootstrap <C1>registry breakglass <C1-R>registry bootstrap <C1>against a staged fake bootstrap recordScope of this evidence
Timeout calling onTaskUpdateworker error while every test passes.