sec-host-imdsv2-module: census overlay re-pins the region-host envelope (proposed)
aws_instance.host gains metadata_options, which changes infra/modules/region-host/main.tf, so TestPlan14RootReadCensus reported three discrepancies. Add the plan14-root-reads-sec-host-imdsv2-module overlay, loaded last after static-redirects: a re-frozen legacy declaration for main.tf (rev3=PROPOSED-sec-host-imdsv2-module appended), the infra/modules/region-host envelope, and the moved seal. No read, file or record write is added. Proposal note in docs/superpowers/notes. The ruling is the census owner's.
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
3 files changed,
+61
−0
docs/superpowers/notes/census-proposal-sec-host-imdsv2-module.md+43 −0internal/provision/plan14_root_reads_test.go+13 −0internal/provision/testdata/plan14-root-reads-sec-host-imdsv2-module.tsv+5 −0
CI passed — run details
CI log
=== gate ===
.amadan/test-gate.sh
=== launchctx (5 s)
ok amadan.net/carlos/platform.git/launchctx 0.022s
? amadan.net/carlos/platform.git/launchctx/controlname [no test files]
? amadan.net/carlos/platform.git/launchctx/wireid [no test files]
=== vet (7 s)
=== gofmt (0 s)
gofmt -l .: clean
=== rest (158 s)
? github.com/carlosframework/platform/cmd/changelog [no test files]
ok github.com/carlosframework/platform/cmd/console 3.966s
ok github.com/carlosframework/platform/cmd/moveprobe 11.573s
ok github.com/carlosframework/platform/cmd/zddprobe 0.707s
ok github.com/carlosframework/platform/internal/activator 58.777s
ok github.com/carlosframework/platform/internal/agentsock 0.023s
ok github.com/carlosframework/platform/internal/alerting 0.003s
ok github.com/carlosframework/platform/internal/analytics 0.028s
ok github.com/carlosframework/platform/internal/appconfig 2.923s
ok github.com/carlosframework/platform/internal/apperr 0.087s
ok github.com/carlosframework/platform/internal/applog 0.157s
ok github.com/carlosframework/platform/internal/awsinv 0.004s
ok github.com/carlosframework/platform/internal/boxchoice 0.004s
ok github.com/carlosframework/platform/internal/boxid 0.774s
? 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.008s
ok github.com/carlosframework/platform/internal/caps 0.036s
ok github.com/carlosframework/platform/internal/certwarm 0.002s
ok github.com/carlosframework/platform/internal/cgroup 0.704s
ok github.com/carlosframework/platform/internal/changelog 0.385s
ok github.com/carlosframework/platform/internal/claimactivation 0.912s
ok github.com/carlosframework/platform/internal/clamd 0.055s
? 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 7.808s
ok github.com/carlosframework/platform/internal/dbdoor/dbdoortest 0.010s
ok github.com/carlosframework/platform/internal/dbquery 0.008s
ok github.com/carlosframework/platform/internal/dbreads 2.074s
? 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.002s
ok github.com/carlosframework/platform/internal/docsite 0.058s
ok github.com/carlosframework/platform/internal/domains 2.823s
ok github.com/carlosframework/platform/internal/doorkey 0.006s
ok github.com/carlosframework/platform/internal/economics 0.006s
ok github.com/carlosframework/platform/internal/edge 45.795s
? 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.750s
ok github.com/carlosframework/platform/internal/genselect 0.014s
ok github.com/carlosframework/platform/internal/geo 0.036s
ok github.com/carlosframework/platform/internal/geoip 0.030s
ok github.com/carlosframework/platform/internal/historyreadback 0.152s
ok github.com/carlosframework/platform/internal/host 145.800s
ok github.com/carlosframework/platform/internal/hostactors 6.683s
ok github.com/carlosframework/platform/internal/hostactors/awsmembership 0.009s
ok github.com/carlosframework/platform/internal/hostbox 3.215s
ok github.com/carlosframework/platform/internal/hostclaim 0.887s
ok github.com/carlosframework/platform/internal/hostenv 0.007s
ok github.com/carlosframework/platform/internal/hostevidence 0.006s
ok github.com/carlosframework/platform/internal/hostexec 5.624s
ok github.com/carlosframework/platform/internal/hostfence 0.071s
ok github.com/carlosframework/platform/internal/hostfiles 10.306s
ok github.com/carlosframework/platform/internal/hostfloor 0.030s
ok github.com/carlosframework/platform/internal/hostguard 1.045s
ok github.com/carlosframework/platform/internal/hostops 2.233s
? github.com/carlosframework/platform/internal/hostops/fencerelease [no test files]
ok github.com/carlosframework/platform/internal/hostops/internal/fencerelease 0.003s
ok github.com/carlosframework/platform/internal/hostquarantine 0.008s
ok github.com/carlosframework/platform/internal/hostrelocate 0.697s
ok github.com/carlosframework/platform/internal/hostresolve 0.239s
ok github.com/carlosframework/platform/internal/hostwrite 0.007s
ok github.com/carlosframework/platform/internal/infraview 0.007s
ok github.com/carlosframework/platform/internal/instancectl 5.257s
ok github.com/carlosframework/platform/internal/instanceexec 2.813s
ok github.com/carlosframework/platform/internal/instancefs 0.008s
ok github.com/carlosframework/platform/internal/instancekey 0.004s
ok github.com/carlosframework/platform/internal/instanceupdates 0.010s
ok github.com/carlosframework/platform/internal/layout 1.942s
ok github.com/carlosframework/platform/internal/lbhealth 0.008s
ok github.com/carlosframework/platform/internal/lease 10.196s
ok github.com/carlosframework/platform/internal/lease/leasetest 0.590s
ok github.com/carlosframework/platform/internal/ledger 0.015s
ok github.com/carlosframework/platform/internal/mail 0.271s
ok github.com/carlosframework/platform/internal/maintenance 0.095s
ok github.com/carlosframework/platform/internal/maintenanceexec 5.562s
ok github.com/carlosframework/platform/internal/maintenanceguard 0.108s
ok github.com/carlosframework/platform/internal/metrics 0.010s
ok github.com/carlosframework/platform/internal/moves 21.371s
ok github.com/carlosframework/platform/internal/moves/archive 1.050s
ok github.com/carlosframework/platform/internal/objstore 0.391s
ok github.com/carlosframework/platform/internal/ops 0.213s
ok github.com/carlosframework/platform/internal/park 0.291s
ok github.com/carlosframework/platform/internal/plans 0.006s
ok github.com/carlosframework/platform/internal/privatefile 0.004s
ok github.com/carlosframework/platform/internal/provision 15.264s
ok github.com/carlosframework/platform/internal/publicrelease 0.015s
? github.com/carlosframework/platform/internal/regionname [no test files]
ok github.com/carlosframework/platform/internal/registry 5.638s
ok github.com/carlosframework/platform/internal/relay 7.195s
ok github.com/carlosframework/platform/internal/release 26.271s
ok github.com/carlosframework/platform/internal/rollout 3.782s
ok github.com/carlosframework/platform/internal/rolloutwords 0.005s
ok github.com/carlosframework/platform/internal/rootaws 0.009s
ok github.com/carlosframework/platform/internal/rootparticipation 0.068s
ok github.com/carlosframework/platform/internal/rootstate 0.027s
ok github.com/carlosframework/platform/internal/runs 0.588s
ok github.com/carlosframework/platform/internal/s3compat 0.006s
ok github.com/carlosframework/platform/internal/safefile 0.003s
ok github.com/carlosframework/platform/internal/schedule 2.691s
ok github.com/carlosframework/platform/internal/seeds 0.012s
ok github.com/carlosframework/platform/internal/sim/engines 2.700s
ok github.com/carlosframework/platform/internal/sim/hostlife 10.460s
ok github.com/carlosframework/platform/internal/sim/litestreamfacts 3.604s
ok github.com/carlosframework/platform/internal/status 0.077s
ok github.com/carlosframework/platform/internal/steering 0.009s
ok github.com/carlosframework/platform/internal/stopevidence 0.245s
ok github.com/carlosframework/platform/internal/svcrole 0.003s
ok github.com/carlosframework/platform/internal/telemetry 0.006s
ok github.com/carlosframework/platform/internal/termfence 0.007s
ok github.com/carlosframework/platform/internal/tunnelclient 0.006s
ok github.com/carlosframework/platform/internal/unixdial 0.003s
ok github.com/carlosframework/platform/internal/updatewords 0.008s
ok github.com/carlosframework/platform/internal/usage 0.007s
ok github.com/carlosframework/platform/internal/version 0.003s
ok github.com/carlosframework/platform/internal/vet 1.671s
=== internal_console@0 (79 s)
ok github.com/carlosframework/platform/internal/console 76.671s
=== internal_console@1 (42 s)
ok github.com/carlosframework/platform/internal/console 40.100s
=== internal_console@2 (44 s)
ok github.com/carlosframework/platform/internal/console 41.990s
=== internal_console@3 (43 s)
ok github.com/carlosframework/platform/internal/console 40.832s
=== internal_console@4 (46 s)
ok github.com/carlosframework/platform/internal/console 43.865s
=== internal_console@5 (40 s)
ok github.com/carlosframework/platform/internal/console 38.476s
=== internal_console@6 (40 s)
ok github.com/carlosframework/platform/internal/console 37.692s
=== internal_console@7 (36 s)
ok github.com/carlosframework/platform/internal/console 33.982s
=== root@0 (107 s)
ok github.com/carlosframework/platform 104.938s
=== root@1 (89 s)
ok github.com/carlosframework/platform 86.621s
=== root@2 (82 s)
ok github.com/carlosframework/platform 80.032s
=== 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.024s
=== RUN TestT4StorageProbeMinio
2026/10/23 19:42:16 moves: T4: STORE: list: operation error S3: ListObjectsV2, https response error StatusCode: 403, RequestID: 18E1400987F77E91, 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.01s)
PASS
ok github.com/carlosframework/platform/internal/host 0.022s
=== RUN TestS3StoreMinioContract
=== RUN TestS3StoreMinioContract/conditional_get_and_etag_listing
=== RUN TestS3StoreMinioContract/bump_through_every_mutation_path
--- PASS: TestS3StoreMinioContract (0.03s)
--- PASS: TestS3StoreMinioContract/conditional_get_and_etag_listing (0.01s)
--- PASS: TestS3StoreMinioContract/bump_through_every_mutation_path (0.02s)
PASS
ok github.com/carlosframework/platform/internal/release 0.032s
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/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/23 19:42:18 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000002
2026/10/23 19:42:18 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000002 maxTXID=0000000000000002 size=370
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000002
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000002 txid.db=0000000000000003
2026/10/23 19:42:18 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000003 maxTXID=0000000000000003 size=454
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000003 txid.db=0000000000000003
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000000 txid.db=0000000000000001
2026/10/23 19:42:18 INFO ltx file uploaded system=store db=source.db replica=file level=0 minTXID=0000000000000001 maxTXID=0000000000000001 size=720
2026/10/23 19:42:18 INFO replica sync system=store db=source.db replica=file txid.replica=0000000000000001 txid.db=0000000000000001
2026/10/23 19:42:18 console: CARLOS_SECRETS_PUBKEY is unset, so no region outside the home can be chosen automatically
2026/10/23 19:42:18 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%3A44463: could not determine target mailbox
agent.go:123: dbreads: dbr_cpzf6tfwgvkoaxrpuomuqsxdve: planned 3 files (1544 bytes) and restored to 3 in 10ms
agent.go:123: dbreads: dbr_cpzf6tfwgvkoaxrpuomuqsxdve: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/23 19:42:19 console: db read dbr_cpzf6tfwgvkoaxrpuomuqsxdve: relayed 1 chunks (102 bytes) in 1.004s, ended done
agent.go:123: dbreads: dbr_svrvbhikr2nw2okzbkktjsi22q: planned 1 files (720 bytes) and restored to 1 in 8ms
agent.go:123: dbreads: dbr_svrvbhikr2nw2okzbkktjsi22q: output 5 bytes in 1 confirmed chunks in 1ms
2026/10/23 19:42:20 console: db read dbr_svrvbhikr2nw2okzbkktjsi22q: relayed 1 chunks (102 bytes) in 1.004s, ended done
=== RUN TestDBForwardMinio/by_disconnect
=== NAME TestDBForwardMinio
agent.go:123: dbreads: dbr_ldspnqbprqdxo5i7lkfdzqieeq: planned 3 files (1544 bytes) and restored to 3 in 9ms
2026/10/23 19:42:20 console: db read dbr_ldspnqbprqdxo5i7lkfdzqieeq: relayed 0 chunks (0 bytes) in 24ms, ended client gone
agent.go:123: dbreads: dbr_ldspnqbprqdxo5i7lkfdzqieeq: output 5 bytes in 1 confirmed chunks in 18ms
=== RUN TestDBForwardMinio/by_timeout
=== NAME TestDBForwardMinio
agent.go:123: dbreads: dbr_b7bn55ws5tgjfttndjqy5us47e: planned 3 files (1544 bytes) and restored to 3 in 10ms
2026/10/23 19:42:40 console: db read dbr_b7bn55ws5tgjfttndjqy5us47e: relayed 0 chunks (0 bytes) in 19.043s, ended no-result
agent.go:123: dbreads: dbr_b7bn55ws5tgjfttndjqy5us47e: output 5 bytes in 1 confirmed chunks in 19.018s
--- PASS: TestDBForwardMinio (21.38s)
--- PASS: TestDBForwardMinio/by_disconnect (0.15s)
--- PASS: TestDBForwardMinio/by_timeout (19.15s)
PASS
ok github.com/carlosframework/platform/internal/console 21.398s
minio contract: PASS
diff --git a/docs/superpowers/notes/census-proposal-sec-host-imdsv2-module.md b/docs/superpowers/notes/census-proposal-sec-host-imdsv2-module.md| new file mode 100644 |
| index 000000000..4d495bb62 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-sec-host-imdsv2-module.md |
| @@ -0,0 +1,43 @@ |
| +# Census: region-host requires IMDSv2 |
| + |
| +Status: PROPOSED. The one row carries `rev3=PROPOSED-sec-host-imdsv2-module`. |
| +The ruling is asked of the census owner on #280. This is a proposal, not a ruling. |
| + |
| +The branch is `sec-host-imdsv2-module`, from main at 0d9e81dc. It adds a |
| +`metadata_options` block to `aws_instance.host` in |
| +`infra/modules/region-host/main.tf` (IMDSv2 required, hop limit 1, endpoint |
| +enabled), matching scanner-host, and a plan-time tofu test under |
| +`infra/modules/region-host/tests/`. It adds one census overlay, |
| +`internal/provision/testdata/plan14-root-reads-sec-host-imdsv2-module.tsv`, |
| +loaded last in `TestPlan14RootReadCensus`, after static-redirects. The |
| +record-write census does not change: no record write is added or moved. |
| + |
| +## The unit |
| + |
| +| unit | change | executing identity | disposition | |
| +|---|---|---|---| |
| +| `infra/modules/region-host/main.tf` `external` | changed legacy: `aws_instance.host` gains `metadata_options`. Tofu configuration only; no read, file or record write is added. A change on a running instance is applied in place, with no restart | tofu on an operator's machine with the operator's AWS credentials; no box unit runs it and no binary embeds the file | re-frozen at main's disposition: legacy, accepted-legacy, with the console-invite-delivery basis kept and the new basis appended | |
| + |
| +- Sites: `file:external@0` (unchanged). |
| +- Digest: `8ec89e75ca0a0d2ddde74bffe226adb5a5935249fd41590bcce1623c5201ab47`. |
| +- Frozen declaration: `f5d88eef1cc1b545fa8712ea26d98996c028c39756dc77acb127473b91f752bb`. |
| + |
| +## Source envelope |
| + |
| +Only `infra/modules/region-host` changes, to |
| +`5f1b1bbc02603a54e136ff004e2495bef2b0f22054e058b5930a539749b1b558`. The new |
| +`tests/instance_metadata.tftest.hcl` is part of that envelope; the scan finds no |
| +read site in it. |
| + |
| +## Seal |
| + |
| +One frozen declaration is re-pinned, so the legacy seal moves from |
| +`65857c29501dc7676f52921bea79d08217542ecb1d775c67d20a3460c851d831` |
| +(static-redirects, checked first) to |
| +`b16e1240444c4aff42fe6d8fe69c29d88491db197531b9305ee7d408945b2c75`. |
| + |
| +## Applying an approved disposition |
| + |
| +Keep every earlier overlay and seal. If the owner rules otherwise on the basis |
| +text, change the row and re-pin the three values above. Do not label this |
| +disposition as a ruling until the owner has made one. |
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go| index a38913fe7..61dba194f 100644 |
| --- a/internal/provision/plan14_root_reads_test.go |
| +++ b/internal/provision/plan14_root_reads_test.go |
| @@ -1423,6 +1423,19 @@ func TestPlan14RootReadCensus(t *testing.T) { |
| t.Fatal(err) |
| } |
| seal = "65857c29501dc7676f52921bea79d08217542ecb1d775c67d20a3460c851d831" |
| + // Census overlay sec-host-imdsv2-module (region-host's aws_instance.host |
| + // requires IMDSv2), loaded last, after static-redirects. Proposed; ruling |
| + // asked of the census owner on #280. Tofu configuration only: no read, |
| + // file or record write is added. The infra/modules/region-host envelope |
| + // is re-pinned and main.tf's legacy declaration is re-frozen, so the seal |
| + // moves; static-redirects's is checked first. |
| + if errs := checkRootReadLegacy(inv, seal); len(errs) != 0 { |
| + t.Fatal(errs) |
| + } |
| + if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-sec-host-imdsv2-module.tsv"), &inv, true); err != nil { |
| + t.Fatal(err) |
| + } |
| + seal = "b16e1240444c4aff42fe6d8fe69c29d88491db197531b9305ee7d408945b2c75" |
| 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-host-imdsv2-module.tsv b/internal/provision/testdata/plan14-root-reads-sec-host-imdsv2-module.tsv| new file mode 100644 |
| index 000000000..868a1dd26 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-sec-host-imdsv2-module.tsv |
| @@ -0,0 +1,5 @@ |
| +# Census overlay sec-host-imdsv2-module (region-host's aws_instance.host requires IMDSv2), loaded last, after static-redirects. PROPOSED-sec-host-imdsv2-module; the ruling is asked of the census owner on #280. |
| +# infra/modules/region-host/main.tf gains a metadata_options block on aws_instance.host (http_tokens required, hop limit 1, endpoint enabled), matching scanner-host. Tofu configuration only, run on an operator's machine; no read, file or record write is added, and nothing on a box reads the file. The infra/modules/region-host envelope is re-pinned (the tests/ file is new and the scan finds no read site in it). One frozen declaration is re-pinned, so the seal moves; static-redirects's is checked first. |
| +@legacy f5d88eef1cc1b545fa8712ea26d98996c028c39756dc77acb127473b91f752bb infra/modules/region-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's module with one optional aws_iam_role_policy, host_console_mail, count 0 unless console_mail_from is set; it grants the host role ses:SendEmail on the one sending identity, the carlos-bab configuration set and its tenants, conditioned on ses:FromAddress equal to console_mail_from; no read is added and nothing on a box reads the file;rev3=PROPOSED-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 required, hop limit 1, endpoint enabled), matching scanner-host; tofu configuration only, no read, file or record write is added; changes on a running instance are in place with no restart. file:external@0 8ec89e75ca0a0d2ddde74bffe226adb5a5935249fd41590bcce1623c5201ab47 |
| +infra/modules/region-host/main.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-invite-delivery;basis=tofu on an operator's machine with the operator's AWS credentials (no box unit; no binary embeds the file): main's module with one optional aws_iam_role_policy, host_console_mail, count 0 unless console_mail_from is set; it grants the host role ses:SendEmail on the one sending identity, the carlos-bab configuration set and its tenants, conditioned on ses:FromAddress equal to console_mail_from; no read is added and nothing on a box reads the file;rev3=PROPOSED-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 required, hop limit 1, endpoint enabled), matching scanner-host; tofu configuration only, no read, file or record write is added; changes on a running instance are in place with no restart. file:external@0 8ec89e75ca0a0d2ddde74bffe226adb5a5935249fd41590bcce1623c5201ab47 |
| +@coverage infra/modules/region-host 5f1b1bbc02603a54e136ff004e2495bef2b0f22054e058b5930a539749b1b558 |