a gateway that reaches its own IdP through public DNS cannot sign anyone in when its public record blips — pin id.<apex> to loopback on the box #1597
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The gateway control plane reaches its OWN IdP through public DNS. Split off #1596 (the harness half — keep-on-red now keeps the community name — is fixed there).
Symptom
On a community whose public DNS record blips (or points elsewhere), the front door's sign-in code exchange dials
https://id.<apex>/oauth2/tokenby PUBLIC name and diesremote error: tls: internal error, even though kanidm is on the same box.getent hosts id.<apex>on the box answers the zone wildcard, not itself. Surfaced live on run 14 of #1547 (GOTCHAS #249).Cause
The gateway asks the internet where its own IdP is, instead of resolving
id.<apex>to loopback / the box itself.Proposed fix
A hosts pin or loopback resolution for
id.<apex>(and any other same-box service the control plane dials by apex name) ON the gateway, so a public-DNS blip cannot stop a community signing its own members in. This is the PRODUCT residue GOTCHAS #249 leaves open after #1596 fixed the harness half.Found while working #1596 (keep-on-red keeps the box but released the name).
Ruled by agent under ADR 0174 — veto anytime.
Ruling: category reclassified
enhancement→bug, and routedready-for-agent(notready-for-human).Why this is a two-way door, not a one-way door: the fix pins
id.<apex>(and any other same-box service the control plane dials by apex name) to loopback / the box itself on the gateway. Someone could reflexively route anything touching DNS / TLS / the IdP to a human as a "security change" — but this is a security narrowing/hardening, not a widening: it removes the gateway's dependency on the public internet to reach its own IdP, opens no new public surface, and loosens no auth requirement. So it is not on the ADR 0174 one-way-door list (no personal credentials, no posture widening, no member-facing trust accept, no data destruction, no non-routine spend, no physical hands/eyes). It is revertible (remove the hosts/loopback pin) and provable by an existing probe: the door-legs debug tail on a kept-on-red world already reproduced the failure live (run 14 of #1547, GOTCHAS #249). Category →bugbecause this is a documented defect (GOTCHAS #249) that stops a core flow — a community cannot sign its own members in when its public record blips.One open implementation question is a two-way door I'm leaving to the implementing agent rather than a human: exactly which same-box services beyond
id.<apex>the control plane dials by public apex name (the brief scopes this as a grep-and-confirm task).Agent Brief
Category: bug
Summary: Pin
id.<apex>(and any other same-box service the control plane dials by apex name) to loopback on the gateway, so a public-DNS blip cannot stop a community signing its own members in.Current behavior:
The gateway control plane reaches its own IdP through public DNS. The front door's sign-in code exchange dials
https://id.<apex>/oauth2/tokenby public name, so when the community's public DNS record blips or points elsewhere,getent hosts id.<apex>on the box answers the zone wildcard's host instead of itself, and the exchange diesremote error: tls: internal error({"code":"signin_exchange"}) — even though kanidm is on the same box. Surfaced live on run 14 of #1547's kept-on-red world (GOTCHAS #249). The harness half — keeping the box also keeps its NAME pointed — is already fixed in #1596; this is the remaining product residue: the box asks the internet where its own IdP is.Desired behavior:
On the gateway,
id.<apex>resolves to loopback / the box itself, so the control plane's code exchange (and any other same-box service it dials by apex name) reaches its own IdP without depending on the public DNS record. A public-DNS blip must no longer stop sign-in on a world whose box is up. Communities where the IdP is not on the box (the IDIP bridge path, ADR 0212 — the gateway declares no kanidm generators) must be unaffected: only pin names whose service actually lives on that box.Key interfaces / where to build:
id.<apex>(the apex is community-specific and set at founding — this is templated/rendered per community, not a static image line; the front-door render already knows the apex, e.g. via the IdP-hostname helper used when wiring the OIDC seed).id.<apex>OAuth2 token dial; confirm whetherfiles.<apex>or others are dialed box-to-box by public name and belong in the pin). Pin only same-box services.Acceptance criteria:
id.<apex>resolves to loopback / the box, and the sign-in code exchange succeeds even when the public DNS record is absent or points elsewhere.id.<apex>there.Out of scope:
--host-resolver-rules/rolesWorld.hostResolverRules) — that is drive plumbing, fixable from outside, and not the box's dependency.Note: the fix lands in trees the gateway SNAPSHOT bakes (
nix/gateway-image/**,nix/guest/**) and/or the deploy render, so once it is onmainthe executor may swap it tosnapshot-pending/deploy-pendinguntil a snapshot/deploy carries it — that is the normal post-implementation rail, not a triage gate.swarm-claim host=bens-mac-04 run=26715
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1597 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
487f682af1is not reachable from origin/main (not landed)envelope
close-report for #1597 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope