Account and box-root hardening from the 2026-10-25 security review
The region-host module denies the host role SSM reads of /carlos/release-key (deny_release_key_reads, default true): an explicit Deny on GetParameter, GetParameters and GetParameterHistory for the key, and on GetParametersByPath for its ancestor paths. The console reads its key from its service environment, so promotion is unaffected; it takes effect on a consumer's next module ref bump and targeted apply. internal/cgroup refuses the flat start-and-move fallback when the flat IMDS fence is armed (CARLOS_IMDS_FLAT_FENCE), so the fence cannot be undone by moving the agent out of its supervise leaf. Inert until the variable is set on carlos-edge.service. Census: census-ruling-hunt-account-root-hardening, approved by Paul with Astra's cross-family review (#280). The bootstrap verification and fence-script changes are carloku-infrastructure#22 and platform-infrastructure#49. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix/hunt-account-root-hardening into main. Co-Authored-By: claude <claude~paul@keymail.dev>
7 files changed,
+239
−1
docs/superpowers/notes/census-proposal-hunt-account-root-hardening.md+23 −0infra/modules/region-host/main.tf+54 −0infra/modules/region-host/variables.tf+24 −0internal/cgroup/cgroup.go+62 −1internal/cgroup/cgroup_test.go+65 −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..e73a4e1cb |
| --- /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: `1199c91ebbfb03869e89d06798176598526e818d28c3032da070b1d4a4532b84` → `ed721c45bf1af12467439061137d8c7a0757bc5ca1c921616ff42d5a7672d743`. |
| + |
| +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/infra/modules/region-host/main.tf b/infra/modules/region-host/main.tf| index 11fca1987..aca89632e 100644 |
| --- a/infra/modules/region-host/main.tf |
| +++ b/infra/modules/region-host/main.tf |
| @@ -474,6 +474,60 @@ resource "aws_iam_role_policy" "host_ssm_parameter_scope" { |
| }) |
| } |
| +# The release-signing key, named and denied on its own. |
| +# |
| +# host_ssm_parameter_scope above only bites when ssm_parameter_arn is tight. |
| +# A deployment whose hosts legitimately read a swathe of /carlos/* (the usual |
| +# shape — pepper, smtp creds, per-app config) sets ssm_parameter_arn to |
| +# `.../parameter/carlos/*`, and /carlos/release-key sits INSIDE that pattern: |
| +# the NotResource deny does not cover it, and the managed Allow does. So an |
| +# internet-facing box can read the root release-signing key — the exact hole |
| +# found standing up a fleet (discussion #7), and re-found in the H1 hunt |
| +# (H1-M2) on the IE/region role. |
| +# |
| +# This deny names the key path by Resource, so it wins no matter how wide |
| +# ssm_parameter_arn is. The console does NOT depend on the host-role grant |
| +# for the key: it reads CARLOS_RELEASE_KEY from its service env/drop-in |
| +# (cmd/console/main.go reads os.Getenv), and the promote/ship scripts fetch |
| +# /carlos/release-key with an operator AWS_PROFILE, never the box role. |
| +# |
| +# The GetParametersByPath ancestor-path deny blocks the recursive-list route |
| +# to the key (listing /carlos or the account root returns it too) WITHOUT |
| +# denying a by-path read of a deeper prefix like /carlos/<app>/*, so the |
| +# box keeps the /carlos/* reads it needs. Two explicit Deny statements never |
| +# conflict with the NotResource deny above — adding deny only subtracts. |
| +resource "aws_iam_role_policy" "host_release_key_deny" { |
| + count = var.deny_release_key_reads ? 1 : 0 |
| + name = "${var.iam_name}-release-key-deny" |
| + role = aws_iam_role.host.id |
| + policy = jsonencode({ |
| + Version = "2012-10-17" |
| + Statement = [ |
| + { |
| + Sid = "DenyReleaseKeyReads" |
| + Effect = "Deny" |
| + Action = [ |
| + "ssm:GetParameter", |
| + "ssm:GetParameters", |
| + "ssm:GetParameterHistory", |
| + ] |
| + Resource = "arn:aws:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/carlos/release-key" |
| + }, |
| + { |
| + Sid = "DenyReleaseKeyAncestorPathReads" |
| + Effect = "Deny" |
| + Action = "ssm:GetParametersByPath" |
| + Resource = [ |
| + "arn:aws:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/carlos", |
| + "arn:aws:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/carlos/", |
| + "arn:aws:ssm:*:${data.aws_caller_identity.current.account_id}:parameter", |
| + "arn:aws:ssm:*:${data.aws_caller_identity.current.account_id}:parameter/", |
| + ] |
| + }, |
| + ] |
| + }) |
| +} |
| + |
| resource "aws_iam_instance_profile" "host" { |
| name = var.iam_name |
| role = aws_iam_role.host.name |
diff --git a/infra/modules/region-host/variables.tf b/infra/modules/region-host/variables.tf| index cfe641067..831ad99b5 100644 |
| --- a/infra/modules/region-host/variables.tf |
| +++ b/infra/modules/region-host/variables.tf |
| @@ -116,6 +116,30 @@ variable "scope_ssm_parameter_reads" { |
| default = true |
| } |
| +variable "deny_release_key_reads" { |
| + description = <<-EOT |
| + Add an explicit Deny on this role reading /carlos/release-key from SSM, |
| + regardless of how wide ssm_parameter_arn is (hunt finding H1-M2). |
| + |
| + scope_ssm_parameter_reads only protects the key when ssm_parameter_arn is |
| + narrow. A deployment that sets ssm_parameter_arn to `.../parameter/carlos/*` |
| + — the common case — puts /carlos/release-key INSIDE the allowed pattern, |
| + and the managed AmazonSSMManagedInstanceCore Allow then lets an |
| + internet-facing box read the root release-signing key. This deny names the |
| + key path (and its ancestor GetParametersByPath list paths) by Resource, so |
| + an explicit Deny wins over that Allow for the key alone, leaving every |
| + other /carlos/* read the box needs untouched. |
| + |
| + On (the default) because no host this module builds signs releases: the |
| + console reads CARLOS_RELEASE_KEY from its service env/drop-in and the |
| + promote scripts fetch the key with an operator profile, never the box |
| + role. Set it to false only if a host on this deployment is proven to read |
| + /carlos/release-key through its instance role at runtime. |
| + EOT |
| + type = bool |
| + default = true |
| +} |
| + |
| variable "extra_ingress" { |
| description = "Additional ingress rules beyond the standard 80/443 (e.g. tcp/25 for a host running an inbound MX). The SG uses in-line rules, so extra rules MUST come through here — a standalone aws_vpc_security_group_ingress_rule in the root would fight the in-line set and be stripped on every apply." |
| type = list(object({ |
diff --git a/internal/cgroup/cgroup.go b/internal/cgroup/cgroup.go| index db5faf516..ba3f9ec7a 100644 |
| --- a/internal/cgroup/cgroup.go |
| +++ b/internal/cgroup/cgroup.go |
| @@ -174,6 +174,22 @@ func ParseSelfCgroup(data string) (string, bool) { |
| type Manager struct { |
| root string |
| logf func(string, ...any) |
| + // fencedSpawn is true when the agent runs in a cgroup the flat-tier IMDS |
| + // fence (carloku-infrastructure scripts/fence-flat-imds.sh) exempts from |
| + // its IMDS drop — the `supervise` leaf setupAt moves us into. When it is, |
| + // the flat start's PID-move fallback (startAndMoveIn) must NOT run: it |
| + // starts the tenant in the agent's own cgroup and only then moves it, so |
| + // for the start-to-move window the tenant runs in the exempt leaf, reaches |
| + // IMDS, and can fork a grandchild that STAYS there after the move — a |
| + // persistent escape (hunt H1-M4 / the start-and-move race). With the fence |
| + // active there is no race-free way to keep an unplaced tenant out of the |
| + // exempt leaf, so such a start fails closed. The shim, which places the |
| + // child before any of its code runs, stays the only path a flat tenant |
| + // starts through. Set in the production setup() from CARLOS_IMDS_FLAT_FENCE |
| + // (the box sets it when the fence is deployed); false on an un-fenced box |
| + // and in tests, where the window exposes no exempt leaf and the fallback |
| + // keeps its Ruling 2 behaviour. |
| + fencedSpawn bool |
| // locks holds each host's start lock (hostLock), made on first use. |
| locksMu sync.Mutex |
| locks map[string]*sync.Mutex |
| @@ -240,6 +256,16 @@ func setup(logf func(string, ...any), retain bool) *Manager { |
| logf("agent: exec-child accounting disabled (no delegated subtree — unit file without Delegate=?): %v", err) |
| return nil |
| } |
| + // When the box has the flat-tier IMDS fence deployed (fence-flat-imds.sh), |
| + // it sets CARLOS_IMDS_FLAT_FENCE on carlos-edge.service so the agent knows |
| + // its own `supervise` leaf is IMDS-exempt. A flat start that cannot be |
| + // placed by the shim then fails closed rather than running a tenant in that |
| + // exempt leaf through the PID-move fallback (H1-M4). Un-fenced boxes leave |
| + // it unset and keep the fallback's Ruling 2 behaviour. |
| + if os.Getenv("CARLOS_IMDS_FLAT_FENCE") != "" { |
| + m.fencedSpawn = true |
| + logf("agent: flat-tier IMDS fence active — a flat start the shim cannot place fails closed (H1-M4)") |
| + } |
| logf("agent: exec-child accounting armed (delegated subtree %s)", m.Root()) |
| return m |
| } |
| @@ -333,6 +359,14 @@ func (m *Manager) sweepStale() { |
| // child at once, so nothing is started. |
| var ErrKilledCgroupKept = errors.New("cgroup: a cgroup that took cgroup.kill could not be made fresh before a spawn") |
| +// ErrIMDSFenceFailClosed is a flat start refused because the shim could not |
| +// place the child in its own (IMDS-dropped) cgroup before exec and the agent |
| +// runs in a cgroup the IMDS fence exempts (fencedSpawn): the PID-move fallback |
| +// would run the tenant in that exempt `supervise` leaf for the start-to-move |
| +// window, where it reaches IMDS and can leave a grandchild behind (H1-M4). The |
| +// start is refused rather than run through the exempt leaf: fail closed. |
| +var ErrIMDSFenceFailClosed = errors.New("cgroup: flat start refused: the IMDS fence is active and the child could not be placed before exec, so the start-and-move fallback would run it in the agent's IMDS-exempt cgroup (H1-M4)") |
| + |
| // startCmd is the package's one spawn seam: every exec.Cmd.Start, the |
| // shim's own included, goes through it, so a test can fake a start without |
| // a process. |
| @@ -511,6 +545,9 @@ func (m *Manager) startIn(host, dir string, limit Limit, required bool, build fu |
| return nil, fmt.Errorf("%w: %s: %w", ErrLimitNotApplied, filepath.Base(dir), err) |
| } |
| if !required && !shimAvailable() { |
| + if m.fencedSpawn { |
| + return nil, m.refuseFencedFlatStart(host, dir, nil) |
| + } |
| cmd, _, err := m.startAndMoveIn(host, dir, build, before) |
| return cmd, err |
| } |
| @@ -546,7 +583,14 @@ func (m *Manager) startIn(host, dir string, limit Limit, required bool, build fu |
| return nil, fmt.Errorf("%w: %s: %w", ErrLimitNotApplied, host, err) |
| } |
| // The flat start alone, after a placement failure the shim proved |
| - // happened before exec. |
| + // happened before exec. With the IMDS fence active the PID-move fallback |
| + // would run the tenant in the agent's exempt `supervise` leaf for the |
| + // start-to-move window, so it fails closed instead (H1-M4): the shim is |
| + // the only path a flat tenant runs through, and it never runs tenant code |
| + // outside the IMDS-dropped target cgroup. |
| + if m.fencedSpawn { |
| + return nil, m.refuseFencedFlatStart(host, dir, err) |
| + } |
| m.logf("cgroup: %s: placement before exec failed (%v) — using the PID-move fallback for this spawn", host, err) |
| cmd, _, err = m.startAndMoveIn(host, dir, build, before) |
| return cmd, err |
| @@ -681,6 +725,23 @@ func (m *Manager) applyLimit(host, dir string, limit Limit, required bool) error |
| return first |
| } |
| +// refuseFencedFlatStart answers a flat start the shim could not place while |
| +// the IMDS fence is active (fencedSpawn): the PID-move fallback is not run, so |
| +// no tenant runs in the agent's exempt `supervise` leaf (H1-M4). The dir this |
| +// spawn made is removed, as every other refused start removes its own, so the |
| +// sampler never reports a ghost host. cause, when non-nil, is the placement |
| +// failure that would have triggered the fallback; it is logged, not wrapped |
| +// into the returned error, so a member reads one stable condition. |
| +func (m *Manager) refuseFencedFlatStart(host, dir string, cause error) error { |
| + _ = os.Remove(dir) |
| + if cause != nil { |
| + m.logf("cgroup: %s: placement before exec failed (%v) and the IMDS fence is active — flat start refused, not run through the exempt leaf (H1-M4)", host, cause) |
| + } else { |
| + m.logf("cgroup: %s: no placement shim in this process and the IMDS fence is active — flat start refused, not run through the exempt leaf (H1-M4)", host) |
| + } |
| + return fmt.Errorf("%w: %s", ErrIMDSFenceFailClosed, host) |
| +} |
| + |
| func (m *Manager) startAndMove(host string, build func() *exec.Cmd) (*exec.Cmd, error) { |
| cmd, _, err := m.startAndMoveIn(host, m.hostDir(host), build, nil) |
| return cmd, err |
diff --git a/internal/cgroup/cgroup_test.go b/internal/cgroup/cgroup_test.go| index 5511c202a..11ee4812b 100644 |
| --- a/internal/cgroup/cgroup_test.go |
| +++ b/internal/cgroup/cgroup_test.go |
| @@ -171,6 +171,71 @@ func fakeStart(t *testing.T, fail func(cmd *exec.Cmd) error) *[]*exec.Cmd { |
| func buildTrue() *exec.Cmd { return exec.Command("/bin/true") } |
| +// TestHunt_H1_M4_FenceFailsClosedOutsideSupervise pins the fail-closed |
| +// invariant for the flat start's PID-move fallback. When the agent runs in a |
| +// cgroup the flat-tier IMDS fence exempts (fencedSpawn — the `supervise` leaf, |
| +// per fence-flat-imds.sh), a flat start the shim could not place before exec |
| +// must NOT fall back to start-and-move: that fallback starts the tenant in the |
| +// agent's own (exempt) cgroup and only then moves it, so for the window the |
| +// tenant runs where IMDS is reachable and can leave a grandchild behind that |
| +// stays there after the move (hunt H1-M4). The start fails closed: nothing |
| +// runs, the host dir is removed, and the caller gets ErrIMDSFenceFailClosed. |
| +// The child is never the mover — it never runs through the exempt leaf at all. |
| +// |
| +// The control half shows the fallback is unchanged on an un-fenced box |
| +// (fencedSpawn false): the window exposes no exempt leaf there, so Ruling 2's |
| +// PID-move fallback still runs. The full end-to-end proof (a real tenant held |
| +// out of IMDS) needs a box with the fence and a delegated cgroup subtree; this |
| +// asserts the pure start-path decision a unit binary can reach. |
| +func TestHunt_H1_M4_FenceFailsClosedOutsideSupervise(t *testing.T) { |
| + root := newDelegatedRoot(t) |
| + m, err := SetupAt(root, t.Logf) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + quietOOM(t) |
| + // The shim placed the child and before agreed, then the shim died before |
| + // exec: the real flat start would reach its PID-move fallback here. |
| + placementFailed := &placementError{errors.New("the shim exited before exec")} |
| + stubPlacement(t, func(_ *Manager, _ string, _ *exec.Cmd, before func() error) (bool, error) { |
| + if before != nil { |
| + if err := before(); err != nil { |
| + return true, err |
| + } |
| + } |
| + return false, placementFailed |
| + }) |
| + calls := fakeStart(t, func(*exec.Cmd) error { return nil }) |
| + |
| + // Fenced: the fallback would run the tenant in the exempt leaf, so the |
| + // start fails closed and nothing runs. |
| + m.fencedSpawn = true |
| + cmd, err := m.Start("fenced.example.com", Limit{}, buildTrue) |
| + if cmd != nil || !errors.Is(err, ErrIMDSFenceFailClosed) { |
| + t.Fatalf("fenced Start = %v, %v; want no command and ErrIMDSFenceFailClosed", cmd, err) |
| + } |
| + if errors.Is(err, placementFailed) || isPlacementError(err) { |
| + t.Fatalf("the fenced refusal %v leaks the placement failure", err) |
| + } |
| + if len(*calls) != 0 { |
| + t.Fatalf("fenced start ran the command %d times; a fenced fallback must run nothing", len(*calls)) |
| + } |
| + if _, statErr := os.Stat(m.hostDir("fenced.example.com")); !os.IsNotExist(statErr) { |
| + t.Fatalf("host dir after a fenced refusal: %v, want it removed (no ghost host)", statErr) |
| + } |
| + |
| + // Un-fenced control: the same placement failure still falls back to the |
| + // PID-move start (Ruling 2), so an un-fenced box is not regressed. |
| + m.fencedSpawn = false |
| + cmd, err = m.Start("open.example.com", Limit{}, buildTrue) |
| + if cmd == nil || err != nil { |
| + t.Fatalf("un-fenced Start = %v, %v; want the PID-move fallback to start the command", cmd, err) |
| + } |
| + if got := readFixture(t, filepath.Join(m.hostDir("open.example.com"), "cgroup.procs")); got != strconv.Itoa(os.Getpid()) { |
| + t.Fatalf("un-fenced cgroup.procs = %q, want the child's PID moved in", got) |
| + } |
| +} |
| + |
| // TestStartNilManagerSpawnsPlainly: the nil manager is the no-delegation |
| // state — one plain start, no SysProcAttr, no filesystem writes. |
| func TestStartNilManagerSpawnsPlainly(t *testing.T) { |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 12139d02e..f35c8e021 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -29,3 +29,4 @@ plan14-root-reads-static-sweep-new.tsv 5f9f8435788e8bdaa965e1dc68cfccd5264b2b212 |
| plan14-root-reads-static-sweep.tsv 5f9f8435788e8bdaa965e1dc68cfccd5264b2b2121366ec73004b9ca3cb48ecb |
| plan14-root-reads-edge-asset-cache-1-decisions.tsv 018230518ae9b9b3e8df2f651354f3955076046c15197838ae6a8a6903ab0250 |
| plan14-root-reads-edge-asset-cache-1.tsv 1199c91ebbfb03869e89d06798176598526e818d28c3032da070b1d4a4532b84 |
| +plan14-root-reads-hunt-account-root-hardening.tsv ed721c45bf1af12467439061137d8c7a0757bc5ca1c921616ff42d5a7672d743 |
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 |