carlos / platform Public

store write credential: writer STS statement in its own boundary local

Keeps the store statements' list literal the termination-proof tests pin;
both pins re-evaluated and re-pinned. Census re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 11384843d44f662ef2fbfbe76ac4a521ea647efa parent 04ddced
5 files changed, +39 −14
  • docs/superpowers/notes/census-proposal-store-write-credential.md +2 −2
  • infra/modules/region-host/main.tf +7 −3
  • internal/objstore/termination_credentials_test.go +25 −4
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-store-write-credential.tsv +4 −4

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-FPK6lo
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.74.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec

amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/notes/census-proposal-store-write-credential.md b/docs/superpowers/notes/census-proposal-store-write-credential.md
index 00bc5e5b9..38d6bcca3 100644
--- a/docs/superpowers/notes/census-proposal-store-write-credential.md
+++ b/docs/superpowers/notes/census-proposal-store-write-credential.md
@@ -5,7 +5,7 @@ Ruling `census-ruling-store-write-credential`. The independent reviewer approves
| unit | change | read sites | what changed |
|---|---|---|---|
| `infra/modules/deployment-buckets/main.tf` `external` | body | unchanged (1) | the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file |
-| `infra/modules/region-host/main.tf` `external` | body | unchanged (1) | store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file |
+| `infra/modules/region-host/main.tf` `external` | body | unchanged (1) | store_write_credentials (default false): the store user boundary gains the multipart pair (as with store_conversion) and, from a new local store_writer_boundary_statements concatenated only when the switch is on, sts:GetFederationToken on federated-user/carlos-write-* in this account; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file |
| `infra/modules/region-host/variables.tf` `external` | body | unchanged (1) | new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read |
| `internal/release/adopt.go` `adoptHost` | sites | +whole:Route | one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback |
@@ -29,6 +29,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/release/consolefloor.go:fileContains`: reads +file:OpenFile, +file:Read; written legacy, accepted-legacy, frozen
- new `store_credential.go:runStoreCredential`: reads +file:Access; written legacy, accepted-legacy, frozen
-Seal: `892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd` → `9e36d3d53d453d26c24e1b0b7ea55ae676a121d5f94f45369332aaf856604fa3`.
+Seal: `892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd` → `74357bd66b1d958ec432b7d5b16435399827e7c7332789d2ec113c098807a701`.
Overlay: `internal/provision/testdata/plan14-root-reads-store-write-credential.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 9976bbcd1..f33f3babc 100644
--- a/infra/modules/region-host/main.tf
+++ b/infra/modules/region-host/main.tf
@@ -839,7 +839,7 @@ data "aws_caller_identity" "current" {}
# two multipart actions their inline policy already asks for, on their own
# bucket. With the switch off the document renders exactly as before.
locals {
- store_boundary_statements = concat([
+ store_boundary_statements = [
{
Effect = "Allow"
Action = ["s3:ListBucket", "s3:GetBucketLocation"]
@@ -853,13 +853,16 @@ locals {
)
Resource = "arn:aws:s3:::${var.store_bucket_prefix}*/*"
},
- ], var.store_write_credentials ? [
+ ]
+ # What a store's writer user calls STS with: GetFederationToken for
+ # session names under carlos-write- in this account, nothing in S3.
+ store_writer_boundary_statements = [
{
Effect = "Allow"
Action = ["sts:GetFederationToken"]
Resource = "arn:aws:sts::${data.aws_caller_identity.current.account_id}:federated-user/carlos-write-*"
},
- ] : [])
+ ]
}
resource "aws_iam_policy" "store_user_boundary" {
@@ -870,6 +873,7 @@ resource "aws_iam_policy" "store_user_boundary" {
Version = "2012-10-17"
Statement = concat(
[for st in local.store_boundary_statements : st if var.store_bucket_prefix != ""],
+ [for st in local.store_writer_boundary_statements : st if var.store_bucket_prefix != "" && var.store_write_credentials],
[for st in local.managed_boundary_statements : st if var.managed_fleets_enabled],
)
})
diff --git a/internal/objstore/termination_credentials_test.go b/internal/objstore/termination_credentials_test.go
index 4b36b6657..7c209095e 100644
--- a/internal/objstore/termination_credentials_test.go
+++ b/internal/objstore/termination_credentials_test.go
@@ -10,6 +10,7 @@ import (
"slices"
"strings"
"testing"
+ "time"
)
func TestTerminationProofCredentials(t *testing.T) {
@@ -19,7 +20,14 @@ func TestTerminationProofCredentials(t *testing.T) {
const proof = "arn:aws:s3:::regional-data/control/terminations/v1/111122223333/eu-west-1/i-1123456789abcdef0/digest.json"
for _, deny := range []bool{false, true} {
var p policyDocument
- if err := json.Unmarshal([]byte(storePolicyJSON("arn:aws:s3:::tenant-store", nil, deny)), &p); err != nil {
+ // The store user's policy, and the writer's (writecred.go), which
+ // must not reach the proof either.
+ doc := storePolicyJSON("arn:aws:s3:::tenant-store", nil, deny)
+ if deny {
+ rb := time.Now()
+ doc = writerPolicyJSON("arn:aws:s3:::tenant-store", true, &WriteCredentials{RevokedBefore: &rb})
+ }
+ if err := json.Unmarshal([]byte(doc), &p); err != nil {
t.Fatal(err)
}
for _, op := range []string{"s3:PutObject", "s3:GetObject", "s3:DeleteObject", "s3:PutObjectTagging", "s3:AbortMultipartUpload", "s3:ListMultipartUploadParts"} {
@@ -58,9 +66,15 @@ func TestTerminationProofCredentials(t *testing.T) {
boundary := tf[start : start+end]
// The boundary is the store statements (with a store prefix) and the
// managed fleet statements (with managed fleets on), nothing else.
- if !strings.Contains(boundary, "Statement = concat(\n [for st in local.store_boundary_statements : st if var.store_bucket_prefix != \"\"],\n [for st in local.managed_boundary_statements : st if var.managed_fleets_enabled],\n )") {
+ if !strings.Contains(boundary, "Statement = concat(\n [for st in local.store_boundary_statements : st if var.store_bucket_prefix != \"\"],\n [for st in local.store_writer_boundary_statements : st if var.store_bucket_prefix != \"\" && var.store_write_credentials],\n [for st in local.managed_boundary_statements : st if var.managed_fleets_enabled],\n )") {
t.Fatal("store boundary changed; re-evaluate intersection")
}
+ // The writer's statements name STS session names only, never S3.
+ if got := boundaryResources(t, tf, " store_writer_boundary_statements = ["); !slices.Equal(got, []string{
+ `Resource = "arn:aws:sts::${data.aws_caller_identity.current.account_id}:federated-user/carlos-write-*"`,
+ }) {
+ t.Fatalf("store writer boundary changed; re-evaluate intersection: %q", got)
+ }
// Store statements stay bounded by store_bucket_prefix.
if got := boundaryResources(t, tf, " store_boundary_statements = ["); !slices.Equal(got, []string{
`Resource = "arn:aws:s3:::${var.store_bucket_prefix}*"`,
@@ -151,9 +165,16 @@ func boundaryResources(t *testing.T, tf, open string) []string {
// terminationBoundaryWant is each boundary-relevant block's digest, over its
// text with whitespace runs collapsed. Change one only after re-evaluating
// that no store, app or fleet credential reaches the termination proof.
+//
+// Re-pinned for store write credentials (2026-11-25): the store statements
+// add the multipart pair under store_write_credentials as well as
+// store_conversion (uploads in progress on the user's one bucket, as
+// before), and the boundary adds store_writer_boundary_statements, which
+// name STS session names only. A writer's inline policy names its store's
+// one bucket (TestTerminationProofCredentials checks it).
var terminationBoundaryWant = map[string]string{
- "store boundary policy": "0fd3b69dba6c26c85fc98947db4ecc879d13a39aba7eee318029a743d75b1c18",
- "store boundary statements": "3a34ff61746c2d6438a3e902c36c32dc33740b1f82b13cae35bb7ec43ca0f2bc",
+ "store boundary policy": "5890b09d2b1e0d408275006d94f6f98c819cf033dd9ef67d96098772fab14a6a",
+ "store boundary statements": "aebfa6af9d9d687802acaaa059e7cb4906001ff2f6f64d642a9d7d0812e4cabf",
"fleet boundary statements": "9f1f81aaff4e195096dae1b1c086d180071d43c76ef8750b684ea88da862b4c5",
"fleet bucket local": "2825c8094b6fb80aa0a25683134a22a5efb59a1a02227f528dba9a9ecdb15197",
"fleet object locals": "db659c3347257caaec610263af06c2126ce8a9b3e96f7c4e88ede9518a2ec6c7",
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index ea447a867..b82dcbe7b 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -291,4 +291,4 @@ plan14-root-reads-console-addr-from-install.tsv f273b5cb7bbf37b6dca4bb964a9293cb
plan14-root-reads-instance-ready-before-wake.tsv aa953b1a43009c8208e44c67f5b8127ae1914b15d8b8822bcf16b19a6abdf121
plan14-root-reads-media-results-cleanup.tsv 6921575b59564ed947e30c02e314dd429016c6c11a85db9b8af50b2f31d5a5db
plan14-root-reads-release-copy-across-consoles.tsv 892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd
-plan14-root-reads-store-write-credential.tsv 9e36d3d53d453d26c24e1b0b7ea55ae676a121d5f94f45369332aaf856604fa3
+plan14-root-reads-store-write-credential.tsv 74357bd66b1d958ec432b7d5b16435399827e7c7332789d2ec113c098807a701
diff --git a/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv b/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv
index 76df8ff99..319738f68 100644
--- a/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv
+++ b/internal/provision/testdata/plan14-root-reads-store-write-credential.tsv
@@ -2,7 +2,7 @@
# 3 body, 1 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
# 6 new dispositions: 0 reads re-frozen at their disposition with the claim, 6 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy 13dfbcb41e68de8d2b4f651334897b61ac66adaf0710083c3acf9b7515d62e6f infra/modules/deployment-buckets/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-db-region-forward-2;basis=the db-reads/ lifecycle rules (db region forward spec §5.7, J4): two rules beside geoip-noncurrent on the deployment bucket's lifecycle configuration, prepared and not applied until Paul approves docs/superpowers/notes/db-reads-lifecycle-approval.md; no read, no IAM change;rev3=census-ruling-data-lifecycle-336;basis=adds aws_s3_bucket_lifecycle_configuration "data" on the data bucket: noncurrent versions expire after var.data_noncurrent_days, expired delete markers go, multipart aborts after 7 days; no read, no IAM change;rev3=census-ruling-media-results-cleanup;basis=two lifecycle rules for media-results/ (media-results-expire: current objects after 1 day, noncurrent versions 1 day after they become noncurrent, multipart aborts after 1 day; media-results-delete-markers: expired delete markers) join the existing rules in aws_s3_bucket_lifecycle_configuration.deployment; comment only otherwise; existing rules unchanged; no read, no IAM change;rev3=census-ruling-store-write-credential;basis=the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 116bb6de926d8c3dacc7be19bdba0d9ce2d189ccc797a7b1629fbc7554bdddbc
-@legacy e6b14d89a83c25bd846ffb9b1bcd6c0959f6215a8b672c0b0975aa82fa31d76e 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;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 2ac2d1f1bf5dd99de1cae4a7b0cdb39197a5f69294704a00967b102a39da1784
+@legacy 8f8ed3bb00c7243c6ae97fda47f10d0a3a4c493f1c70329779003f97720e3278 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;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (as with store_conversion) and, from a new local store_writer_boundary_statements concatenated only when the switch is on, sts:GetFederationToken on federated-user/carlos-write-* in this account; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 a3a97fbdc1a3028abad4f4e3742a35ff546857c948187fa02479168b71f14928
@legacy 1f1833709eaf4e3b489ea4401c676a30c4d0e77cfd347b260b57f7cee5c00a88 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;rev3=census-ruling-region-ha-p3b;basis=Add default-fixed mode and validated group count, zones, pinned image/release/template, ingress, configuration key and transaction-open refusal. Operator-supplied Terraform values select root boot inputs; no direct box runtime read and no group activation by default.;rev3=census-ruling-region-ha-g2-fixes;basis=Add an empty-default set of additional alert topic ARNs, validating concrete SNS topic syntax and excluding wildcards/subscriptions; operator Terraform input, no box runtime read.;rev3=census-ruling-region-ha-g3-fixes;basis=Add optional alerts_topic_arn with concrete same-region SNS ARN validation and mutual exclusion with alerts_email. The caller owns the existing topic policy and subscriptions; no runtime sink is configured and no new root read is added.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: five variables, managed_fleets_enabled (bool, default false, refused unless mode is fixed), managed_fleets_deployment, managed_fleets_regions (concrete ami/subnet/sg IDs, arm64 types, no ID in two regions), managed_fleet_bucket_prefix (1-24 chars, no reserved prefix, must not cover the deployment, data or staging buckets, disjoint from store_bucket_prefix) and managed_fleet_user_path (literal IAM path, disjoint from store_user_path); store_bucket_prefix and store_user_path gain a validation refusing *, ? or ${ only when managed fleets and object storage are both on; operator Terraform input only; no box runtime read and nothing on a box reads the file;rev3=census-ruling-fixedbox-health-alarms;basis=Add optional health_alerts_topic_arn (concrete same-region SNS ARN validation, empty default); enable_auto_recovery description covers both status alarms. Operator Terraform input; no box runtime read.;rev3=census-ruling-w6-ingress-drain;basis=new variable ingress_target_group_arns (list(string), default [], non-nullable) validated as distinct ELB target group ARNs (arn:aws(-x)*:elasticloadbalancing:<region>:<12 digits>:targetgroup/<name>/<16 hex>); drives the IAM policy and output above. No read added.;rev3=census-ruling-stats-prune-400;basis=new variable enable_analytics_version_prune (bool, default false) driving the policy above; operator Terraform input; no box runtime read;rev3=census-ruling-platform-mail-submission;basis=Task 8: variable "mailer", an object {ses_region, ses_account_id, deployment_bucket_region, optional deployment_bucket_kms_key_arn} defaulting to null, which creates nothing; validated (AWS region shapes, 12-digit account, KMS ARN or empty).;rev3=census-ruling-media-conversion;basis=two variables: store_conversion (bool, default false) and managed_fleets_inline_retired (bool, default false, temporary); operator Terraform input only; no box runtime read. Copy pass 5 changes only the two descriptions' text.;rev3=census-ruling-store-versioning;basis=new variable store_versioning (bool, default false) driving the policy above; operator Terraform input only; no box runtime read. The copy pass (Astra round 1) changes only its description text;rev3=census-ruling-store-write-credential;basis=new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read file:external@0 af51c93eb1ae2141a0c5927a9452cc43fe66182c7259b8c9932ba46f4bd4240b
@legacy aace4deee2c73593077ba048b13271bc0fa46019e240db12873a12657a8b4f19 infra/modules/deployment-buckets/tests/console_floors.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8765496e4bd9445638e2b098be3082f509828b95f4c2122396e708cafa49122d
@legacy 48eed9554e09cf5e1f6a1b66af9fa562625cb19f6de33f0f26ad5ab10893e28e infra/modules/region-host/tests/store_write_credentials.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8437ce2ca6a69c86660a9f10116711c644cff3f381daa8d3b8bb8ae985906e90
@@ -11,7 +11,7 @@
@legacy 92ad48c91e8fa10e65a01acf672b6c3cc42db6f1ed0207dfb9e20c112d4d419e internal/release/consolefloor.go fileContains legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: reads the staged release file at a path adoptHost computes (VersionPath of the route's own account, version and app, the file D2 already parses with buildinfo) through safefile.OpenFile, read-only, in 1 MiB chunks, looking for a fixed byte string; returns a bool file:OpenFile@73,file:Read@259 09541764bc853a6d161835a4856313ef1d69f8877d1f31957783ecba137dee50
@legacy 00b78eff43839b3e66f005addf0d38fe1b8ed04713f8887232c599128e94ca86 store_credential.go runStoreCredential legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new CLI verb carlos store credential: flag parsing and console API calls as the invoking user; no root path file:Access@1714 9e34fb887f720eb7dce38984e7d2e2b41a8d8168ee1727fb40e88bebfd54a621
infra/modules/deployment-buckets/main.tf external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-db-region-forward-2;basis=the db-reads/ lifecycle rules (db region forward spec §5.7, J4): two rules beside geoip-noncurrent on the deployment bucket's lifecycle configuration, prepared and not applied until Paul approves docs/superpowers/notes/db-reads-lifecycle-approval.md; no read, no IAM change;rev3=census-ruling-data-lifecycle-336;basis=adds aws_s3_bucket_lifecycle_configuration "data" on the data bucket: noncurrent versions expire after var.data_noncurrent_days, expired delete markers go, multipart aborts after 7 days; no read, no IAM change;rev3=census-ruling-media-results-cleanup;basis=two lifecycle rules for media-results/ (media-results-expire: current objects after 1 day, noncurrent versions 1 day after they become noncurrent, multipart aborts after 1 day; media-results-delete-markers: expired delete markers) join the existing rules in aws_s3_bucket_lifecycle_configuration.deployment; comment only otherwise; existing rules unchanged; no read, no IAM change;rev3=census-ruling-store-write-credential;basis=the deployment bucket policy gains ConsoleFloorsAreCreateOnly (Deny s3:PutObject without If-None-Match) and ConsoleFloorsAreNeverDeleted (Deny s3:DeleteObject and s3:DeleteObjectVersion), both Principal * on control/console-floors/* only, the same shape as the box evidence statements; nothing wider is named. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 116bb6de926d8c3dacc7be19bdba0d9ce2d189ccc797a7b1629fbc7554bdddbc
-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;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (also with store_conversion) and sts:GetFederationToken on federated-user/carlos-write-* in this account when the switch is on; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 2ac2d1f1bf5dd99de1cae4a7b0cdb39197a5f69294704a00967b102a39da1784
+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;rev3=census-ruling-region-host-store-deny;basis=host_store policy: the explicit Deny on the deployment's own buckets drops s3:DeleteObject and keeps s3:DeleteBucket and s3:CreateBucket (lease release, retention and prune are DeleteObject); tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-region-ha-p3b;basis=Select default fixed resources through counted addresses and explicit moves; group mode selects scoped bucket/SSM policy, partition-aware ARNs and refuses fixed-only settings. Operator Terraform controls the instance role that can read boot parameters and write runtime bucket objects; release-key Deny and fixed-mode policy remain.;rev3=census-ruling-region-ha-g3-fixes;basis=Enable the fixed-host memory alarm with either alert input and use the selected topic for alarm and recovery notifications. Preserve module topic/subscription creation for alerts_email only. No new root runtime read or box authority.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: aws_iam_policy.store_user_boundary is now counted when store_bucket_prefix is set or managed_fleets_enabled is true; its statements are concat of the unchanged object-storage pair (only with a store prefix, moved into local.store_boundary_statements byte for byte) and local.managed_boundary_statements (only with managed fleets: the fleet-data Allows on <managed_fleet_bucket_prefix>* buckets); name unchanged, description conditional on store prefix with lifecycle ignore_changes on description so a later feature switch never replaces the policy; tofu only, run on an operator's machine with the operator's AWS credentials; no box unit, user_data or binary reads the file; no read is added; default (both features off) plans no change;rev3=census-ruling-fixedbox-health-alarms;basis=Fixed host EC2 status-check alarms: auto-recover gains SNS alarm/ok actions (ec2:recover kept); new host_instance_check alarm (StatusCheckFailed_Instance 3 of 3 x 60 s -> ec2:reboot + SNS). tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-fixed-host-ignore-user-data;basis=aws_instance.host lifecycle ignore_changes gains user_data (was [ami]): a user_data edit no longer plans an in-place update (stop/start) of a live fixed host; a new box still boots with the given script. tofu only, run on an operator machine; no read is added and nothing on a box reads the file.;rev3=census-ruling-w6-ingress-drain;basis=new aws_iam_role_policy.host_ingress_drain, count 1 only in fixed mode with ingress_target_group_arns non-empty: Allow elasticloadbalancing:DescribeTargetGroupAttributes and elasticloadbalancing:DescribeTargetHealth on Resource "*" (neither action takes a resource type). Read-only; no ELB write right. aws_iam_role.host's group-mode precondition gains length(var.ingress_target_group_arns) == 0, so group mode refuses the input. New AWS read right for the box role (the agent's drain reads); nothing a tenant or app can name.;rev3=census-ruling-stats-prune-400;basis=new aws_iam_role_policy for the console host role, count 1 only when enable_analytics_version_prune is true (default false, refused in group mode): s3:ListBucketVersions on the deployment bucket conditioned on s3:prefix apps/*, and s3:DeleteObjectVersion on deployment_bucket_arn/apps/*/*/analytics/*/days/* only; existing grants and denies unchanged; tofu only, run on an operator machine; no read is added and nothing on a box reads the file;rev3=census-ruling-media-conversion;basis=store_conversion (bool, default false) adds the customer-managed policy host_store_conversion attached to the host role: nine bucket-configuration actions (Get/PutBucketCORS, Get/PutLifecycleConfiguration, Get/PutBucketTagging, GetBucketPolicy, GetEncryptionConfiguration, GetBucketVersioning) on arn:aws:s3:::<store_bucket_prefix>* only, with an explicit Deny of the three writes on the deployment and data buckets; preconditions refuse it unless the prefix is a dedicated literal lower-case prefix ending in -store-, no deployment, data or sibling staging bucket starts with it, and it does not overlap a configured fleet prefix whatever managed_fleets_enabled says. The store user boundary gains s3:AbortMultipartUpload and s3:ListMultipartUploadParts only when the switch is on (off renders byte for byte as before). host_analytics_prune moves from inline to a customer-managed attached policy with identical statements and switch. Default plans no change apart from that policy's type.;rev3=census-ruling-store-versioning;basis=store_versioning (bool, default false) adds the customer-managed policy host_store_versioning attached to the host role: s3:GetBucketVersioning, PutBucketVersioning, GetLifecycleConfiguration, PutLifecycleConfiguration and ListBucketVersions on arn:aws:s3:::<store_bucket_prefix>*, and s3:DeleteObjectVersion, GetObjectVersion and PutObject on arn:aws:s3:::<store_bucket_prefix>*/*, with an explicit Deny of PutBucketVersioning and PutLifecycleConfiguration on the deployment and data buckets; the same four dedicated-prefix preconditions as store_conversion (prefix set, literal lower-case ending in -store-, no deployment, data or sibling staging bucket under it, no overlap with managed_fleet_bucket_prefix). The store user boundary does not change. Default plans no change. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. The console never suspends a bucket (no off, Astra round 1); s3:PutBucketVersioning stays because enabling needs it;rev3=census-ruling-store-write-credential;basis=store_write_credentials (default false): the store user boundary gains the multipart pair (as with store_conversion) and, from a new local store_writer_boundary_statements concatenated only when the switch is on, sts:GetFederationToken on federated-user/carlos-write-* in this account; off renders byte for byte as before (tofu test off_by_default); aws_iam_role.host gains a precondition refusing the switch without store_bucket_prefix. tofu only, run on an operator machine; no read is added and nothing on a box reads the file file:external@0 a3a97fbdc1a3028abad4f4e3742a35ff546857c948187fa02479168b71f14928
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;rev3=census-ruling-region-ha-p3b;basis=Add default-fixed mode and validated group count, zones, pinned image/release/template, ingress, configuration key and transaction-open refusal. Operator-supplied Terraform values select root boot inputs; no direct box runtime read and no group activation by default.;rev3=census-ruling-region-ha-g2-fixes;basis=Add an empty-default set of additional alert topic ARNs, validating concrete SNS topic syntax and excluding wildcards/subscriptions; operator Terraform input, no box runtime read.;rev3=census-ruling-region-ha-g3-fixes;basis=Add optional alerts_topic_arn with concrete same-region SNS ARN validation and mutual exclusion with alerts_email. The caller owns the existing topic policy and subscriptions; no runtime sink is configured and no new root read is added.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 5: five variables, managed_fleets_enabled (bool, default false, refused unless mode is fixed), managed_fleets_deployment, managed_fleets_regions (concrete ami/subnet/sg IDs, arm64 types, no ID in two regions), managed_fleet_bucket_prefix (1-24 chars, no reserved prefix, must not cover the deployment, data or staging buckets, disjoint from store_bucket_prefix) and managed_fleet_user_path (literal IAM path, disjoint from store_user_path); store_bucket_prefix and store_user_path gain a validation refusing *, ? or ${ only when managed fleets and object storage are both on; operator Terraform input only; no box runtime read and nothing on a box reads the file;rev3=census-ruling-fixedbox-health-alarms;basis=Add optional health_alerts_topic_arn (concrete same-region SNS ARN validation, empty default); enable_auto_recovery description covers both status alarms. Operator Terraform input; no box runtime read.;rev3=census-ruling-w6-ingress-drain;basis=new variable ingress_target_group_arns (list(string), default [], non-nullable) validated as distinct ELB target group ARNs (arn:aws(-x)*:elasticloadbalancing:<region>:<12 digits>:targetgroup/<name>/<16 hex>); drives the IAM policy and output above. No read added.;rev3=census-ruling-stats-prune-400;basis=new variable enable_analytics_version_prune (bool, default false) driving the policy above; operator Terraform input; no box runtime read;rev3=census-ruling-platform-mail-submission;basis=Task 8: variable "mailer", an object {ses_region, ses_account_id, deployment_bucket_region, optional deployment_bucket_kms_key_arn} defaulting to null, which creates nothing; validated (AWS region shapes, 12-digit account, KMS ARN or empty).;rev3=census-ruling-media-conversion;basis=two variables: store_conversion (bool, default false) and managed_fleets_inline_retired (bool, default false, temporary); operator Terraform input only; no box runtime read. Copy pass 5 changes only the two descriptions' text.;rev3=census-ruling-store-versioning;basis=new variable store_versioning (bool, default false) driving the policy above; operator Terraform input only; no box runtime read. The copy pass (Astra round 1) changes only its description text;rev3=census-ruling-store-write-credential;basis=new variable store_write_credentials (bool, default false) driving the boundary statements above; operator Terraform input only; no box runtime read file:external@0 af51c93eb1ae2141a0c5927a9452cc43fe66182c7259b8c9932ba46f4bd4240b
infra/modules/deployment-buckets/tests/console_floors.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8765496e4bd9445638e2b098be3082f509828b95f4c2122396e708cafa49122d
infra/modules/region-host/tests/store_write_credentials.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new plan-time tofu test, mock provider only; read by tofu test, never by a box file:external@0 8437ce2ca6a69c86660a9f10116711c644cff3f381daa8d3b8bb8ae985906e90
@@ -23,7 +23,7 @@ internal/release/adopt.go adoptHost authority B3,E1,E2,E3,E4,J1 E16: root first-
@coverage . 4d9d53df9674b8f40239842aa51df4c0e63f0d517f4dc2b03224e590714124e4
@coverage infra/modules/deployment-buckets e5df5b86a4159e619f4eaee9bc9c6aceff76aaaa88ef5f293cea2e4ffa709ebe
@coverage infra/modules/deployment-buckets/tests e6d44047919b2a4b78077285eb8d84c8adecb2bbfdbbf80c9f5b71fe20366707
-@coverage infra/modules/region-host 31d9c2cda1bcf84a0492b682d9b181e92da4d7508e4011ffc11b4241b08ca622
+@coverage infra/modules/region-host 2bd66c25e5b80fc04a76c83f841f6ebd2c62a30e6e462bdd8ddb8f3f3bc235f9
@coverage infra/modules/region-host/tests a3c3b3f0a056857f2f94588421f3cab3dd2c3088913bdecdc9838b0b3fc87e38
-@coverage internal/objstore 1e3c85d573a900e6efbb08cf447fd878d63ba0b9979f0994d1527a0350984c3f
+@coverage internal/objstore 54fca318961d778c64a24b828dfd2922d0358c832fdc7c0451267a57ec6aeaf4
@coverage internal/release b137c5530137d70b492cf7dff768cfd7a1ca3523f3d9a28919e52f59e6d83c8a