| 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 |