Repository navigation
Description
Parent
What to build
Before #49 closes, every one of its user stories needs something on main that proves it. A check of the stories against main at d5b15ba found seven with no test, or with a test that proves less than the story says: 8, 11, 17, 21, 37, 38 and 42. In each case, breaking the Gateway on purpose left the runtime test green.
Each gets a case in the runtime test (crates/countersign-gateway/tests/runtime.py), at the real Gateway binary, as #49's Testing Decisions name it (seam 1). The Gateway itself does not change. The case for a silent egress proxy ends at the Gateway's fixed 120-second deadline for a CONNECT, so it runs alone, behind an option, in a CI step of its own.
Acceptance criteria
- A wildcard rule with no
private_networksreaches a host under it through the egress proxy, and the proxy records that host's name (story 8) - With
egress_proxyset, a rule withprivate_networksand no route that comes after a proxied rule stops startup, and the error names that rule (story 11) - When the egress proxy's name moves to another address between two connections, the next
CONNECTgoes to the new address, and when it moves back, the one after that succeeds (story 17) - An egress proxy that reads the
CONNECTand never answers gives the Workload 502 withproxy_unavailableand the request ID, and the site sees no connection (story 21) - That case runs in a CI step of its own on every pull request (story 21)
- Through an allowed tunnel to a site whose certificate does not chain to the rule's
roots, the request fails and the grant authority is asked for no signature (story 37) - On a Gateway with an egress proxy, a
CONNECTto a name the proxy allows but the Gateway has no rule for, and one to a name with a rule but no grant, are each refused with 403, and neither the egress proxy nor the site sees a connection (story 38) - With
egress_proxyset and the proxy environment variables naming another address, every proxied request still goes throughegress_proxy(story 42) - Each new case was red once against a Gateway broken on purpose, and the runtime test runs all of them wherever it runs today, under both worker sandboxes
Decided in: #49 (spec), its user stories; the owner's decision to verify them before the spec closes
Live step at merge: none
Activity
docs(docs): The text of the spec Reach protected sites through an ope…