runtime: add fenced per-service auth enrollment and refresh journal #665
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/runtime-auth-writeback-prep-20261017"
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?
Codex subscription refresh rotated both tokens in the retained-PVC probe. This prerequisite adds an offline, same-service auth enrollment CLI and an OpenBao CAS journal that refuses stale auth after interrupted provider use. It is based on merged #664 (
17f94ecd).akh-runtime-authdefaults to planning. It holds the existing profile lock, validates the source service/profile, verifies the reviewed store-import manifest against service/schema/kind/digest, and acquires that exact Postgres store exclusively withrequire_receipt. Apply requires the reviewed auth manifest; exact retries use CAS readback. It accepts only bounded private subscription auth, never a common seed or another service's file.The library publishes
usingbefore provider use, retainsusingacross checkpoints, and permitsreadyonly through an explicit quiescent final capture. Missing, revoked, conflicting, inaccessible and ambiguous records fail closed. The journal binds service/profile and migration fence. Real provider launch/refresh/shutdown/startup hooks are not yet connected; this is the coordinator-approved bounded prerequisite, not runtime durability or cutover acceptance.Validation at
8d210f37438f9e4748d4a5d9ed9304d46d4d4924:RUNTIME-AUTH.mdgives exact per-service sources/destinations, coordinator-owned dedicated reauthorization fallback, rollout ordering and remaining PR8/PR9 gates. Live evidence verifies all 19 claims/27 PVs protected and 14 pods Ready. All four Codex runtimes still use sharedakh_sessions; owner-specific store reconciliation must precede enrollment. The shared seed remains inactive. Production auth, bindings, policies, manifests and volumes are unchanged.Required later evidence: daemon/helper integration, actual same-service refresh/checkpoint/failure/shutdown acceptance, transcript reconciliation, and merged-main arm64+amd64 conformance. Main image build run 4309 is still pending in the recorded snapshot. Sessions/core reconciliation, per-Akh Sokar authorization, house schema compatibility, MausBot post-PR8 recapture and PR9 sharing remain explicit gates. No self-merge or activation.