updates (#1562-6): wire the gateway — render the feed URL + pinned public key into all four gateway renders, fact-gated #1568

Closed
opened 2026-09-17 15:23:50 +00:00 by matou-build-agent · 2 comments

Parent: #1562 — carrying contract: ADR 0248 (decision 2)

Missing link 2: no gateway render exports IDSS_RELEASE_FEED_URL / IDSS_RELEASE_PUBLIC_KEY (gatewayEnvExports, internal/clan/vmguest.go), so productionReleaseSource (control-plane/cmd/control-plane/main.go) always rests on a real fleet.

Build. Render the feed URL + pinned public key into all four gateway renders (renderControlPlaneSurface, renderControlPlaneSurfaceIDIP, renderGatewayGuest, renderGatewayGuestIDIP), fact-gated exactly like the sibling exports so an unset channel renders nothing and never references an undeclared clan-var. The pinned key is a build-time constant of the founding release, not a secret (ADR 0248).

Acceptance: given no feed facts, every gateway render is byte-identical to today's.


Filed by agent under ADR 0174 (#1562 decomposition) — child of the fleet auto-update lane. Contract: ADR 0248. Veto anytime.

## Parent: #1562 — carrying contract: ADR 0248 (decision 2) **Missing link 2:** no gateway render exports `IDSS_RELEASE_FEED_URL` / `IDSS_RELEASE_PUBLIC_KEY` (`gatewayEnvExports`, `internal/clan/vmguest.go`), so `productionReleaseSource` (`control-plane/cmd/control-plane/main.go`) always rests on a real fleet. **Build.** Render the feed URL + pinned public key into all four gateway renders (`renderControlPlaneSurface`, `renderControlPlaneSurfaceIDIP`, `renderGatewayGuest`, `renderGatewayGuestIDIP`), **fact-gated exactly like the sibling exports** so an unset channel renders nothing and never references an undeclared clan-var. The pinned key is a build-time constant of the founding release, not a secret (ADR 0248). **Acceptance:** given no feed facts, every gateway render is **byte-identical** to today's. --- *Filed by agent under ADR 0174 (#1562 decomposition) — child of the fleet auto-update lane. Contract: ADR 0248. Veto anytime.*
Author
Member

swarm-claim host=bens-mac-04 run=26027
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26027 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1568 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1568,
  "status": "success",
  "commits": [
    "64d3cf81"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/clan.go",
    "internal/clan/releasechannel_test.go",
    "internal/clan/vmguest.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Render the feed URL + pinned public key into all four gateway renders (renderControlPlaneSurface, renderControlPlaneSurfaceIDIP, renderGatewayGuest, renderGatewayGuestIDIP)": "gatewayEnvExports (internal/clan/vmguest.go) — the ONE export block all four renders funnel through via the shared gatewayControlPlaneUnit — now emits IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY; TestGatewayEnvExports_CarriesReleaseChannel asserts all four named renders carry the pair (releasechannel_test.go)",
    "fact-gated exactly like the sibling exports so an unset channel renders nothing and never references an undeclared clan-var": "the export is gated `if g.ReleaseFeedURL != \"\" && g.ReleasePublicKey != \"\"` and rendered as inert literals (no clan-var, no $(cat)), matching apexExportLine/AccessKind; two new GatewayFacts fields default empty",
    "The pinned key is a build-time constant of the founding release, not a secret (ADR 0248)": "ReleasePublicKey rendered as a bare literal like IDSS_COMMUNITY_APEX, not a sealed clan-var .path — documented on the field and export comments citing ADR 0248",
    "Acceptance: given no feed facts, every gateway render is byte-identical to today's": "TestGatewayEnvExports_NoReleaseChannelUnset asserts no render references IDSS_RELEASE_* when the facts are unset; TestGatewayEnvExports_HalfChannelRendersNothing covers the half-set case (releasechannel_test.go); both pass"
  },
  "summary": "All four gateway renders now export the signed Matou channel (IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY) fact-gated as a pair, so productionReleaseSource wires instead of resting while an unset channel stays byte-identical.",
  "reason": "",
  "blockers": []
}
**close-report** for #1568 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1568, "status": "success", "commits": [ "64d3cf81" ], "changed_files": [ "STATUS.md", "internal/clan/clan.go", "internal/clan/releasechannel_test.go", "internal/clan/vmguest.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/", "exit_code": 0 } ], "criteria": { "Render the feed URL + pinned public key into all four gateway renders (renderControlPlaneSurface, renderControlPlaneSurfaceIDIP, renderGatewayGuest, renderGatewayGuestIDIP)": "gatewayEnvExports (internal/clan/vmguest.go) — the ONE export block all four renders funnel through via the shared gatewayControlPlaneUnit — now emits IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY; TestGatewayEnvExports_CarriesReleaseChannel asserts all four named renders carry the pair (releasechannel_test.go)", "fact-gated exactly like the sibling exports so an unset channel renders nothing and never references an undeclared clan-var": "the export is gated `if g.ReleaseFeedURL != \"\" && g.ReleasePublicKey != \"\"` and rendered as inert literals (no clan-var, no $(cat)), matching apexExportLine/AccessKind; two new GatewayFacts fields default empty", "The pinned key is a build-time constant of the founding release, not a secret (ADR 0248)": "ReleasePublicKey rendered as a bare literal like IDSS_COMMUNITY_APEX, not a sealed clan-var .path — documented on the field and export comments citing ADR 0248", "Acceptance: given no feed facts, every gateway render is byte-identical to today's": "TestGatewayEnvExports_NoReleaseChannelUnset asserts no render references IDSS_RELEASE_* when the facts are unset; TestGatewayEnvExports_HalfChannelRendersNothing covers the half-set case (releasechannel_test.go); both pass" }, "summary": "All four gateway renders now export the signed Matou channel (IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY) fact-gated as a pair, so productionReleaseSource wires instead of resting while an unset channel stays byte-identical.", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1568
No description provided.