Edge protection: the hard tier blocks by default (catalogue v2)
Seven days of watch records on the flagship and Tito Go (2026-10-26 to 11-02, about 7.2M requests) showed ~40k hard-tier matches and no legitimate one; the only real 2xx was a tenant site serving its own .git. The 33 hard rules (.env, .git, keys, dumps, traversal) move from watch to block, so the default mode answers them with the 404 block page and a reference code. Probe tier and burst rule still watch: probe matches got real 2xx answers and need learned exemptions first. An app's record-only switch still turns every block off for that app. Tests that assumed the hard tier only watches now name their mode; new witness TestGuardCatalogueBlocksHardWatchesProbe. Census census-ruling-edge-protect-hard-block approved by Astra on #280. Astra review R1 READY AFTER FIXES (fixed), R2 READY; a console release named exactly like a hard segment is blocked by design (ruling 7), escape is record-only on that app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from edge-protect-hard-block into main.
12 files changed,
+150
−71
docs/superpowers/notes/census-proposal-edge-protect-hard-block.md+19 −0internal/edge/burst_edge_test.go+22 −7internal/edge/edge.go+2 −2internal/edge/edgeerrors_test.go+1 −1internal/edge/guard.go+4 −3internal/edge/guard_test.go+38 −10internal/edge/path_test.go+3 −0internal/edge/static_guard_test.go+19 −13internal/edgeguard/catalogue.go+1 −1internal/edgeguard/catalogue.txt+34 −34internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-edge-protect-hard-block.tsv+6 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-edge-protect-hard-block.md b/docs/superpowers/notes/census-proposal-edge-protect-hard-block.md| new file mode 100644 |
| index 000000000..c614e1738 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-edge-protect-hard-block.md |
| @@ -0,0 +1,19 @@ |
| +# Census approval: edge-protect-hard-block |
| + |
| +Ruling `census-ruling-edge-protect-hard-block`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/edgeguard/catalogue.txt` `external` | body | unchanged (1) | the 33 hard-tier rows change mode watch -> block and the version line goes 1 -> 2; data only, still embedded, parsed once at init, never opened at runtime; no new read and no root decision | |
| + |
| +Envelopes re-pinned: `internal/edge`, `internal/edgeguard`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/edgeguard/catalogue.txt` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-edge-protection-2;identity=its two consumers: the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), which matches requests against it, and the console (cmd/console serve under console.service, user carlos-console), which names a reference code's rule through edgeguard.RuleByHash (apiedgeref.go);basis=new: the edge protection catalogue, the hard and probe tier rules, each with what it matches and its mode (watch, block or burst): embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches, what the edge does with a match, and which rule a code names; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external) |
| + |
| +Seal: `c61b055182bf84e822fab92199432bd2d462c268c03ead17c3cfa18f09bd82cd` → `3b6cd29b87d2728254936722ab45fdadcfbb8c1f5b74fdfa19d1921b9dfd1dbe`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-edge-protect-hard-block.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/edge/burst_edge_test.go b/internal/edge/burst_edge_test.go| index a934ce340..eed075b06 100644 |
| --- a/internal/edge/burst_edge_test.go |
| +++ b/internal/edge/burst_edge_test.go |
| @@ -406,11 +406,11 @@ func TestBurstOneVerdictPerRequest(t *testing.T) { |
| until := g.trip(t, burstHost) |
| g.meter.Drain() |
| matches := len(g.rec.match) |
| - g.get(burstHost, "/.env") |
| + g.get(burstHost, "/wp-login.php") |
| if len(g.rec.match) != matches+1 { |
| t.Fatalf("%d matches for one request", len(g.rec.match)-matches) |
| } |
| - wantBurstMatch(t, g.lastMatch(t, "/.env"), reqrec.KindWatch, reqrec.CooldownFromThisApp, until) |
| + wantBurstMatch(t, g.lastMatch(t, "/wp-login.php"), reqrec.KindWatch, reqrec.CooldownFromThisApp, until) |
| f := g.meter.Drain() |
| d, ok := f.Guard[usage.GuardKey(burstHost, "bdk", "shop")] |
| if len(f.Guard) != 1 || !ok || d.Checked != 1 || d.Watch != 1 || d.Block != 0 || !maps.Equal(d.Groups, map[string]int64{"burst/probe-burst": 1}) { |
| @@ -436,16 +436,22 @@ func TestBurstWatchNeverWeakensABlock(t *testing.T) { |
| } |
| }) |
| t.Run("static rewrite", func(t *testing.T) { |
| - // The default mode, where the burst rule watches; the .env rule as |
| - // it will be once promoted to block. |
| + // The default mode, where the burst rule watches and the .env rule |
| + // blocks. The .git rule watches here, so a hard-tier request path |
| + // whose own verdict does not block still reaches the static handler. |
| g := newBurstStaticRig(t, "", map[string]string{".env": "SECRET=1", "_redirects": "/* /.env 200\n"}) |
| until := g.trip(t, burstHost) |
| env, ok := edgeguard.RuleByID("hard.secrets.env") |
| if !ok { |
| t.Fatal("no hard.secrets.env") |
| } |
| - env.Mode = edgeguard.ModeBlock |
| - t.Cleanup(func() { env.Mode = edgeguard.ModeWatch }) |
| + git, ok := edgeguard.RuleByID("hard.secrets.git") |
| + if !ok { |
| + t.Fatal("no hard.secrets.git") |
| + } |
| + envMode, gitMode := env.Mode, git.Mode |
| + env.Mode, git.Mode = edgeguard.ModeBlock, edgeguard.ModeWatch |
| + t.Cleanup(func() { env.Mode, git.Mode = envMode, gitMode }) |
| matches := len(g.rec.match) |
| w := g.get(burstHost, "/wp-login.php") |
| if w.Code != 404 || w.Header().Get("X-Carlos-Ref") == "" || strings.Contains(w.Body.String(), "SECRET") { |
| @@ -791,7 +797,7 @@ func TestBurstStaleFillCountedOnceAtTheHome(t *testing.T) { |
| // promoteBurstRule sets the burst rule's catalogue mode to block for the |
| // test, as the later one-line promotion will: in the default mode the burst |
| -// rule then refuses while the hard and probe rules still only watch. |
| +// rule then refuses while the probe rules still only watch. |
| func promoteBurstRule(t *testing.T) { |
| t.Helper() |
| edgeguard.BurstRule.Mode = edgeguard.ModeBlock |
| @@ -822,6 +828,15 @@ func TestBurstNeverRefusesAnExistingStaticHardFile(t *testing.T) { |
| }) |
| t.Run("burst rule promoted", func(t *testing.T) { |
| promoteBurstRule(t) |
| + // With the .env rule watching (as an app's own allow rule will make |
| + // it), a burst refusal still never takes a file the site has. |
| + env, ok := edgeguard.RuleByID("hard.secrets.env") |
| + if !ok { |
| + t.Fatal("no hard.secrets.env") |
| + } |
| + envMode := env.Mode |
| + env.Mode = edgeguard.ModeWatch |
| + t.Cleanup(func() { env.Mode = envMode }) |
| g := newBurstStaticRig(t, "", withEnv) |
| g.trip(t, burstHost) |
| if w := g.get(burstHost, "/.env"); w.Code != 200 || w.Body.String() != "SECRET=1" { |
diff --git a/internal/edge/edge.go b/internal/edge/edge.go| index 5dbc88e01..e19487d51 100644 |
| --- a/internal/edge/edge.go |
| +++ b/internal/edge/edge.go |
| @@ -294,8 +294,8 @@ type Edge struct { |
| gzipOn bool |
| // guard is CARLOS_EDGE_PROTECT, read once in New: what the edge does |
| // with a request matching a hard or probe rule (guard.go). By default |
| - // each rule's own mode, and in catalogue version 1 that is only ever to |
| - // watch. |
| + // each rule's own mode: from catalogue version 2 the hard tier blocks |
| + // and the probe tier watches. |
| guard guardMode |
| // guardMint is mintRef, bound once in New: a method value taken per |
| // request would allocate for every guarded request, and most never |
diff --git a/internal/edge/edgeerrors_test.go b/internal/edge/edgeerrors_test.go| index c8ea9a4e4..995cd51a3 100644 |
| --- a/internal/edge/edgeerrors_test.go |
| +++ b/internal/edge/edgeerrors_test.go |
| @@ -229,7 +229,7 @@ func TestEdgeFilesUnavailableByCause(t *testing.T) { |
| if got := do("busy.example.com", "/sandbox"); got != 503 { |
| t.Fatalf("busy status = %d", got) |
| } |
| - if do("dead.example.com", "/.env") != 502 || do("dead.example.com", "/phpinfo.php") != 502 { |
| + if do("dead.example.com", "/login") != 502 || do("dead.example.com", "/phpinfo.php") != 502 { |
| t.Fatal("a refused dial must answer 502") |
| } |
| recs := sink.snap() |
diff --git a/internal/edge/guard.go b/internal/edge/guard.go| index b3089abad..0f5148fe5 100644 |
| --- a/internal/edge/guard.go |
| +++ b/internal/edge/guard.go |
| @@ -21,9 +21,10 @@ import ( |
| type guardMode uint8 |
| const ( |
| - // guardCatalogue, the default, does what each rule's own mode says. Every |
| - // rule in catalogue version 1 watches or counts toward a burst, so by |
| - // default nothing is blocked: a match is recorded with the app's answer. |
| + // guardCatalogue, the default, does what each rule's own mode says. From |
| + // catalogue version 2 the hard tier blocks; the probe tier watches and |
| + // the burst rule counts, so their matches are recorded with the app's |
| + // answer. |
| guardCatalogue guardMode = iota |
| // guardOff runs no check at all. |
| guardOff |
diff --git a/internal/edge/guard_test.go b/internal/edge/guard_test.go| index 85e41441c..54f7f5ae8 100644 |
| --- a/internal/edge/guard_test.go |
| +++ b/internal/edge/guard_test.go |
| @@ -90,11 +90,12 @@ func (g *guardRig) get(path string) *httptest.ResponseRecorder { |
| return w |
| } |
| -// In the default mode every rule of catalogue version 1 only watches: the |
| -// probe goes through, the visitor gets the app's own answer, and the one |
| -// record for it is a watch carrying that answer's status. |
| +// In watch mode every rule only watches: the probe goes through, the visitor |
| +// gets the app's own answer, and the one record for it is a watch carrying |
| +// that answer's status. |
| func TestGuardWatchForwards(t *testing.T) { |
| g := guardEdge(t, false, false, http.StatusNotFound, "the app's own 404") |
| + g.e.guard = guardWatch |
| w := g.get("/.env") |
| if w.Code != 404 || w.Body.String() != "the app's own 404" || g.upstream.Load() != 1 { |
| t.Fatalf("got %d %q, upstream %d", w.Code, w.Body.String(), g.upstream.Load()) |
| @@ -138,6 +139,30 @@ func TestGuardWatchRecordsUpstreamStatus(t *testing.T) { |
| } |
| } |
| +// In the default mode, from catalogue version 2, the hard tier blocks and the |
| +// probe tier still only watches: /.env never reaches the app, /wp-login.php |
| +// does and gets the app's own answer. |
| +func TestGuardCatalogueBlocksHardWatchesProbe(t *testing.T) { |
| + g := guardEdge(t, false, false, http.StatusNotFound, "the app's own 404") |
| + if g.e.guard != guardCatalogue { |
| + t.Fatalf("guard mode %v, want the catalogue's", g.e.guard) |
| + } |
| + w := g.get("/.env") |
| + if w.Code != 404 || w.Header().Get("X-Carlos-Ref") == "" || strings.Contains(w.Body.String(), "the app's own 404") || g.upstream.Load() != 0 { |
| + t.Fatalf("/.env: %d %q, upstream %d; want the block page", w.Code, w.Body.String(), g.upstream.Load()) |
| + } |
| + if m := g.rec.match[len(g.rec.match)-1]; m.Kind != reqrec.KindBlock || m.RuleID != "hard.secrets.env" { |
| + t.Fatalf("/.env: match %+v, want the hard block", m) |
| + } |
| + w = g.get("/wp-login.php") |
| + if w.Code != 404 || w.Body.String() != "the app's own 404" || w.Header().Get("X-Carlos-Ref") != "" || g.upstream.Load() != 1 { |
| + t.Fatalf("/wp-login.php: %d %q, upstream %d; want the app's answer", w.Code, w.Body.String(), g.upstream.Load()) |
| + } |
| + if m := g.rec.match[len(g.rec.match)-1]; m.Kind != reqrec.KindWatch || m.RuleID != "probe.wordpress.wp-login" { |
| + t.Fatalf("/wp-login.php: match %+v, want the probe watch", m) |
| + } |
| +} |
| + |
| // In block mode a hard-tier probe is answered here with the block page: a |
| // 404 whose body and header carry one sealed code naming the rule. Nothing |
| // behind the edge sees the request. |
| @@ -312,11 +337,14 @@ func (s *fieldSink) EdgeSummary(acct, app, host, level, msg string, f map[string |
| // request's spelling. Through the real recorder, so this is what is stored. |
| func TestGuardFragmentKeepsNoToken(t *testing.T) { |
| const token = "AbCd12_EfGh34_IjKl56_MnOp78" |
| - for _, tc := range []struct{ name, path, frag string }{ |
| - {"underscores", "/wp-admin/" + token, "/wp-admin"}, |
| - {"hyphens", "/WP-Admin/AbCd12-EfGh34-IjKl56-MnOp78", "/WP-Admin"}, |
| - {"slashes", "/wp-admin/AbCd12/EfGh34/IjKl56/MnOp78", "/wp-admin"}, |
| - {"under a segseq", "/Proc/Self/AbCd12_EfGh34_IjKl56_MnOp78", "Proc/Self"}, |
| + for _, tc := range []struct { |
| + name, path, frag string |
| + kind reqrec.Kind |
| + }{ |
| + {"underscores", "/wp-admin/" + token, "/wp-admin", reqrec.KindWatch}, |
| + {"hyphens", "/WP-Admin/AbCd12-EfGh34-IjKl56-MnOp78", "/WP-Admin", reqrec.KindWatch}, |
| + {"slashes", "/wp-admin/AbCd12/EfGh34/IjKl56/MnOp78", "/wp-admin", reqrec.KindWatch}, |
| + {"under a segseq", "/Proc/Self/AbCd12_EfGh34_IjKl56_MnOp78", "Proc/Self", reqrec.KindBlock}, |
| } { |
| g := guardEdge(t, false, false, http.StatusNotFound, "no") |
| sink := &fieldSink{} |
| @@ -326,8 +354,8 @@ func TestGuardFragmentKeepsNoToken(t *testing.T) { |
| t.Fatalf("%s: %d records, want 1", tc.name, len(sink.recs)) |
| } |
| f := sink.recs[0] |
| - if f["kind"] != string(reqrec.KindWatch) || f["frag"] != tc.frag { |
| - t.Fatalf("%s: kind %q frag %q, want watch and %q", tc.name, f["kind"], f["frag"], tc.frag) |
| + if f["kind"] != string(tc.kind) || f["frag"] != tc.frag { |
| + t.Fatalf("%s: kind %q frag %q, want %s and %q", tc.name, f["kind"], f["frag"], tc.kind, tc.frag) |
| } |
| for _, piece := range []string{"AbCd12", "EfGh34", "IjKl56", "MnOp78"} { |
| for _, spelt := range []string{piece, strings.ToLower(piece)} { |
diff --git a/internal/edge/path_test.go b/internal/edge/path_test.go| index 5a8cb7ff8..c86b40a3c 100644 |
| --- a/internal/edge/path_test.go |
| +++ b/internal/edge/path_test.go |
| @@ -205,6 +205,9 @@ func TestPathMatchTriesBothFormsOfTheFirstSegment(t *testing.T) { |
| upsertPath(t, reg, "ti.to", "flipped", "go.tito.io") |
| upsertPath(t, reg, "ti.to", "onbeta", "beta.tito.io") |
| + // The hard tier blocks a raw ".." by default; this test is about the |
| + // path matcher behind it, so protection is off. |
| + t.Setenv("CARLOS_EDGE_PROTECT", "off") |
| e, err := New(reg, nil) |
| if err != nil { |
| t.Fatal(err) |
diff --git a/internal/edge/static_guard_test.go b/internal/edge/static_guard_test.go| index faae416a1..02ca8fd7b 100644 |
| --- a/internal/edge/static_guard_test.go |
| +++ b/internal/edge/static_guard_test.go |
| @@ -163,11 +163,12 @@ func TestStaticExplicitRedirectIsExistence(t *testing.T) { |
| // A rewrite onto a file the hard tier names is not served as a rewrite: the |
| // request path looked harmless, the file it would send is a leak. Watching |
| -// records it and serves the file; blocking answers with the guard's 404. |
| +// records it and serves the file; blocking (the default, and block mode) |
| +// answers with the guard's 404. |
| func TestStaticRewriteToHardFile(t *testing.T) { |
| files := map[string]string{".env": "SECRET=1", "_redirects": "/download /.env 200\n"} |
| - g := staticGuardEdge(t, guardCatalogue, files) |
| + g := staticGuardEdge(t, guardWatch, files) |
| if w := g.get("/download"); w.Code != 200 || w.Body.String() != "SECRET=1" { |
| t.Fatalf("watch: %d %q, want the file served", w.Code, w.Body.String()) |
| } |
| @@ -176,14 +177,16 @@ func TestStaticRewriteToHardFile(t *testing.T) { |
| t.Fatalf("watch: match %+v", m) |
| } |
| - g = staticGuardEdge(t, guardBlock, files) |
| - w := g.get("/download") |
| - if w.Code != 404 || w.Header().Get("X-Carlos-Ref") == "" || w.Body.String() == "SECRET=1" { |
| - t.Fatalf("block: %d ref %q body %q", w.Code, w.Header().Get("X-Carlos-Ref"), w.Body.String()) |
| - } |
| - m = g.onlyMatch(t) |
| - if m.Kind != reqrec.KindBlock || m.Tier != reqrec.TierHard || m.RuleID != "hard.secrets.env" || m.Ref != w.Header().Get("X-Carlos-Ref") { |
| - t.Fatalf("block: match %+v", m) |
| + for _, mode := range []guardMode{guardCatalogue, guardBlock} { |
| + g = staticGuardEdge(t, mode, files) |
| + w := g.get("/download") |
| + if w.Code != 404 || w.Header().Get("X-Carlos-Ref") == "" || w.Body.String() == "SECRET=1" { |
| + t.Fatalf("mode %d: %d ref %q body %q", mode, w.Code, w.Header().Get("X-Carlos-Ref"), w.Body.String()) |
| + } |
| + m = g.onlyMatch(t) |
| + if m.Kind != reqrec.KindBlock || m.Tier != reqrec.TierHard || m.RuleID != "hard.secrets.env" || m.Ref != w.Header().Get("X-Carlos-Ref") { |
| + t.Fatalf("mode %d: match %+v", mode, m) |
| + } |
| } |
| } |
| @@ -240,11 +243,14 @@ func TestStaticRewriteKeepsProbeVerdict(t *testing.T) { |
| // before the static handler runs. The handler must not file it a second time. |
| func TestStaticHardAtEdgeOnce(t *testing.T) { |
| files := map[string]string{".env": "SECRET=1", "index.html": "home"} |
| - for _, mode := range []guardMode{guardCatalogue, guardBlock} { |
| + for _, mode := range []guardMode{guardWatch, guardCatalogue, guardBlock} { |
| g := staticGuardEdge(t, mode, files) |
| w := g.get("/.env") |
| - if mode == guardBlock && w.Code != 404 { |
| - t.Fatalf("block: status %d, want 404", w.Code) |
| + if mode != guardWatch && w.Code != 404 { |
| + t.Fatalf("mode %d: status %d, want 404", mode, w.Code) |
| + } |
| + if mode == guardWatch && (w.Code != 200 || w.Body.String() != "SECRET=1") { |
| + t.Fatalf("watch: %d %q, want the file served", w.Code, w.Body.String()) |
| } |
| m := g.onlyMatch(t) |
| if m.Tier != reqrec.TierHard || m.RuleID != "hard.secrets.env" { |
diff --git a/internal/edgeguard/catalogue.go b/internal/edgeguard/catalogue.go| index e6070930f..111686ca5 100644 |
| --- a/internal/edgeguard/catalogue.go |
| +++ b/internal/edgeguard/catalogue.go |
| @@ -104,7 +104,7 @@ var catalogueData []byte |
| // removed or changed, so a log line can say which catalogue produced it. It |
| // must equal the "# version N" line in catalogue.txt, and init panics if the |
| // two disagree, so a rule edit that forgets one of them fails the tests. |
| -const Version = 1 |
| +const Version = 2 |
| var ( |
| rules []Rule |
diff --git a/internal/edgeguard/catalogue.txt b/internal/edgeguard/catalogue.txt| index 0b7cc81f0..2684f91d1 100644 |
| --- a/internal/edgeguard/catalogue.txt |
| +++ b/internal/edgeguard/catalogue.txt |
| @@ -1,38 +1,38 @@ |
| -# version 1 |
| +# version 2 |
| # tier group name kind pattern mode |
| -hard traversal dotdot dotdot - watch |
| -hard traversal proc-self segseq proc/self watch |
| -hard traversal vite-fs segment @fs watch |
| -hard secrets env segment .env watch |
| -hard secrets env-variant segglob .env.* watch |
| -hard secrets git segment .git watch |
| -hard secrets git-credentials segment .git-credentials watch |
| -hard secrets svn segment .svn watch |
| -hard secrets hg segment .hg watch |
| -hard secrets aws segment .aws watch |
| -hard secrets ssh segment .ssh watch |
| -hard secrets docker segment .docker watch |
| -hard secrets kube segment .kube watch |
| -hard secrets npmrc segment .npmrc watch |
| -hard secrets pypirc segment .pypirc watch |
| -hard secrets netrc segment .netrc watch |
| -hard secrets htpasswd segment .htpasswd watch |
| -hard keys id-rsa segment id_rsa watch |
| -hard keys id-dsa segment id_dsa watch |
| -hard keys id-ecdsa segment id_ecdsa watch |
| -hard keys id-ed25519 segment id_ed25519 watch |
| -hard keys credentials-json segment credentials.json watch |
| -hard keys gcp-credentials segment gcp-credentials.json watch |
| -hard keys firebase-admin segglob firebase-adminsdk*.json watch |
| -hard dumps db-sql exact /db.sql watch |
| -hard dumps dump-sql exact /dump.sql watch |
| -hard dumps backup-sql exact /backup.sql watch |
| -hard dumps database-sql exact /database.sql watch |
| -hard source php-save ext .php.save watch |
| -hard source php-bak ext .php.bak watch |
| -hard source php-old ext .php.old watch |
| -hard source php-swp ext .php.swp watch |
| -hard source php-tilde ext .php~ watch |
| +hard traversal dotdot dotdot - block |
| +hard traversal proc-self segseq proc/self block |
| +hard traversal vite-fs segment @fs block |
| +hard secrets env segment .env block |
| +hard secrets env-variant segglob .env.* block |
| +hard secrets git segment .git block |
| +hard secrets git-credentials segment .git-credentials block |
| +hard secrets svn segment .svn block |
| +hard secrets hg segment .hg block |
| +hard secrets aws segment .aws block |
| +hard secrets ssh segment .ssh block |
| +hard secrets docker segment .docker block |
| +hard secrets kube segment .kube block |
| +hard secrets npmrc segment .npmrc block |
| +hard secrets pypirc segment .pypirc block |
| +hard secrets netrc segment .netrc block |
| +hard secrets htpasswd segment .htpasswd block |
| +hard keys id-rsa segment id_rsa block |
| +hard keys id-dsa segment id_dsa block |
| +hard keys id-ecdsa segment id_ecdsa block |
| +hard keys id-ed25519 segment id_ed25519 block |
| +hard keys credentials-json segment credentials.json block |
| +hard keys gcp-credentials segment gcp-credentials.json block |
| +hard keys firebase-admin segglob firebase-adminsdk*.json block |
| +hard dumps db-sql exact /db.sql block |
| +hard dumps dump-sql exact /dump.sql block |
| +hard dumps backup-sql exact /backup.sql block |
| +hard dumps database-sql exact /database.sql block |
| +hard source php-save ext .php.save block |
| +hard source php-bak ext .php.bak block |
| +hard source php-old ext .php.old block |
| +hard source php-swp ext .php.swp block |
| +hard source php-tilde ext .php~ block |
| probe wordpress wp-login exact /wp-login.php watch |
| probe wordpress xmlrpc exact /xmlrpc.php watch |
| probe wordpress wp-links-opml exact /wp-links-opml.php watch |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 137664ff0..ca0ea7b73 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -60,3 +60,4 @@ plan14-root-reads-region-ha-p1b3a.tsv 5d20b3777026e43906bfba301186bce0ae58daa9d8 |
| plan14-root-reads-stateless-replicas-1.tsv df8bf8056d80b9d78edc957fe7f2adbc75885e15f581e58167768346c4e05771 |
| plan14-root-reads-domain-registration-1.tsv 8e7126042fef8cc99899a29e9e06c22763a24b6677110144035ec57fcc2de23e |
| plan14-root-reads-edge-held-streams.tsv c61b055182bf84e822fab92199432bd2d462c268c03ead17c3cfa18f09bd82cd |
| +plan14-root-reads-edge-protect-hard-block.tsv 3b6cd29b87d2728254936722ab45fdadcfbb8c1f5b74fdfa19d1921b9dfd1dbe |
diff --git a/internal/provision/testdata/plan14-root-reads-edge-protect-hard-block.tsv b/internal/provision/testdata/plan14-root-reads-edge-protect-hard-block.tsv| new file mode 100644 |
| index 000000000..202f341ee |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-edge-protect-hard-block.tsv |
| @@ -0,0 +1,6 @@ |
| +# Census overlay edge-protect-hard-block, written by census-propose (#369). census-ruling-edge-protect-hard-block, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-edge-protect-hard-block.md. |
| +# 1 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy 4f785fc2483712d60f37e768491295802b8bdb3667c4428be0a6b2ef279afe57 internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=its two consumers: the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), which matches requests against it, and the console (cmd/console serve under console.service, user carlos-console), which names a reference code's rule through edgeguard.RuleByHash (apiedgeref.go);basis=new: the edge protection catalogue, the hard and probe tier rules, each with what it matches and its mode (watch, block or burst): embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches, what the edge does with a match, and which rule a code names; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external);rev3=census-ruling-edge-protect-hard-block;basis=the 33 hard-tier rows change mode watch -> block and the version line goes 1 -> 2; data only, still embedded, parsed once at init, never opened at runtime; no new read and no root decision file:external@0 f84824e9c7a16940afa1112bd88300fc96bce15fcbc879b1a2d6d6bda68626f6 |
| +internal/edgeguard/catalogue.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-protection-2;identity=its two consumers: the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), which matches requests against it, and the console (cmd/console serve under console.service, user carlos-console), which names a reference code's rule through edgeguard.RuleByHash (apiedgeref.go);basis=new: the edge protection catalogue, the hard and probe tier rules, each with what it matches and its mode (watch, block or burst): embedded with go:embed into the binary (edgeguard.catalogueData) and parsed once at init (parseCatalogue, then buildIndex; init panics on a malformed row or a version line that disagrees with edgeguard.Version); never opened from disk at runtime; data, not code; it only says which request paths and query values the edge matches, what the edge does with a match, and which rule a code names; no root decision; the class of the console's embedded templates (internal/console/templates/*.html external);rev3=census-ruling-edge-protect-hard-block;basis=the 33 hard-tier rows change mode watch -> block and the version line goes 1 -> 2; data only, still embedded, parsed once at init, never opened at runtime; no new read and no root decision file:external@0 f84824e9c7a16940afa1112bd88300fc96bce15fcbc879b1a2d6d6bda68626f6 |
| +@coverage internal/edge 38ebf1b8f7ecfeb34e13d655eebbd685cb9e9e546f229a29f2243a4650f6016f |
| +@coverage internal/edgeguard e037d551612af41afcb00505026c9a3e3459335eba2eb54d0cf27e13034ea9c9 |