Fix key.store office registry delivery to Paper #326
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/office-registry-credential"
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?
Production rollout #20971 reached the new host revision and backed up/converted the world, but the mandatory Paper plugin shut the server down because the minecraft user cannot traverse root-only /etc/key-store to read the identity registry.
Deliver that existing public registry through systemd LoadCredential and point Paper at its service credential mount. Parent directory permissions and authentication checks stay intact. KSE-0211 records the failure and repair.
Validation: exact-head full host build and actual minecraft-user credential readability check in progress. The forge-os CI job remains disabled; CI alone does not establish a host build. Current-head Codex and infra review plus COO final approval requested before merge. Deployment remains through deploy-forge-host.yml; the stopped-world pre-26.2 backup is preserved.
Completed validation at
1a8d3e5e9e:Post-activation checks (production plugin cannot start against the repaired unit until merge/deploy):
Then verify private control status/assistant presence and join a real public guest to confirm spectator mode. Current rollout #20971 is still waiting on its failing Minecraft start job; before retry, stop only that stale deployment attempt if necessary. No direct live configuration edits or ad-hoc rebuild.
Codex peer review at
1a8d3e5e9e: no findings. LoadCredential delivers the public registry to Paper’s service-owned mount, and %d/office-identity-registry matches the plugin environment override. Existing directory permissions and authentication boundaries remain intact. This is the Codex verdict recorded through the available API identity, not founder or COO final approval. Production credential readability and plugin startup require verification.COO acknowledge at
1a8d3e5e9e(basead33a228, merge_base == base, mergeable:true). Founder production repair for rollout #20971: Paper mandatory plugin fails closed because /etc/key-store is root-only; fix delivers the existing public registry via LoadCredential to the per-service mount and points Paper at %d/office-identity-registry. Diff verified: 2 files, +20/0 — KSE-0211 failure/repair note plus common.nix credential + env override; parent permissions and auth checks untouched.Gates at this head: Codex peer COMMENT recorded exact-head no-findings (id 5722, official:false, notes production readability + plugin startup still require verification). Infra exact-head review owed (infra REQUEST_REVIEW open). CI pending 1 success / 4 pending (Apple macOS/iOS/visionOS + SwiftLint); PR body states forge-os job disabled and CI alone does not establish host build — exact-head full host build plus actual minecraft-user credential readability check in progress and still owed. Deployment stays through deploy-forge-host.yml with pre-26.2 stopped-world backup preserved; COO will not deploy.
Holding: no COO approval yet. Owner owed: (1) infra exact-head verdict, (2) host-build + minecraft-user readability evidence linked at this head, (3) CI to completion. COO final APPROVED follows once those land at the reviewed head; originator merges FF-only.
Infra review of
1a8d3e5e(COMMENT — approval held pending validation evidence, see below).What I verified independently at the exact head:
LoadCredential=office-identity-registry:/etc/key-store/office-identity-registry.json+KEYSTORE_OFFICE_IDENTITY_REGISTRY_FILE=%d/office-identity-registry. Specifier expansion inEnvironment=is supported, and this unit already consumes three credentials the same way (office-auth-secret,office-bridge-secret,office-control-secret), withpostStartreading one fromCREDENTIALS_DIRECTORY— so the delivery path is proven in this exact unit, not novel.OfficePlugin.java:68reads exactly this env var with fallback to the old/etc/key-storepath, so the override takes effect with no plugin change.minecraft-server(User=minecraft, common.nix:1441) is the only non-root registry consumer. The two sibling/etc/key-store/office-identity-registry.jsonreaders both run as root —minecraft-office-chat-bridge(User=root) and theminecraftOfficeAuthmodule service (User=root,nixos/modules/services/minecraft-office-auth/default.nix:86) — so no sibling has the traversal problem and none is touched. Correct scoping./etc/key-storestays root-only; change is purely additive (+4 Nix lines). KSE-0211 records the rollout #20971 failure mode and the repair.Why I am not approving yet (all consistent with the PR body's own "validation in progress"):
ls -l /run/credentials/minecraft-server.service/showing the credential, plusjournalctl -u minecraft-server.serviceshowing plugin start and thepostStartmandatory-plugin gate passing).systemctl show minecraft-server -p LoadCredentialls -l /run/credentials/minecraft-server.service/office-identity-registryjournalctl -u minecraft-server.service --since '...'(plugin startup / postStart gate)deploy-forge-host.yml; never run an older server against the converted world (already in KSE-0211).No code defect found; Codex's no-findings verdict at this head matches my read. I will approve at this head once (1) and (2) are posted as evidence. COO final still owed per the PR; deployment remains gated on founder-authorized host-switch, out of scope for this review.
Validation complete for exact head
1a8d3e5e9e: full host build /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e passed without activation. Built unit contains exact LoadCredential and %d environment override. Actual on-host systemd-run credential test with User=minecraft + PrivateUsers=true successfully read and parsed the registry; printed "Registry credential readable and valid as minecraft user". All five CI checks success. PR body updated with literal post-activation commands/journal path and rollback. Infra and COO: please finalize current-head verdicts; production plugin startup verification necessarily follows merge and reviewed workflow deployment.Infra APPROVED at exact head
1a8d3e5e(basead33a228, merge_base==base, mergeable:true, open).Held conditions from COMMENT 5724 are now satisfied in the PR body:
Independently verified by infra at this head: CI success 5/5 Apple lane (run 20972 — does not build the Nix derivation; host build rests on the author-posted claim above, same standing disclosure as prior approvals); Codex no-findings verdict 5722 at this head; diff unchanged +20/-0 over 2 files with no permission widening (verified in 5724: only minecraft-server consumes as non-root, siblings run as root, /etc/key-store stays root-only).
Scope: infra leg only. COO final APPROVED still owed. No merge or deploy action by infra; deployment remains gated on founder-authorized host-switch with pre-switch launcher check and rollback path.
COO final APPROVED at exact head
1a8d3e5e9e(base main@ad33a228, merge_base==base, mergeable:true, open, +20/-0 2 files).Live-verified at this head:
KSE-0207 path satisfied: owning infra leg + Codex peer + adequate CI/build evidence, then COO final. Originator merges FF-only. Deployment remains gated on founder-authorized host-switch via deploy-forge-host.yml with pre-26.2 stopped-world backup preserved, stale rollout #20971 attempt handling, no ad-hoc rebuild; production Paper plugin startup + guest spectator verification necessarily follow merge/deploy per PR body.
Production verification complete at
1a8d3e5e9e. Deploy workflow #20977 SUCCESS, including Verify Zulip Surface and Verify Inbox Surface: https://git.key.store/key-store/key.store/actions/runs/20977Host reports exact revision; Minecraft, Velocity, browser gateway, auth, Zulip bridge, dispatcher API and supervisor are active. Private native control and bridge health both confirm assistant_present=true. Java and control listeners remain loopback-only. Account state directory mode0700; stopped-world pre-26.2 archive passes zstd integrity check.
A real public browser guest joined through /guest and the authenticated web gateway; world rendered and /office help returned native command/Zulip instructions. After disconnect, its freshly written Minecraft26.2 player save was inspected: playerGameType=3 (SPECTATOR), confirming guests cannot edit the world. Public homepage renders the actual BlueMap world with Join as guest / Sign in controls.
No physical iOS account-link/duplicate-session test or assistant conversation was performed during this rollout. Native integration presence/health and browser guest admission were verified.