Census overlay sec-mail-user-boundary: re-pinned for the claim guard
serve's digest moves (the sweep call passes cfg.HostClaim); the cmd/console envelope is re-pinned, the seal moves to 26225dd1. Still last, after wake-latency-1. Proposal note updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+8
−7
docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md+4 −3internal/provision/plan14_root_reads_test.go+1 −1internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv+3 −3
CI passed — run details
CI log
=== gate ===
.amadan/test-gate.sh
=== launchctx (0 s)
ok amadan.net/carlos/platform.git/launchctx 0.015s
? amadan.net/carlos/platform.git/launchctx/controlname [no test files]
? amadan.net/carlos/platform.git/launchctx/wireid [no test files]
=== vet (2 s)
=== gofmt (1 s)
gofmt -l .: clean
=== rest (144 s)
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 3.651s
ok github.com/carlosframework/platform/cmd/moveprobe 11.905s
ok github.com/carlosframework/platform/cmd/zddprobe 0.775s
ok github.com/carlosframework/platform/internal/activator 56.756s
ok github.com/carlosframework/platform/internal/agentsock 0.034s
ok github.com/carlosframework/platform/internal/alerting 0.003s
ok github.com/carlosframework/platform/internal/analytics 0.035s
ok github.com/carlosframework/platform/internal/appconfig 2.894s
ok github.com/carlosframework/platform/internal/apperr 0.099s
ok github.com/carlosframework/platform/internal/applog 0.184s
ok github.com/carlosframework/platform/internal/awsinv 0.010s
ok github.com/carlosframework/platform/internal/boxchoice 0.012s
ok github.com/carlosframework/platform/internal/boxid 0.929s
? github.com/carlosframework/platform/internal/boxid/boxidtest [no test files]
? github.com/carlosframework/platform/internal/boxid/internal/signtest [no test files]
ok github.com/carlosframework/platform/internal/boxvolumes 0.009s
ok github.com/carlosframework/platform/internal/caps 0.015s
ok github.com/carlosframework/platform/internal/certwarm 0.005s
ok github.com/carlosframework/platform/internal/cgroup 0.811s
ok github.com/carlosframework/platform/internal/changelog 0.450s
ok github.com/carlosframework/platform/internal/claimactivation 1.292s
ok github.com/carlosframework/platform/internal/clamd 0.066s
? github.com/carlosframework/platform/internal/cliflag [no test files]
? github.com/carlosframework/platform/internal/controlname [no test files]
? github.com/carlosframework/platform/internal/controlsock [no test files]
ok github.com/carlosframework/platform/internal/dbdoor 8.561s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.018s
ok github.com/carlosframework/platform/internal/dbquery 0.010s
ok github.com/carlosframework/platform/internal/dbreads 2.147s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.004s
ok github.com/carlosframework/platform/internal/dnsrec 0.005s
ok github.com/carlosframework/platform/internal/docsite 0.016s
ok github.com/carlosframework/platform/internal/domains 2.842s
ok github.com/carlosframework/platform/internal/doorkey 0.008s
ok github.com/carlosframework/platform/internal/economics 0.006s
ok github.com/carlosframework/platform/internal/edge 45.570s
? github.com/carlosframework/platform/internal/edgeproof [no test files]
ok github.com/carlosframework/platform/internal/edgesfile 0.008s
ok github.com/carlosframework/platform/internal/fleetapi 0.169s
ok github.com/carlosframework/platform/internal/gate 1.794s
ok github.com/carlosframework/platform/internal/genselect 0.044s
ok github.com/carlosframework/platform/internal/geo 0.019s
ok github.com/carlosframework/platform/internal/geoip 0.041s
ok github.com/carlosframework/platform/internal/historyreadback 0.201s
ok github.com/carlosframework/platform/internal/host 140.715s
ok github.com/carlosframework/platform/internal/hostactors 6.332s
ok github.com/carlosframework/platform/internal/hostactors/awsmembership 0.010s
ok github.com/carlosframework/platform/internal/hostbox 3.331s
ok github.com/carlosframework/platform/internal/hostclaim 0.916s
ok github.com/carlosframework/platform/internal/hostenv 0.005s
ok github.com/carlosframework/platform/internal/hostevidence 0.006s
ok github.com/carlosframework/platform/internal/hostexec 5.561s
ok github.com/carlosframework/platform/internal/hostfence 0.051s
ok github.com/carlosframework/platform/internal/hostfiles 10.225s
ok github.com/carlosframework/platform/internal/hostfloor 0.017s
ok github.com/carlosframework/platform/internal/hostguard 1.077s
ok github.com/carlosframework/platform/internal/hostops 2.296s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.005s
ok github.com/carlosframework/platform/internal/hostquarantine 0.005s
ok github.com/carlosframework/platform/internal/hostrelocate 0.841s
ok github.com/carlosframework/platform/internal/hostresolve 0.192s
ok github.com/carlosframework/platform/internal/hostwrite 0.004s
ok github.com/carlosframework/platform/internal/infraview 0.005s
ok github.com/carlosframework/platform/internal/instancectl 5.245s
ok github.com/carlosframework/platform/internal/instanceexec 2.774s
ok github.com/carlosframework/platform/internal/instancefs 0.008s
ok github.com/carlosframework/platform/internal/instancekey 0.005s
ok github.com/carlosframework/platform/internal/instanceupdates 0.007s
ok github.com/carlosframework/platform/internal/layout 2.058s
ok github.com/carlosframework/platform/internal/lbhealth 0.007s
ok github.com/carlosframework/platform/internal/lease 10.102s
ok github.com/carlosframework/platform/internal/lease/leasetest 0.620s
ok github.com/carlosframework/platform/internal/ledger 0.011s
ok github.com/carlosframework/platform/internal/mail 0.226s
ok github.com/carlosframework/platform/internal/maintenance 0.075s
ok github.com/carlosframework/platform/internal/maintenanceexec 5.571s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.086s
ok github.com/carlosframework/platform/internal/metrics 0.010s
ok github.com/carlosframework/platform/internal/moves 21.184s
ok github.com/carlosframework/platform/internal/moves/archive 1.106s
ok github.com/carlosframework/platform/internal/objstore 0.325s
ok github.com/carlosframework/platform/internal/ops 0.206s
ok github.com/carlosframework/platform/internal/park 0.375s
ok github.com/carlosframework/platform/internal/plans 0.006s
ok github.com/carlosframework/platform/internal/privatefile 0.008s
ok github.com/carlosframework/platform/internal/provision 13.765s
ok github.com/carlosframework/platform/internal/publicrelease 0.011s
? github.com/carlosframework/platform/internal/regionname [no test files]
ok github.com/carlosframework/platform/internal/registry 5.485s
ok github.com/carlosframework/platform/internal/relay 7.242s
ok github.com/carlosframework/platform/internal/release 25.244s
ok github.com/carlosframework/platform/internal/rollout 3.674s
ok github.com/carlosframework/platform/internal/rolloutwords 0.007s
ok github.com/carlosframework/platform/internal/rootaws 0.007s
ok github.com/carlosframework/platform/internal/rootparticipation 0.067s
ok github.com/carlosframework/platform/internal/rootstate 0.027s
ok github.com/carlosframework/platform/internal/runs 0.569s
ok github.com/carlosframework/platform/internal/s3compat 0.005s
ok github.com/carlosframework/platform/internal/safefile 0.006s
ok github.com/carlosframework/platform/internal/schedule 2.622s
ok github.com/carlosframework/platform/internal/seeds 0.017s
ok github.com/carlosframework/platform/internal/sim/engines 2.327s
ok github.com/carlosframework/platform/internal/sim/hostlife 9.369s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 3.905s
ok github.com/carlosframework/platform/internal/status 0.091s
ok github.com/carlosframework/platform/internal/steering 0.006s
ok github.com/carlosframework/platform/internal/stopevidence 0.296s
ok github.com/carlosframework/platform/internal/svcrole 0.006s
ok github.com/carlosframework/platform/internal/telemetry 0.004s
ok github.com/carlosframework/platform/internal/termfence 0.006s
ok github.com/carlosframework/platform/internal/tunnelclient 0.006s
ok github.com/carlosframework/platform/internal/unixdial 0.005s
ok github.com/carlosframework/platform/internal/updatewords 0.004s
ok github.com/carlosframework/platform/internal/usage 0.007s
ok github.com/carlosframework/platform/internal/version 0.002s
ok github.com/carlosframework/platform/internal/vet 1.672s
=== internal_console@0 (81 s)
ok github.com/carlosframework/platform/internal/console 78.784s
=== internal_console@1 (43 s)
ok github.com/carlosframework/platform/internal/console 41.294s
=== internal_console@2 (41 s)
ok github.com/carlosframework/platform/internal/console 38.503s
=== internal_console@3 (40 s)
ok github.com/carlosframework/platform/internal/console 37.890s
=== internal_console@4 (42 s)
ok github.com/carlosframework/platform/internal/console 39.776s
=== internal_console@5 (41 s)
ok github.com/carlosframework/platform/internal/console 38.752s
=== internal_console@6 (36 s)
ok github.com/carlosframework/platform/internal/console 34.462s
=== internal_console@7 (46 s)
ok github.com/carlosframework/platform/internal/console 43.715s
=== root@0 (109 s)
ok github.com/carlosframework/platform 106.697s
=== root@1 (84 s)
ok github.com/carlosframework/platform 81.909s
=== root@2 (91 s)
ok github.com/carlosframework/platform 88.687s
=== cross ===
--- shard 0 of 5 ---
cross-compiling darwin/arm64
--- shard 1 of 5 ---
cross-compiling darwin/amd64
--- shard 2 of 5 ---
cross-compiling linux/arm64
linux/arm64 carlos binary: 50528418 bytes (ceiling 52000000)
--- shard 3 of 5 ---
cross-compiling windows/amd64
--- shard 4 of 5 ---
cross-compiling windows/arm64
=== minio-contract ===
minio contract: arm64, minio RELEASE.2025-09-07T16-13-09Z, mc RELEASE.2025-08-13T08-35-41Z
minio: cached, digest verified
mc: cached, digest verified
minio healthy on 127.0.0.1:20999
Added `local` successfully.
Bucket created successfully `local/contract-bucket`.
Bucket created successfully `local/denied-bucket`.
Created policy `contract-only` successfully.
Added user `scopeduser` successfully.
Attached Policies: [contract-only]
To User: scopeduser
buckets and scoped user ready
=== RUN TestDeliveredContractMinio
=== RUN TestDeliveredContractMinio/put
=== RUN TestDeliveredContractMinio/get_round-trips_the_body
=== RUN TestDeliveredContractMinio/list_shows_the_key
=== RUN TestDeliveredContractMinio/head_and_list_agree_on_the_version
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict
=== RUN TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed
=== RUN TestDeliveredContractMinio/delete_removes_it
=== RUN TestDeliveredContractMinio/cross-bucket_denial
--- PASS: TestDeliveredContractMinio (0.02s)
--- PASS: TestDeliveredContractMinio/put (0.00s)
--- PASS: TestDeliveredContractMinio/get_round-trips_the_body (0.00s)
--- PASS: TestDeliveredContractMinio/list_shows_the_key (0.00s)
--- PASS: TestDeliveredContractMinio/head_and_list_agree_on_the_version (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/not_by_PutObjectTagging (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_its_own_object/and_not_by_x-amz-tagging_on_upload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route (0.01s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CreateMultipartUpload (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/not_by_CopyObject_with_a_REPLACE_tagging_directive (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/but_multipart_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_copy_itself_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/a_POST-policy_forged_tag_with_a_matching_version_is_still_not_a_verdict (0.00s)
--- PASS: TestDeliveredContractMinio/the_app_cannot_tag_by_any_other_route/and_an_ordinary_tagged-with-something-else_upload_is_allowed (0.00s)
--- PASS: TestDeliveredContractMinio/delete_removes_it (0.00s)
--- PASS: TestDeliveredContractMinio/cross-bucket_denial (0.00s)
PASS
ok github.com/carlosframework/platform/internal/objstore 0.022s
=== RUN TestT4StorageProbeMinio
2026/10/24 18:01:22 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18E1891C99C6FE88, HostID: 7c420053e0fbcd7f41653fdd92ffa2802c903d05303b1aa15adc2e8bb65d183f, api error SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.
--- PASS: TestT4StorageProbeMinio (0.00s)
PASS
ok github.com/carlosframework/platform/internal/host 0.020s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.02s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.01s)
PASS
ok github.com/carlosframework/platform/internal/release 0.028s
Bucket created successfully `local/dbf-deploy`.
Bucket created successfully `local/dbf-data-ie`.
Bucket created successfully `local/dbf-data-uk`.
local/dbf-deploy versioning is enabled
Created policy `dbf-console` successfully.
Created policy `dbf-ukbox` successfully.
Added user `dbfconsole` successfully.
Added user `dbfukbox` successfully.
Attached Policies: [dbf-console]
To User: dbfconsole
Attached Policies: [dbf-ukbox]
To User: dbfukbox
=== RUN TestDBForwardMinio
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/24 18:01:24 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/10/24 18:01:24 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/10/24 18:01:24 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/24 18:01:24 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/24 18:01:24 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/24 18:01:24 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/10/24 18:01:24 console: could not notify member@example.com of a CLI token issue: keymail: lookup member@example.com: keymail: GET /api/federation/lookup?addr=member%40example.com&from=console%40127.0.0.1%3A46037: could not determine target mailbox
agent.go:135: dbreads: dbr_c2efx6gd5e5pwfidcj3l5oenau: planned 3 files (1544 bytes) and restored to 3 in 9ms
agent.go:135: dbreads: dbr_c2efx6gd5e5pwfidcj3l5oenau: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/24 18:01:25 console: db read dbr_c2efx6gd5e5pwfidcj3l5oenau: relayed 1 chunks (102 bytes) in 1.004s, ended done
agent.go:135: dbreads: dbr_3kce2txsocenaasgnnppoikusm: planned 1 files (720 bytes) and restored to 1 in 7ms
agent.go:135: dbreads: dbr_3kce2txsocenaasgnnppoikusm: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/24 18:01:26 console: db read dbr_3kce2txsocenaasgnnppoikusm: relayed 1 chunks (102 bytes) in 1.004s, ended done
agent.go:135: dbreads: dbr_njo2hk2dw2mem7gg6y7mf4ykuq: planned 3 files (1544 bytes) and held through 3 in 8ms
agent.go:135: dbreads: dbr_njo2hk2dw2mem7gg6y7mf4ykuq: output 1544 bytes in 1 confirmed chunks in 1ms
2026/10/24 18:01:27 console: db read dbr_njo2hk2dw2mem7gg6y7mf4ykuq: relayed 1 chunks (1641 bytes) in 1.004s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:135: dbreads: dbr_rubtbkxral3cpkfn2simypqvoi: planned 3 files (1544 bytes) and restored to 3 in 9ms
2026/10/24 18:01:27 console: db read dbr_rubtbkxral3cpkfn2simypqvoi: relayed 0 chunks (0 bytes) in 15ms, ended client gone
agent.go:135: dbreads: dbr_rubtbkxral3cpkfn2simypqvoi: output 5 bytes in 1 confirmed chunks in 103ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:135: dbreads: dbr_fa3m5b4aecpg7j42eabk6vrdre: planned 3 files (1544 bytes) and restored to 3 in 9ms
2026/10/24 18:01:48 console: db read dbr_fa3m5b4aecpg7j42eabk6vrdre: relayed 0 chunks (0 bytes) in 19.9s, ended no-result
agent.go:135: dbreads: dbr_fa3m5b4aecpg7j42eabk6vrdre: output 5 bytes in 1 confirmed chunks in 19.876s
--- PASS: TestDBForwardMinio (23.34s)
--- PASS: TestDBForwardMinio/by_disconnect (0.22s)
--- PASS: TestDBForwardMinio/by_timeout (20.01s)
PASS
ok github.com/carlosframework/platform/internal/console 23.353s
minio contract: PASS
diff --git a/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md b/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md| index d175a9aee..4a097c702 100644 |
| --- a/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md |
| +++ b/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md |
| @@ -32,7 +32,8 @@ policy and mint it a key. Object storage closed the same gap with |
| `sweepMailBoundaries` once at console start: `iam:ListUsers` under |
| `/carlos-mail/`, `GetUser` for each, `PutUserPermissionsBoundary` where it |
| is missing or different, and a last log line saying all N users are |
| - bounded or which are not. IAM only, no file or bucket read. |
| + bounded or which are not. IAM only, no file or bucket read. Refused under |
| + `CARLOS_HOST_CLAIM` before any backend call (Astra round 2). |
| None of this runs as root. The changed code runs in the console |
| (`cmd/console serve` under `console.service`, user `carlos-console`). The |
| @@ -52,7 +53,7 @@ this branch's identity and change appended. |
| | unit | change | sites | |
| |---|---|---| |
| -| `cmd/console/main.go` `serve` | reads `CARLOS_MAIL_USER_BOUNDARY` (an environment variable, not a file), `log.Fatal` when the mail region is set without a valid one, hands `mail.NewAWSProvisioner` the boundary through a closure passed to `mailBackends`, and with `CARLOS_MAIL_BOUNDARY_SWEEP=1` starts `sweepMailBoundaries` (IAM calls only) | the same three `/data` literals, each moved 282 bytes (4077, 5178, 5415 to 4359, 5460, 5697) | |
| +| `cmd/console/main.go` `serve` | reads `CARLOS_MAIL_USER_BOUNDARY` (an environment variable, not a file), `log.Fatal` when the mail region is set without a valid one, hands `mail.NewAWSProvisioner` the boundary through a closure passed to `mailBackends`, and with `CARLOS_MAIL_BOUNDARY_SWEEP=1` starts `sweepMailBoundaries` (IAM calls only; refused under `CARLOS_HOST_CLAIM` with no backend call, as `sweepLegacyMail`) | the same three `/data` literals, each moved 282 bytes (4077, 5178, 5415 to 4359, 5460, 5697) | |
| `mailUserBoundary` and `sweepMailBoundaries` (new, `cmd/console/main.go`), |
| `internal/mail/boundarysweep.go` and every changed `internal/mail/aws.go` |
| @@ -68,7 +69,7 @@ no rows. |
| Seal: `09e20ea4bbc534710334e632e903878656dabfb5817d4d96c6e7c56508172148` |
| (wake-latency-1, checked first) to |
| -`bea407c54a7f319be9ea73eda14ef56ff3cf7fa279620b5f1606e0d42e623751`. |
| +`26225dd10a15c83b5057fbb18153b5426dfc0be45b97745475ac8317f6fbed20`. |
| ## Claim authority census (TestClaimAuthoritySourceCensus) |
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go| index faf09f969..d7d560577 100644 |
| --- a/internal/provision/plan14_root_reads_test.go |
| +++ b/internal/provision/plan14_root_reads_test.go |
| @@ -1471,7 +1471,7 @@ func TestPlan14RootReadCensus(t *testing.T) { |
| if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv"), &inv, true); err != nil { |
| t.Fatal(err) |
| } |
| - seal = "bea407c54a7f319be9ea73eda14ef56ff3cf7fa279620b5f1606e0d42e623751" |
| + seal = "26225dd10a15c83b5057fbb18153b5426dfc0be45b97745475ac8317f6fbed20" |
| errs := append(compareRootReads(got, inv), checkRootReadLegacy(inv, seal)...) |
| errs = append(errs, checkRootReadDeclarations(got, inv)...) |
| if len(errs) > 0 { |
diff --git a/internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv b/internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv| index e8b5ba82f..83cb7fa13 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv |
| @@ -1,6 +1,6 @@ |
| # Census overlay sec-mail-user-boundary (email sending users are created under a permissions boundary, CARLOS_MAIL_USER_BOUNDARY, and existing users are backfilled with iam:PutUserPermissionsBoundary), loaded last, after wake-latency-1. PROPOSED-sec-mail-user-boundary; the ruling is asked of the census owner on #280 (docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md). |
| # cmd/console serve is re-frozen at main's disposition with this change appended: it reads one more environment variable and fails boot without it; its three /data literals move but are the same three. No read, file or record write is added. The cmd/console and internal/mail envelopes are re-pinned (main.go's mailUserBoundary and doc comment; aws.go's boundary check, CreateUser field and backfill; their tests). The serve declaration is re-frozen, so the seal moves; wake-latency-1's is checked first. |
| -@legacy f995f7912bf2f6e947a271493146b435f8abc85980618504a9a642d44a3e2aea cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-sec-mail-user-boundary;identity=the console (cmd/console serve under console.service, user carlos-console);basis=reads CARLOS_MAIL_USER_BOUNDARY (an environment variable, not a file) through mailUserBoundary, stops with log.Fatal when CARLOS_MAIL_REGION is set and it is empty or not an IAM policy ARN, and passes it to mail.NewAWSProvisioner through a closure handed to mailBackends, and with CARLOS_MAIL_BOUNDARY_SWEEP=1 starts sweepMailBoundaries once (IAM only: ListUsers under /carlos-mail/, GetUser, PutUserPermissionsBoundary; no file or bucket read); the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 a86341a31866eab9f33df35621694998299e46dbaf00eb35501fe5829f55b413 |
| -cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-sec-mail-user-boundary;identity=the console (cmd/console serve under console.service, user carlos-console);basis=reads CARLOS_MAIL_USER_BOUNDARY (an environment variable, not a file) through mailUserBoundary, stops with log.Fatal when CARLOS_MAIL_REGION is set and it is empty or not an IAM policy ARN, and passes it to mail.NewAWSProvisioner through a closure handed to mailBackends, and with CARLOS_MAIL_BOUNDARY_SWEEP=1 starts sweepMailBoundaries once (IAM only: ListUsers under /carlos-mail/, GetUser, PutUserPermissionsBoundary; no file or bucket read); the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 a86341a31866eab9f33df35621694998299e46dbaf00eb35501fe5829f55b413 |
| -@coverage cmd/console 56c8bdc5e5b49ea986910f70aa75b85135d9661f93ccb55cdfc3a1a29840f32c |
| +@legacy ab036520a9fba9e6a819d94ac7cca95fedc07be0e5e7e1686955621b4f2e597c cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-sec-mail-user-boundary;identity=the console (cmd/console serve under console.service, user carlos-console);basis=reads CARLOS_MAIL_USER_BOUNDARY (an environment variable, not a file) through mailUserBoundary, stops with log.Fatal when CARLOS_MAIL_REGION is set and it is empty or not an IAM policy ARN, and passes it to mail.NewAWSProvisioner through a closure handed to mailBackends, and with CARLOS_MAIL_BOUNDARY_SWEEP=1 starts sweepMailBoundaries once, which refuses under CARLOS_HOST_CLAIM with no backend call (IAM only otherwise: ListUsers under /carlos-mail/, GetUser, PutUserPermissionsBoundary; no file or bucket read); the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 d0d626616de3c53e94b5853bb6154e0c3efb733fbce99165bfdbd1527bdb9df7 |
| +cmd/console/main.go serve legacy accepted-legacy accepted-legacy;rev3=PROPOSED-scan-demand-revival;basis=Console service wires the optional callback signer and starts the claim-guarded queue worker. The same three data path literals move; it does not add a privileged reader.;rev3=PROPOSED-email-signin;identity=the console (cmd/console serve under console.service, user carlos-console);basis=passes CARLOS_CONSOLE_NAME to NewServer as Config.ConsoleName, the name the console's emails use; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-s3-change-index;identity=the console (cmd/console serve under console.service, user carlos-console);basis=arms the record view when CARLOS_CHANGE_INDEX=read (armChangeIndex) for the run and seed sweeps and starts its backstop loop; the same three /data literals at the same offsets; no read added;rev3=census-ruling-db-region-forward-2;identity=the console (cmd/console serve under console.service, user carlos-console);basis=parses CARLOS_DB_FORWARD (dbForward) into Config.DBForward and builds its http.Server with console.NewHTTPServer, the same two timeouts; the same three /data literals at the same offsets; no read added;rev3=PROPOSED-sec-mail-user-boundary;identity=the console (cmd/console serve under console.service, user carlos-console);basis=reads CARLOS_MAIL_USER_BOUNDARY (an environment variable, not a file) through mailUserBoundary, stops with log.Fatal when CARLOS_MAIL_REGION is set and it is empty or not an IAM policy ARN, and passes it to mail.NewAWSProvisioner through a closure handed to mailBackends, and with CARLOS_MAIL_BOUNDARY_SWEEP=1 starts sweepMailBoundaries once, which refuses under CARLOS_HOST_CLAIM with no backend call (IAM only otherwise: ListUsers under /carlos-mail/, GetUser, PutUserPermissionsBoundary; no file or bucket read); the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 d0d626616de3c53e94b5853bb6154e0c3efb733fbce99165bfdbd1527bdb9df7 |
| +@coverage cmd/console 655e1cf47dea7740e4d3598075627b6bf015a7434f14389bc8ba8d27cc1ae9f1 |
| @coverage internal/mail 82a7f2590ced5c1ad6a72b0e62305b4cc157eeade4e8a3159366a41bc3eaca88 |