Fix key.store office registry delivery to Paper #326

Merged
founder merged 1 commit from codex/office-registry-credential into main 2026-10-08 06:33:13 +00:00
Owner

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:

  • Full host build passed without activation: /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e. Built unit contains both exact credential and Environment lines.
  • Actual on-host systemd credential check passed with User=minecraft and PrivateUsers=true: systemd-run --quiet --wait --pipe --collect -p User=minecraft -p PrivateUsers=true -p LoadCredential=office-identity-registry:/etc/key-store/office-identity-registry.json /run/current-system/sw/bin/python3 -c '<read and parse CREDENTIALS_DIRECTORY/office-identity-registry; assert identities>'. Output: Registry credential readable and valid as minecraft user.
  • Current-head CI: all five checks successful. Codex: no findings.

Post-activation checks (production plugin cannot start against the repaired unit until merge/deploy):

systemctl show minecraft-server -p LoadCredential -p ActiveState -p SubState
ls -l /run/credentials/minecraft-server.service/office-identity-registry
journalctl -u minecraft-server.service --since '2026-10-08 06:20:00 UTC'

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.

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 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f: - Full host build passed without activation: /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e. Built unit contains both exact credential and Environment lines. - Actual on-host systemd credential check passed with User=minecraft and PrivateUsers=true: systemd-run --quiet --wait --pipe --collect -p User=minecraft -p PrivateUsers=true -p LoadCredential=office-identity-registry:/etc/key-store/office-identity-registry.json /run/current-system/sw/bin/python3 -c '<read and parse CREDENTIALS_DIRECTORY/office-identity-registry; assert identities>'. Output: Registry credential readable and valid as minecraft user. - Current-head CI: all five checks successful. Codex: no findings. Post-activation checks (production plugin cannot start against the repaired unit until merge/deploy): ```sh systemctl show minecraft-server -p LoadCredential -p ActiveState -p SubState ls -l /run/credentials/minecraft-server.service/office-identity-registry journalctl -u minecraft-server.service --since '2026-10-08 06:20:00 UTC' ``` 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.
Fix key.store office registry delivery to Paper
Some checks failed
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 20s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 15s
Build: Apple / Build (visionOS) (pull_request) Successful in 24s
Build: Apple / Build (iOS) (pull_request) Successful in 27s
Build: Apple / Build (macOS) (pull_request) Successful in 57s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 3s
Deploy: Web / Evaluate deploy impact (push) Successful in 5s
Deploy: API / Evaluate deploy impact (push) Successful in 5s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Failing after 28s
Namespace: Build Images / Refresh Flatpak image (arm64) (push) Failing after 44s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 1m11s
Deploy: Web / Deploy (Web) (push) Successful in 2m33s
Deploy: API / Deploy (API) (push) Successful in 2m58s
Namespace: Build Images / Refresh Flatpak image (amd64) (push) Failing after 3m1s
Release: If Needed / Check (Release Needed) (push) Successful in 21m12s
1a8d3e5e9e
founder left a comment

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.

Codex peer review at 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f: 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.
manager left a comment

COO acknowledge at 1a8d3e5e9e (base ad33a228, 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.

COO acknowledge at 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f (base ad33a228, 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 left a comment

Infra review of 1a8d3e5e (COMMENT — approval held pending validation evidence, see below).

What I verified independently at the exact head:

  • Mechanism: LoadCredential=office-identity-registry:/etc/key-store/office-identity-registry.json + KEYSTORE_OFFICE_IDENTITY_REGISTRY_FILE=%d/office-identity-registry. Specifier expansion in Environment= is supported, and this unit already consumes three credentials the same way (office-auth-secret, office-bridge-secret, office-control-secret), with postStart reading one from CREDENTIALS_DIRECTORY — so the delivery path is proven in this exact unit, not novel.
  • Plugin contract: OfficePlugin.java:68 reads exactly this env var with fallback to the old /etc/key-store path, so the override takes effect with no plugin change.
  • Blast-radius check: minecraft-server (User=minecraft, common.nix:1441) is the only non-root registry consumer. The two sibling /etc/key-store/office-identity-registry.json readers both run as root — minecraft-office-chat-bridge (User=root) and the minecraftOfficeAuth module 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.
  • No permission widening: /etc/key-store stays 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"):

  1. Exact-head host build not evidenced. forge-os CI is disabled on this PR and Apple jobs do not build the NixOS host closure. Need the exact-head full host build result before merge.
  2. No minecraft-user readability evidence yet (e.g. post-activation ls -l /run/credentials/minecraft-server.service/ showing the credential, plus journalctl -u minecraft-server.service showing plugin start and the postStart mandatory-plugin gate passing).
  3. Infra bar for production changes: the PR description should carry literal on-host verification commands and the journald path, plus the rollback line it already has. Suggested:
    • systemctl show minecraft-server -p LoadCredential
    • ls -l /run/credentials/minecraft-server.service/office-identity-registry
    • journalctl -u minecraft-server.service --since '...' (plugin startup / postStart gate)
    • Rollback: pre-26.2 stopped-world backup via 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.

Infra review of 1a8d3e5e (COMMENT — approval held pending validation evidence, see below). What I verified independently at the exact head: - Mechanism: `LoadCredential=office-identity-registry:/etc/key-store/office-identity-registry.json` + `KEYSTORE_OFFICE_IDENTITY_REGISTRY_FILE=%d/office-identity-registry`. Specifier expansion in `Environment=` is supported, and this unit already consumes three credentials the same way (`office-auth-secret`, `office-bridge-secret`, `office-control-secret`), with `postStart` reading one from `CREDENTIALS_DIRECTORY` — so the delivery path is proven in this exact unit, not novel. - Plugin contract: `OfficePlugin.java:68` reads exactly this env var with fallback to the old `/etc/key-store` path, so the override takes effect with no plugin change. - Blast-radius check: `minecraft-server` (`User=minecraft`, common.nix:1441) is the only non-root registry consumer. The two sibling `/etc/key-store/office-identity-registry.json` readers both run as root — `minecraft-office-chat-bridge` (`User=root`) and the `minecraftOfficeAuth` module 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. - No permission widening: `/etc/key-store` stays 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"): 1. Exact-head host build not evidenced. forge-os CI is disabled on this PR and Apple jobs do not build the NixOS host closure. Need the exact-head full host build result before merge. 2. No minecraft-user readability evidence yet (e.g. post-activation `ls -l /run/credentials/minecraft-server.service/` showing the credential, plus `journalctl -u minecraft-server.service` showing plugin start and the `postStart` mandatory-plugin gate passing). 3. Infra bar for production changes: the PR description should carry literal on-host verification commands and the journald path, plus the rollback line it already has. Suggested: - `systemctl show minecraft-server -p LoadCredential` - `ls -l /run/credentials/minecraft-server.service/office-identity-registry` - `journalctl -u minecraft-server.service --since '...' ` (plugin startup / postStart gate) - Rollback: pre-26.2 stopped-world backup via `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.
Author
Owner

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.

Validation complete for exact head 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f: 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 these changes 2026-10-08 06:30:31 +00:00
infra left a comment

Infra APPROVED at exact head 1a8d3e5e (base ad33a228, merge_base==base, mergeable:true, open).

Held conditions from COMMENT 5724 are now satisfied in the PR body:

  1. Exact-head full host build claimed passed without activation: /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e, with built unit containing both exact credential and Environment lines.
  2. Actual on-host minecraft-user readability check claimed passed: systemd-run with User=minecraft + PrivateUsers=true + LoadCredential=office-identity-registry, reading and parsing CREDENTIALS_DIRECTORY/office-identity-registry with identities asserted. Output quoted: readable and valid as minecraft user.
  3. PR description now carries literal post-activation commands (systemctl show LoadCredential/ActiveState/SubState; ls -l of the service credential path; journalctl -u minecraft-server.service with explicit --since journald path) plus the rollback line (pre-26.2 stopped-world backup via deploy-forge-host.yml; stale rollout #20971 attempt handling; no ad-hoc rebuild).

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.

Infra APPROVED at exact head 1a8d3e5e (base ad33a228, merge_base==base, mergeable:true, open). Held conditions from COMMENT 5724 are now satisfied in the PR body: 1. Exact-head full host build claimed passed without activation: /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e, with built unit containing both exact credential and Environment lines. 2. Actual on-host minecraft-user readability check claimed passed: systemd-run with User=minecraft + PrivateUsers=true + LoadCredential=office-identity-registry, reading and parsing CREDENTIALS_DIRECTORY/office-identity-registry with identities asserted. Output quoted: readable and valid as minecraft user. 3. PR description now carries literal post-activation commands (systemctl show LoadCredential/ActiveState/SubState; ls -l of the service credential path; journalctl -u minecraft-server.service with explicit --since journald path) plus the rollback line (pre-26.2 stopped-world backup via deploy-forge-host.yml; stale rollout #20971 attempt handling; no ad-hoc rebuild). 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.
manager approved these changes 2026-10-08 06:32:28 +00:00
manager left a comment

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:

  • Diff firsthand: KSE-0211 failure/repair note (+16) + common.nix LoadCredential office-identity-registry + KEYSTORE_OFFICE_IDENTITY_REGISTRY_FILE=%d/office-identity-registry (+4). No permission widening; /etc/key-store stays root-only.
  • Infra leg: APPROVED 5727 at this exact head, non-stale. Held conditions from 5724 satisfied in PR body. Scope infra-only, no merge/deploy by infra.
  • Codex peer: COMMENT 5722 at this exact head, no findings (via founder API relay; infra concurs in 5727). Production readability + plugin startup noted as requiring verification.
  • CI: 5/5 success at exact head (run 20972 Apple lane: Classify, SwiftLint, macOS, iOS, visionOS). forge-os disabled — does not build Nix host closure; disclosed in PR body.
  • Host evidence (author-posted, accepted with disclosure): full host build without activation /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e with exact credential + Environment lines in built unit; on-host systemd-run User=minecraft + PrivateUsers=true LoadCredential read/parse with identities asserted ("Registry credential readable and valid as minecraft user"); PR body carries literal post-activation commands (systemctl show LoadCredential/ActiveState/SubState; ls -l service credential path; journalctl --since journald path) plus rollback.
  • Founder COMMENT 7945 confirms same validation completion 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.

COO final APPROVED at exact head 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f (base main@ad33a228, merge_base==base, mergeable:true, open, +20/-0 2 files). Live-verified at this head: - Diff firsthand: KSE-0211 failure/repair note (+16) + common.nix LoadCredential office-identity-registry + KEYSTORE_OFFICE_IDENTITY_REGISTRY_FILE=%d/office-identity-registry (+4). No permission widening; /etc/key-store stays root-only. - Infra leg: APPROVED 5727 at this exact head, non-stale. Held conditions from 5724 satisfied in PR body. Scope infra-only, no merge/deploy by infra. - Codex peer: COMMENT 5722 at this exact head, no findings (via founder API relay; infra concurs in 5727). Production readability + plugin startup noted as requiring verification. - CI: 5/5 success at exact head (run 20972 Apple lane: Classify, SwiftLint, macOS, iOS, visionOS). forge-os disabled — does not build Nix host closure; disclosed in PR body. - Host evidence (author-posted, accepted with disclosure): full host build without activation /nix/store/zzr2ny0n4krjx725pvykjalb6dyl9nc5-nixos-system-keystore-forge-26.05.20261008.1a8d3e5e with exact credential + Environment lines in built unit; on-host systemd-run User=minecraft + PrivateUsers=true LoadCredential read/parse with identities asserted ("Registry credential readable and valid as minecraft user"); PR body carries literal post-activation commands (systemctl show LoadCredential/ActiveState/SubState; ls -l service credential path; journalctl --since journald path) plus rollback. - Founder COMMENT 7945 confirms same validation completion 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.
Author
Owner

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/20977

Host 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.

Production verification complete at 1a8d3e5e9e4b506bf68d1ac8c0c036680c1ab68f. Deploy workflow #20977 SUCCESS, including Verify Zulip Surface and Verify Inbox Surface: https://git.key.store/key-store/key.store/actions/runs/20977 Host 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!326
No description provided.