census: re-pin five record-write sites after the CSRF swap
handleAppGate, handleAppRateLimit, handleBrowserRestart, handleInstanceRetry and updatesFormGate changed only their CSRF check (csrfFormOK) and, in restart/retry, the confirm card's csrf field (csrfToken). Their record writes are unchanged; class and kinds kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+11
−0
internal/provision/ffr_census_test.go+11 −0
CI passed — run details
diff --git a/internal/provision/ffr_census_test.go b/internal/provision/ffr_census_test.go| index 3fed324f2..b133f42a1 100644 |
| --- a/internal/provision/ffr_census_test.go |
| +++ b/internal/provision/ffr_census_test.go |
| @@ -14,11 +14,22 @@ package provision |
| // condition, unchanged. They write exactly what their caller writes and |
| // nothing else, so they are record-transport, like prefixStore.Put and |
| // snapStore.PutFrom. |
| +// |
| +// sec-console-csrf-derive re-pins five existing console units whose only |
| +// change is the CSRF check (subtle.ConstantTimeCompare on r.FormValue("csrf") |
| +// becomes csrfFormOK) and, in handleBrowserRestart and handleInstanceRetry, |
| +// the confirm card's csrf field (raw becomes csrfToken(raw)). Which records |
| +// they write, and how, is unchanged; class and kinds are as before. |
| func ffrWriteCensusInventory() []censusEntry { |
| entries := append([]censusEntry(nil), omrRunWriteCensusInventory()...) |
| for _, r := range []censusEntry{ |
| {"internal/host/startuptiming.go", "opCountingStore.Put", "record-transport", "def:Put,sel:Put", "3c40a2e5877b6d0bc189d8d5bf1229d7eafd08dd70655773f1ea9ff75c62ebc5"}, |
| {"internal/host/startuptiming.go", "dirCountingStore.PutFrom", "record-transport", "def:PutFrom,sel:PutFrom", "90b82a86936f37c9dd53d3afd6c5d9ebbaab9df6e8d2b883a69dcf52a125b2fc"}, |
| + {"internal/console/appsettings.go", "Server.handleAppGate", "record-writer", "key:UpdateRecord", "1e53ebef92fd70db108d2714e09e9e9f9742fc96c63aa86c663bf41684f7cb69"}, |
| + {"internal/console/appsettings.go", "Server.handleAppRateLimit", "record-writer", "key:UpdateRecord", "9e34ff9f2347c591ce0b4668b385b2edd4c2d8dd2a3a535a870becdc33842516"}, |
| + {"internal/console/browserrestart.go", "Server.handleBrowserRestart", "key-site", "lit:instances", "d1f4000a3212a5124bafb0c1275228b1648bf6cf4cefe8ba27fcace6ad03534e"}, |
| + {"internal/console/browserretry.go", "Server.handleInstanceRetry", "key-site", "lit:instances", "871e5a4672eedc5bd8b80b42ed34e424b3031adde25f1b779125e8b5eca28658"}, |
| + {"internal/console/browserupdates.go", "Server.updatesFormGate", "key-site", "lit:instances", "6d15e442848429a6fb8ab398673af68b9fb67b8a9e6edd6765562c62e57154d6"}, |
| } { |
| replaced := false |
| for i, e := range entries { |