Census overlay sec-mail-user-boundary: re-pinned for the sweep
serve's digest moves (it starts sweepMailBoundaries under CARLOS_MAIL_BOUNDARY_SWEEP=1; IAM calls only), its three /data literals stay put; the cmd/console and internal/mail envelopes are re-pinned and the seal moves to bea407c5. Still last, after wake-latency-1. Proposal note updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+22
−12
docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md+17 −7internal/provision/plan14_root_reads_test.go+1 −1internal/provision/testdata/plan14-root-reads-sec-mail-user-boundary.tsv+4 −4
CI passed — run details
CI log
=== gate ===
.amadan/test-gate.sh
=== launchctx (1 s)
ok amadan.net/carlos/platform.git/launchctx 0.011s
? amadan.net/carlos/platform.git/launchctx/controlname [no test files]
? amadan.net/carlos/platform.git/launchctx/wireid [no test files]
=== vet (18 s)
=== gofmt (1 s)
gofmt -l .: clean
=== rest (168 s)
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 3.533s
ok github.com/carlosframework/platform/cmd/moveprobe 11.979s
ok github.com/carlosframework/platform/cmd/zddprobe 0.787s
ok github.com/carlosframework/platform/internal/activator 59.095s
ok github.com/carlosframework/platform/internal/agentsock 0.039s
ok github.com/carlosframework/platform/internal/alerting 0.022s
ok github.com/carlosframework/platform/internal/analytics 0.068s
ok github.com/carlosframework/platform/internal/appconfig 2.774s
ok github.com/carlosframework/platform/internal/apperr 0.234s
ok github.com/carlosframework/platform/internal/applog 0.270s
ok github.com/carlosframework/platform/internal/awsinv 0.007s
ok github.com/carlosframework/platform/internal/boxchoice 0.007s
ok github.com/carlosframework/platform/internal/boxid 1.236s
? 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.014s
ok github.com/carlosframework/platform/internal/caps 0.030s
ok github.com/carlosframework/platform/internal/certwarm 0.009s
ok github.com/carlosframework/platform/internal/cgroup 0.819s
ok github.com/carlosframework/platform/internal/changelog 0.605s
ok github.com/carlosframework/platform/internal/claimactivation 1.330s
ok github.com/carlosframework/platform/internal/clamd 0.077s
? 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.283s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.050s
ok github.com/carlosframework/platform/internal/dbquery 0.020s
ok github.com/carlosframework/platform/internal/dbreads 2.160s
? github.com/carlosframework/platform/internal/dbreads/dbreadstest [no test files]
ok github.com/carlosframework/platform/internal/dbverify 0.016s
ok github.com/carlosframework/platform/internal/dnsrec 0.006s
ok github.com/carlosframework/platform/internal/docsite 0.039s
ok github.com/carlosframework/platform/internal/domains 2.820s
ok github.com/carlosframework/platform/internal/doorkey 0.017s
ok github.com/carlosframework/platform/internal/economics 0.010s
ok github.com/carlosframework/platform/internal/edge 45.396s
? 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.133s
ok github.com/carlosframework/platform/internal/gate 1.667s
ok github.com/carlosframework/platform/internal/genselect 0.015s
ok github.com/carlosframework/platform/internal/geo 0.017s
ok github.com/carlosframework/platform/internal/geoip 0.033s
ok github.com/carlosframework/platform/internal/historyreadback 0.161s
ok github.com/carlosframework/platform/internal/host 139.486s
ok github.com/carlosframework/platform/internal/hostactors 5.446s
ok github.com/carlosframework/platform/internal/hostactors/awsmembership 0.022s
ok github.com/carlosframework/platform/internal/hostbox 3.220s
ok github.com/carlosframework/platform/internal/hostclaim 0.757s
ok github.com/carlosframework/platform/internal/hostenv 0.022s
ok github.com/carlosframework/platform/internal/hostevidence 0.021s
ok github.com/carlosframework/platform/internal/hostexec 5.304s
ok github.com/carlosframework/platform/internal/hostfence 0.053s
ok github.com/carlosframework/platform/internal/hostfiles 10.298s
ok github.com/carlosframework/platform/internal/hostfloor 0.021s
ok github.com/carlosframework/platform/internal/hostguard 1.066s
ok github.com/carlosframework/platform/internal/hostops 1.991s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.021s
ok github.com/carlosframework/platform/internal/hostquarantine 0.022s
ok github.com/carlosframework/platform/internal/hostrelocate 0.587s
ok github.com/carlosframework/platform/internal/hostresolve 0.171s
ok github.com/carlosframework/platform/internal/hostwrite 0.020s
ok github.com/carlosframework/platform/internal/infraview 0.019s
ok github.com/carlosframework/platform/internal/instancectl 5.223s
ok github.com/carlosframework/platform/internal/instanceexec 2.836s
ok github.com/carlosframework/platform/internal/instancefs 0.032s
ok github.com/carlosframework/platform/internal/instancekey 0.026s
ok github.com/carlosframework/platform/internal/instanceupdates 0.032s
ok github.com/carlosframework/platform/internal/layout 1.814s
ok github.com/carlosframework/platform/internal/lbhealth 0.026s
ok github.com/carlosframework/platform/internal/lease 10.263s
ok github.com/carlosframework/platform/internal/lease/leasetest 0.541s
ok github.com/carlosframework/platform/internal/ledger 0.022s
ok github.com/carlosframework/platform/internal/mail 0.258s
ok github.com/carlosframework/platform/internal/maintenance 0.096s
ok github.com/carlosframework/platform/internal/maintenanceexec 5.547s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.114s
ok github.com/carlosframework/platform/internal/metrics 0.013s
ok github.com/carlosframework/platform/internal/moves 22.278s
ok github.com/carlosframework/platform/internal/moves/archive 0.927s
ok github.com/carlosframework/platform/internal/objstore 0.290s
ok github.com/carlosframework/platform/internal/ops 0.191s
ok github.com/carlosframework/platform/internal/park 0.285s
ok github.com/carlosframework/platform/internal/plans 0.006s
ok github.com/carlosframework/platform/internal/privatefile 0.010s
ok github.com/carlosframework/platform/internal/provision 23.176s
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.543s
ok github.com/carlosframework/platform/internal/relay 7.237s
ok github.com/carlosframework/platform/internal/release 25.222s
ok github.com/carlosframework/platform/internal/rollout 3.768s
ok github.com/carlosframework/platform/internal/rolloutwords 0.003s
ok github.com/carlosframework/platform/internal/rootaws 0.010s
ok github.com/carlosframework/platform/internal/rootparticipation 0.064s
ok github.com/carlosframework/platform/internal/rootstate 0.027s
ok github.com/carlosframework/platform/internal/runs 0.544s
ok github.com/carlosframework/platform/internal/s3compat 0.004s
ok github.com/carlosframework/platform/internal/safefile 0.004s
ok github.com/carlosframework/platform/internal/schedule 2.642s
ok github.com/carlosframework/platform/internal/seeds 0.014s
ok github.com/carlosframework/platform/internal/sim/engines 2.618s
ok github.com/carlosframework/platform/internal/sim/hostlife 10.434s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 3.810s
ok github.com/carlosframework/platform/internal/status 0.081s
ok github.com/carlosframework/platform/internal/steering 0.005s
ok github.com/carlosframework/platform/internal/stopevidence 0.280s
ok github.com/carlosframework/platform/internal/svcrole 0.002s
ok github.com/carlosframework/platform/internal/telemetry 0.004s
ok github.com/carlosframework/platform/internal/termfence 0.004s
ok github.com/carlosframework/platform/internal/tunnelclient 0.006s
ok github.com/carlosframework/platform/internal/unixdial 0.004s
ok github.com/carlosframework/platform/internal/updatewords 0.005s
ok github.com/carlosframework/platform/internal/usage 0.005s
ok github.com/carlosframework/platform/internal/version 0.003s
ok github.com/carlosframework/platform/internal/vet 1.702s
=== internal_console@0 (80 s)
ok github.com/carlosframework/platform/internal/console 78.188s
=== internal_console@1 (44 s)
ok github.com/carlosframework/platform/internal/console 41.697s
=== internal_console@2 (42 s)
ok github.com/carlosframework/platform/internal/console 40.099s
=== internal_console@3 (41 s)
ok github.com/carlosframework/platform/internal/console 39.471s
=== internal_console@4 (42 s)
ok github.com/carlosframework/platform/internal/console 39.971s
=== internal_console@5 (42 s)
ok github.com/carlosframework/platform/internal/console 39.600s
=== internal_console@6 (38 s)
ok github.com/carlosframework/platform/internal/console 35.911s
=== internal_console@7 (46 s)
ok github.com/carlosframework/platform/internal/console 43.690s
=== root@0 (110 s)
ok github.com/carlosframework/platform 107.878s
=== root@1 (84 s)
ok github.com/carlosframework/platform 82.202s
=== root@2 (92 s)
ok github.com/carlosframework/platform 89.861s
=== 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: downloading https://github.com/minio/minio/releases/download/RELEASE.2025-09-07T16-13-09Z/minio.linux-arm64.RELEASE.2025-09-07T16-13-09Z
minio: downloaded, digest verified
mc: downloading https://github.com/minio/mc/releases/download/RELEASE.2025-08-13T08-35-41Z/mc.linux-arm64.RELEASE.2025-08-13T08-35-41Z
mc: downloaded, 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.021s
=== RUN TestT4StorageProbeMinio
2026/10/24 17:56:17 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18E188D5788033A6, 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.021s
=== 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 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/24 17:56:19 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/10/24 17:56:19 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/10/24 17:56:19 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/24 17:56:19 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/24 17:56:19 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/24 17:56:19 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/10/24 17:56:19 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%3A41217: could not determine target mailbox
agent.go:135: dbreads: dbr_rnaqn4nfzf5i3bx67xsipdu5rq: planned 3 files (1544 bytes) and restored to 3 in 9ms
agent.go:135: dbreads: dbr_rnaqn4nfzf5i3bx67xsipdu5rq: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/24 17:56:20 console: db read dbr_rnaqn4nfzf5i3bx67xsipdu5rq: relayed 1 chunks (102 bytes) in 1.003s, ended done
agent.go:135: dbreads: dbr_butvlcvpeciwtvkmq46kwe22ti: planned 1 files (720 bytes) and restored to 1 in 7ms
agent.go:135: dbreads: dbr_butvlcvpeciwtvkmq46kwe22ti: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/24 17:56:21 console: db read dbr_butvlcvpeciwtvkmq46kwe22ti: relayed 1 chunks (102 bytes) in 1.003s, ended done
agent.go:135: dbreads: dbr_uh5ka7dimgoq5k3ylvhneo3xfe: planned 3 files (1544 bytes) and held through 3 in 8ms
agent.go:135: dbreads: dbr_uh5ka7dimgoq5k3ylvhneo3xfe: output 1544 bytes in 1 confirmed chunks in 1ms
2026/10/24 17:56:22 console: db read dbr_uh5ka7dimgoq5k3ylvhneo3xfe: relayed 1 chunks (1641 bytes) in 1.003s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:135: dbreads: dbr_zqyfh2unw3d46ingfanmx3d5iq: planned 3 files (1544 bytes) and restored to 3 in 9ms
2026/10/24 17:56:22 console: db read dbr_zqyfh2unw3d46ingfanmx3d5iq: relayed 0 chunks (0 bytes) in 31ms, ended client gone
agent.go:135: dbreads: dbr_zqyfh2unw3d46ingfanmx3d5iq: output 5 bytes in 1 confirmed chunks in 9ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:135: dbreads: dbr_nacng7qf2eollk4ve7z5d2jxna: planned 3 files (1544 bytes) and restored to 3 in 9ms
2026/10/24 17:56:42 console: db read dbr_nacng7qf2eollk4ve7z5d2jxna: relayed 0 chunks (0 bytes) in 19.411s, ended no-result
agent.go:135: dbreads: dbr_nacng7qf2eollk4ve7z5d2jxna: output 5 bytes in 1 confirmed chunks in 19.398s
--- PASS: TestDBForwardMinio (22.77s)
--- PASS: TestDBForwardMinio/by_disconnect (0.15s)
--- PASS: TestDBForwardMinio/by_timeout (19.52s)
PASS
ok github.com/carlosframework/platform/internal/console 22.790s
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 38215b7ea..d175a9aee 100644 |
| --- a/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md |
| +++ b/docs/superpowers/notes/census-proposal-sec-mail-user-boundary.md |
| @@ -23,7 +23,16 @@ policy and mint it a key. Object storage closed the same gap with |
| `PutUserPolicy` runs. Nothing calls `DeleteUserPermissionsBoundary`. |
| - `cmd/console serve` reads `CARLOS_MAIL_USER_BOUNDARY` and stops with |
| `log.Fatal` (through `mailUserBoundary`) when `CARLOS_MAIL_REGION` is set |
| - and the boundary is empty or not an IAM policy ARN. |
| + and the boundary is empty or not a customer managed policy ARN |
| + (`arn:<partition>:iam::<12 digits>:policy/<path><name>`, IAM's name |
| + characters only, no control characters). |
| +- Astra's review round: `MintKey` also reads the user and backfills the |
| + boundary before `CreateAccessKey`, because rotation mints without |
| + `EnsureUser`. And `CARLOS_MAIL_BOUNDARY_SWEEP=1` runs |
| + `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. |
| None of this runs as root. The changed code runs in the console |
| (`cmd/console serve` under `console.service`, user `carlos-console`). The |
| @@ -43,22 +52,23 @@ 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, and hands `mail.NewAWSProvisioner` the boundary through a closure passed to `mailBackends` | 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) | the same three `/data` literals, each moved 282 bytes (4077, 5178, 5415 to 4359, 5460, 5697) | |
| -`mailUserBoundary` (new, `cmd/console/main.go`) and every changed |
| -`internal/mail/aws.go` function make no read the scanner counts, so they have |
| +`mailUserBoundary` and `sweepMailBoundaries` (new, `cmd/console/main.go`), |
| +`internal/mail/boundarysweep.go` and every changed `internal/mail/aws.go` |
| +function make no read the scanner counts, so they have |
| no rows. |
| ### Envelopes re-pinned |
| | envelope | why | |
| |---|---| |
| -| `cmd/console` | `serve`, the new `mailUserBoundary`, the header doc comment, `mailDeployment`'s doc comment, and `TestMailUserBoundary` | |
| -| `internal/mail` | `aws.go`: the boundary field, `checkUserBoundary`/`CheckUserBoundary`, `ErrNoUserBoundary`, `CreateUser`'s field, `backfillBoundary`, `PutUserPermissionsBoundary` on `iamAPI`; and the new `aws_iam_test.go` | |
| +| `cmd/console` | `serve`, the new `mailUserBoundary` and `sweepMailBoundaries`, the header doc comment, `mailDeployment`'s doc comment, `TestMailUserBoundary` and `TestSweepMailBoundariesReports` | |
| +| `internal/mail` | `aws.go`: the boundary field, `checkUserBoundary`/`CheckUserBoundary`, `ErrNoUserBoundary`, `CreateUser`'s field, `backfillBoundary`, `PutUserPermissionsBoundary` and `ListUsers` on `iamAPI`, the stricter ARN check, `MintKey`'s backfill; the new `boundarysweep.go`; and the new `aws_iam_test.go` | |
| Seal: `09e20ea4bbc534710334e632e903878656dabfb5817d4d96c6e7c56508172148` |
| (wake-latency-1, checked first) to |
| -`7b0701e08da6210d02ed0f76eabe4548d7139a772ec78c358480e1586b29c9cd`. |
| +`bea407c54a7f319be9ea73eda14ef56ff3cf7fa279620b5f1606e0d42e623751`. |
| ## Claim authority census (TestClaimAuthoritySourceCensus) |
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go| index 9b80f6e30..faf09f969 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 = "7b0701e08da6210d02ed0f76eabe4548d7139a772ec78c358480e1586b29c9cd" |
| + seal = "bea407c54a7f319be9ea73eda14ef56ff3cf7fa279620b5f1606e0d42e623751" |
| 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 4c10ecf71..e8b5ba82f 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 041b03c43c4c7ab2f7c07c3db18540abd86d776900b0d42c884a838de68bdb0b 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; the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 2fbc4e6d3ad3999eeacd7eeb880d14f9dac4e70df75f192649cba2bf4da0f548 |
| -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; the same three /data literals, each moved 282 bytes; no read added data-literal@4359,data-literal@5460,data-literal@5697 2fbc4e6d3ad3999eeacd7eeb880d14f9dac4e70df75f192649cba2bf4da0f548 |
| -@coverage cmd/console 19d46a41e903849729d7c33dd049d5752fc03b80b7f93d393472b346324172cf |
| -@coverage internal/mail 1662bed49d1464be12e3b8df163ce136bdc10a87c9004ed68c006975f0677315 |
| +@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 |
| +@coverage internal/mail 82a7f2590ced5c1ad6a72b0e62305b4cc157eeade4e8a3159366a41bc3eaca88 |