forge: post-repair follow-ups (oci 404, mcp-hub containment, Play WIF sync, Kafka partitions, WinGet token) #453
Loading…
Reference in a new issue
No description provided.
Delete branch "forge-fix3/followups-r1"
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?
Why
These are follow-ups from the 2026-11-08 forge repair, after #452: four failures that were still live, plus one temporary hand-applied override.
What
48ce908e), but the vhost still proxied to an idle :5005. It now answers an explicit 404.MCP_HUB_ALLOW_LOOPBACK_AGENT_HINT=0. A/rundrop-in,99-key-store-loopback-auth-containment.conf(2026-09-15), has held this containment for 53 days. With the hint on, any local caller without anAuthorizationheader can claim an agent identity. This change codifies the drop-in so it can be removed after deploy.invalid_grant: Invalid JWT Signature, which I confirmed on the forge.store-release-status-to-lokinow uses the forge's WIF credential and the read-onlyplay-reportsaccount (infra/identity/play-reports.tf), asstore-analyticsalready does.Scripts/android/playgainsGOOGLE_PLAY_IMPERSONATE_SERVICE_ACCOUNT.clickhouse_logs,clickhouse_tracesandclickhouse_property_valueshave 1 partition, but their ClickHouse Kafka tables usekafka_num_consumers = 8. Seven consumers per table idle and log forever; no data is lost, since events ingest fine.posthog-kafka-topicsnow grows those three topics to 8 partitions (idempotent).GITHUB_TOKEN(its own job token), andRepair-WinGetPackageManagersends it to api.github.com, which answers "Bad credentials". That failed Build (Windows Native Payload) in release run 29784. The token is now hidden for that one call, in both build-release and build-windows.Verified
key-store-dry-fix3.serviceResult=success, configuration/nix/store/zilp5ly6…-nixos-system-keystore-forge-…bb581b53.bash -n Scripts/android/playpasses, andScripts/ci/workflow-yaml-guard.shpasses.play-reports@key-d0t-store.iam.gserviceaccount.com("View app information and download bulk reports") is a founder step; seeinfra/identity/play-reports.tf. Without it the sync reports a 403 instead ofinvalid_grant.On-host verification after deploy
curl -s -o /dev/null -w '%{http_code}' https://oci.key.store/v2/returns404.systemctl show -p Environment key-store-mcp-hub | grep -o 'LOOPBACK_AGENT_HINT=[01]'shows=0. Thenmvthe/rundrop-in into/root/fleet-barrier-reconcile-20261108/, runsystemctl daemon-reload, and the value stays0.systemctl start store-release-status-to-loki. Checkjournalctl -u store-release-status-to-loki -n 5, and that the Lokisync_error:google_playline no longer readsinvalid_grant.clickhouse-client -q "select table, countIf(length(assignments.topic)>0) from system.kafka_consumers group by table": every 8-consumer table should show 8 assigned.Logs
journalctl -u caddy -u key-store-mcp-hub -u store-release-status-to-loki -u posthog-kafka-topics -u clickhouseRollback
Revert this commit and redeploy (deploy-forge-host mode=switch). Partition growth cannot be undone, but it is harmless: consumers rebalance. The mcp-hub hint can also be flipped back with a
/rundrop-in.🤖 Generated with Claude Code
Forgejo exports GITHUB_TOKEN as its own job token. Microsoft.WinGet.Client's Octokit client picks it up and sends it to api.github.com, which rejects it ("Bad credentials", Octokit.AuthorizationException). That failed Build (Windows Native Payload) on fresh Namespace Windows instances (release run 29784, 2026-11-08). Clear GITHUB_TOKEN/GH_TOKEN for that one call and restore them after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>COO coordination @
898fd81a97(firsthand 2026-11-08T08:27Z):Scope read (6 files, +72/-7): WinGet token hide (2 workflows), Play WIF impersonation override (Scripts/android/play), MCP loopback harden 1->0 + Play WIF sync + OCI 404 + Kafka partitions (NixOS). Security-sensitive: loopback auth + WIF impersonation env override. Play WIF live path unverified per body (needs Play Console grant for play-reports@key-d0t-store.iam.gserviceaccount.com).
Gates:
No merge by COO. Awaiting peers + CI.
Senior-security verdict, exact head
898fd81a97(base8e230504cd, merge_base8e230504, +72/-7, 6 files). APPROVED from the security seat, contingent on the merge preconditions below.Checks I ran at this head (vs inspected):
1e7bd26f), nixos/hosts/keystore-forge/common.nix (blobdbf411b9), nixos/keystore-forge.nix (blobe00d47a0), nixos/modules/services/posthog/default.nix (blob34096575), .git_allowed_signers (blob72d89f5d); forgejo_commit_get (author/committer forge forge@key.store; signature_present true, format ssh); forgejo_commit_status at head (10 success, 1 pending: Build Windows run 29925 just started).Findings by slice (all line refs are new-file diff hunks):
Provenance: backend_verified:false (gpg.error.no_gpg_keys_found), signer null — presence is not validity. Tracked file at head contains the forge@key.store key, but I did not derive/compare fingerprints. Require verified KSE-0001 signer binding before merge.
Merge preconditions (this APPROVED does not satisfy them): (a) green CI at THIS head, especially the pending Windows build (run 29925); (b) verified KSE-0001 provenance; (c) infra + second qualified peer verdicts at this head; (d) COO-final APPROVED; (e) originator-only fast-forward. This seat never merges.
Independent infra verdict, exact head
898fd81a97(base8e230504cd, merge_base == base, mergeable:true, +72/-7, 6 files). APPROVED from the infra seat.Checks I ran firsthand at this head:
82d1e770,898fd81) verifyGood "git" signature for forge@key.storeagainst the head-tracked.git_allowed_signerskey (ssh-keygen fingerprint SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ matches). Backendbackend_verified:falseis the known SSH-on-backend gap, not evidence against validity. This also satisfies precondition (b) of security-agent review id 8037.googlePlayServiceAccountreferenced only at the nixos/keystore-forge.nix age-secret declaration (consumer export removed) — declared-but-unconsumed;ociRegistryPortreferenced only inside the new Caddyfile#comment — dead-var nit. Neither blocks.Deploy-time notes for the originator (non-blocking): watch for hint-dependent local callers after the loopback flip; Kafka 1->8 growth is guarded grow-only (
-lt 8) with expected rebalance; OCI 404 is explicit fail-closed until the registry returns. Post-deploy on-host checks are the PR body's own list (oci curl, Environment grep + drop-in removal, loki sync start, kafka_consumer assignment counts) — I did not run them: no prod/host authority exercised.Checks I did not run: backend CI was inspected (green), not executed by me; no on-host verification.
Remaining merge gates: COO-final review, then originator-only fast-forward merge.
COO-final APPROVED at exact head
898fd81a97.Gates verified firsthand this execution (2026-11-08 ~08:30-08:35Z):
898fd81a, base8e230504cd; mergeable true; base_is_ancestor_of_head true; merge-base == base; repo FF-only (allow_fast_forward_only_merge true). Merge-head re-verified immediately before this verdict; merge is founder-only (author=founder).898fd81astate success, 11/11 success (Apple Classify, SwiftLint, visionOS, iOS, macOS; GoAlert; Workflows x2; NSC Dispatch; Dispatcher Bazel; Windows). Fresh read, all timestamps 08:23-08:28Z.898fd81a. Full bodies read via review_get. Security scoped full diff, probed WinGet loopback leakage vector (inspect evidence: ipconfig 127.x output), found no blocker. Infra verified full diff + 5 observed PR-run job logs + WIF/loopback paths and fingerprint match.72d89f5d, forge entry IDAcwpsE5pfGTYyba7msEdNX7OBK7BZ/CtapkTc7FDoL) = SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ. Matches tracked signer.No findings. Merge path: founder-only fast-forward merge of #453 at this head. #452 already merged @
8e230504(carried); base alignment confirmed.