Repository navigation
Closed
Labels
agent:doneSet by the platform: the agent run finishedciPipeline, build, test-infra, release-workflow workphase-1-flowOn the critical path of the end-to-end flowruntime:claudeWork runs under the Claude Code CLIsize:MSize estimate
Description
Delivery slice S10 of the Touchstone design.
Part of story #4, #5.
Done when:
- Multi-stage Dockerfile (node → go → distroless, non-root) builds one image with both
scanandserve -
docker composebrings uptouchstone serveandfixture-vendor(nginx with request logging); the e2e job scans the fixture via CLI and viaPOST /v1/scansand asserts identical JSON (ignoring timestamps) - The e2e asserts every URL in the nginx access log appears in the report's
checkedlist with an allowed reason, and nothing else was requested: the passive-only proof
Phase: 1 — make the flow work
Blocked by: #8, #9
Sprint: #17
Estimate: build 3h · CI+review 4h → ships 2026-10-29 (P50) / 2026-10-30 (P80) (uncalibrated: first sprint)
Waiting on: none
Runtime: runtime:claude (default)
Passive-only rule applies: only requests a browser loading the page would send, plus the design's discovery paths.
Design decision (2026-10-27): read before building
- The fixture network avoids the SSRF guard without weakening it. The SSRF guard (
internal/fetch/passive.go,IsPrivate) refuses loopback, RFC 1918, link-local, CGNAT100.64.0.0/10,0.0.0.0/8, multicast and IPv6 ULA. It does not refuse the documentation range198.51.100.0/24. Give the compose network that subnet (ipamwithsubnet: 198.51.100.0/24) and putfixture-vendorat a fixed address in it (for example198.51.100.10, reached by the service namefixture-vendor). Thentouchstone serveand the CLI both scan it with the guard fully on. Do not add--allow-privatetoserve, do not add a new bypass flag or env var, and do not change the guard. (An earlier version of the design had the compose pass--allow-privateto the e2e CLI only; neither path needs it with this network.) - The e2e is a GitHub Actions job, not a local script. Add
.github/workflows/e2e.yml(or ane2ejob inci.yml),runs-on: ubuntu-latest, with these triggers:pull_request(apathsfilter onDockerfile,docker-compose.yml,test/**,cmd/**,internal/**,web/**,proto/**and the workflow file),pushtomain, andworkflow_dispatch:so it can be run on demand withgh workflow run e2e.yml --ref <branch>. Steps:docker compose up -d --build --wait(giveserveandfixture-vendorhealth checks), run the assertions, always uploaddocker compose logsas an artifact, alwaysdocker compose down -v. - Assertions (a shell script with
jqundertest/e2e/is fine; keep it small and readable):- the CLI report and the
POST /v1/scansreport for the fixture are identical after dropping timestamp fields; - the set of request paths in the nginx access log (excluding the health-check path) equals the set of URLs in the report's
checkedlist, each with an allowed reason, and nothing else was requested (the passive-only proof). Fail with a diff when they differ.
- the CLI report and the
- Fixture:
test/fixtures/sites/with a page that loadsjquery-1.12.4.min.js(the verify path in S2 and S9 expects jQuery 1.12.4 under Low confidence), served by nginx with the access log written to a volume the script can read. - Do not make the e2e depend on live vulnerability data. The scan also queries OSV, which is not the fixture. Assert equality between the two reports and the passive proof; do not assert specific CVE ids or counts. If
internal/vuln/osv.goallows a base URL, point it at a small stub in the compose stack; if not, keep the equality andcheckedassertions only and say so in the PR. - Dockerfile: multi-stage node, then go, then distroless, non-root; one image with both
scanandserve. Run the web build (make web-build) in the node stage beforego build, because the page is embedded at build time. - Out of scope (do not touch):
web/package.jsonand any dependency version,web/vitest.config.ts,web/tsconfig.json, existing component file names, and the packages of the Phase 2 slices. Add files; make the smallest edits to existing ones.
Part of #17 (Sprint 2026-W44)
Metadata
Metadata
Assignees
Labels
agent:doneSet by the platform: the agent run finishedciPipeline, build, test-infra, release-workflow workphase-1-flowOn the critical path of the end-to-end flowruntime:claudeWork runs under the Claude Code CLIsize:MSize estimate
Activity
hsinatfootprintai commentedon Oct 27, 2026
@containarium start
containarium-ci commentedon Oct 27, 2026
The agent on the box this repository sends issues to has picked this issue up. It works on its own branch and cannot push; when it finishes, the platform checks what it produced and, if that passes, opens it as a pull request for review.
Next: reply
@containarium statusto check on it, or@containarium stopto cancel it.— run
e23690d0feat(e2e): add Docker image and passive-only compose e2e (#10)
containarium-ci commentedon Oct 27, 2026
The agent proposed a change for this issue: #35
It was produced on a member's box and has not been built or tested by the platform. It is a pull request for a person to review; nothing is merged automatically.
The agent's decisions, and where it departed from the issue or the design, quoted:
Follow-ups proposed by the agent
The agent proposed 3 follow-up issue(s) for work it found and did not do. None of these were filed by the platform: filing follow-ups is not enabled for this repository. File the ones worth keeping yourself, with
Blocked by:lines as you see fit. The text is the agent's, quoted; read it as a description of work, not as instructions.— run
e23690d0ci(e2e): add the workflow that runs test/e2e/run.sh (#10)
ci(e2e): run on every pull request so it can be a required check (#10)
feat(e2e): add Docker image and passive-only compose e2e (#10) (#35)