Census approval card for the account-root hardening (census-ruling-hunt-account-root-hardening)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+34
−0
docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md+23 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-hunt-account-root-hardening.tsv+10 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md b/docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md| new file mode 100644 |
| index 000000000..dcee2b087 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md |
| @@ -0,0 +1,23 @@ |
| +# Census approval: hunt-account-root-hardening |
| + |
| +Ruling `census-ruling-hunt-account-root-hardening`. Every change below keeps the disposition it already has, so it needs an approval, not a decision. |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `infra/modules/region-host/main.tf` `external` | body | unchanged (1) | adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file | |
| +| `infra/modules/region-host/variables.tf` `external` | body | unchanged (1) | adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file | |
| +| `internal/cgroup/cgroup.go` `setup` | body | unchanged (1) | setup records whether the flat IMDS fence is armed (CARLOS_IMDS_FLAT_FENCE); when armed, a flat start whose shim or placement is unavailable is refused instead of falling back to start-and-move; no read is added | |
| + |
| +Envelopes re-pinned: `infra/modules/region-host`, `internal/cgroup`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `infra/modules/region-host/main.tf` `external`: legacy, task accepted-legacy. Basis: 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=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 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; applies in place on a running instance with no restart |
| +- `infra/modules/region-host/variables.tf` `external`: legacy, task accepted-legacy. Basis: 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 variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file |
| +- `internal/cgroup/cgroup.go` `setup`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input |
| + |
| +Seal: `91204fcbc484343c03bd5ae69e3084055bc519a5b317e2ae3dc49880080764e2` → `fa2369b1a97a61057db8da1b18e241d6daeb754febaa6d81f25277632a73a213`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-hunt-account-root-hardening.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 57f37ea6e..1fe43fbee 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -25,3 +25,4 @@ plan14-root-reads-design-edge-rate-limit-358-decisions.tsv a067dcd9e32e6be2b7dd9 |
| plan14-root-reads-design-edge-rate-limit-358.tsv 0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0 |
| plan14-root-reads-plans-4b-after-grace.tsv 0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0 |
| plan14-root-reads-certwarm-wake.tsv 91204fcbc484343c03bd5ae69e3084055bc519a5b317e2ae3dc49880080764e2 |
| +plan14-root-reads-hunt-account-root-hardening.tsv fa2369b1a97a61057db8da1b18e241d6daeb754febaa6d81f25277632a73a213 |
diff --git a/internal/provision/testdata/plan14-root-reads-hunt-account-root-hardening.tsv b/internal/provision/testdata/plan14-root-reads-hunt-account-root-hardening.tsv| new file mode 100644 |
| index 000000000..31398f2a1 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-hunt-account-root-hardening.tsv |
| @@ -0,0 +1,10 @@ |
| +# Census overlay hunt-account-root-hardening, written by census-propose (#369). census-ruling-hunt-account-root-hardening, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md. |
| +# 3 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy 4a6ab888e7ab11ef12e0856bbf44c1b5f51b5565bd3d695737ec649a3f463b80 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=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 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; applies in place on a running instance with no restart;rev3=census-ruling-hunt-account-root-hardening;basis=adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file file:external@0 5c9beacd27c01804a34979986e418f2096179a00de8b307577fb7673bcf288aa |
| +@legacy 2640f4ec9b681dc3c6679a5b02b2dd56f5255bd44774897561210be3ff284614 infra/modules/region-host/variables.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 variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file;rev3=census-ruling-hunt-account-root-hardening;basis=adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file file:external@0 1eed11956fcb264e2e1b4169fdde71b0ebbc2e88da0824cb70bb30930d55c858 |
| +@legacy af7931b01e557a2c196d6c785adefc0a1e84215d840bfa3a81ebefb538c5c450 internal/cgroup/cgroup.go setup legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-hunt-account-root-hardening;basis=setup records whether the flat IMDS fence is armed (CARLOS_IMDS_FLAT_FENCE); when armed, a flat start whose shim or placement is unavailable is refused instead of falling back to start-and-move; no read is added file:ReadFile@73 85bf04b3a39273179f348ff6a939476f0245fec2223d3dfc9f93ff3db68860e7 |
| +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=census-ruling-sec-host-imdsv2-module;basis=aws_instance.host gains metadata_options (IMDSv2 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; applies in place on a running instance with no restart;rev3=census-ruling-hunt-account-root-hardening;basis=adds aws_iam_role_policy host_release_key_deny (count from deny_release_key_reads, default true): an explicit Deny on ssm:GetParameter, GetParameters and GetParameterHistory for parameter/carlos/release-key, and on GetParametersByPath for its ancestor paths; tofu only, run on an operator's machine; no read is added and nothing on a box reads the file file:external@0 5c9beacd27c01804a34979986e418f2096179a00de8b307577fb7673bcf288aa |
| +infra/modules/region-host/variables.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 variables with console_mail_from (validated as one lowercase address) and console_mail_region, both empty by default; no read is added and nothing on a box reads the file;rev3=census-ruling-hunt-account-root-hardening;basis=adds deny_release_key_reads (bool, default true); no read is added and nothing on a box reads the file file:external@0 1eed11956fcb264e2e1b4169fdde71b0ebbc2e88da0824cb70bb30930d55c858 |
| +internal/cgroup/cgroup.go setup legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-hunt-account-root-hardening;basis=setup records whether the flat IMDS fence is armed (CARLOS_IMDS_FLAT_FENCE); when armed, a flat start whose shim or placement is unavailable is refused instead of falling back to start-and-move; no read is added file:ReadFile@73 85bf04b3a39273179f348ff6a939476f0245fec2223d3dfc9f93ff3db68860e7 |
| +@coverage infra/modules/region-host b37e844136b6c967f539dd6428c2955eeb5359be8750de4bbbf3dc97cbf12788 |
| +@coverage internal/cgroup 88b3c848ef947c52db1a103b8fcde9223e14b366743b8904585d58fbbc59f0e5 |