| new file mode 100644 |
| index 000000000..c2d8d2fcd |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-media-spike-fixes.tsv |
| @@ -0,0 +1,10 @@ |
| +# Census overlay media-spike-fixes, written by census-propose (#369). census-ruling-media-spike-fixes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-media-spike-fixes.md. |
| +# 3 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy 41747126228463910b4587d9096f6b67dc47232c699b06649eec5b758144ac71 infra/modules/media-engine/ecs.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: Fargate-only cluster and four task definitions (deadline + codec containers, entryPoint /usr/local/bin/carlos-media, read-only root, user 65534, caps dropped, no task role, image by digest) created only once image_digest is set, with skip_destroy so a rollout keeps the revisions a running console uses.;rev3=census-ruling-media-spike-fixes;basis=engine_container writes the lists ECS answers empty: linuxParameters.capabilities gains add = [] (drop = ["ALL"] kept), and environment, mountPoints, portMappings, systemControls, volumesFrom = [] (codec still overrides environment with TMPDIR and mountPoints with scratch); so the plan after an apply no longer replaces the four definitions. No capability, mount, port, sysctl or volume is granted; skip_destroy, user, read-only root, entryPoint, image by digest and no task role unchanged. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6bf86142ae5301bdaaffc1271fd3f0efe87018e680b295f4b608334c91e600a1 |
| +@legacy 5f7df5014a50ad33c6c67f9bc7259ee0ec854502f5f83a1cc1eec49617e698c2 infra/modules/media-engine/network.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: a VPC with two private subnets, no internet gateway, NAT or default route; a tasks security group with no ingress and HTTPS egress only to the S3 prefix list and the endpoints; S3 gateway and ECR/logs interface endpoints with principal-scoped policies; a Route 53 Resolver DNS firewall allowing only the S3, ECR and logs names (TRUST_REDIRECTION_DOMAIN on that ALLOW only) and blocking the rest with NXDOMAIN, fail-closed; the drill input changes only the four endpoint policies and the repository policy.;rev3=census-ruling-media-spike-fixes;basis=DNS Firewall domain names written fully qualified (trailing dot), the form DNS Firewall stores and lists, so plans stop rewriting both lists: the allow list is the same five names (s3, *.s3, api.ecr, *.dkr.ecr, logs in the region) and the block list is "*." (was "*"), still BLOCK NXDOMAIN at priority 200, fail-closed. No name added. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6403d7d0f3f015f8ca13f7c8d62af35cba48a3280a71b6501ab81c3afd6c65b5 |
| +@legacy fcd93de8b67480ea70617882f0af30027f8d340fcd95569b232fb8d27d92ed5c infra/modules/media-engine/tests/media_engine.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new OpenTofu tests (24 runs: 9 plan and 15 apply, all against mock_provider aws, so no AWS access): task definitions pass the gate's shape, endpoint, role, console, reaper and DNS policies exact, no default route, drill states, output parses. The archive provider is real and writes the reaper's ZIP to a local path during the test.;rev3=census-ruling-media-spike-fixes;basis=assertions follow the module: capabilities must equal {add = [], drop = ["ALL"]}; deadline mountPoints and environment, and every volumesFrom, portMappings, systemControls must be empty (was: absent); new asserts that every list ECS fills in is written and that every DNS Firewall name is fully qualified; domain lists expected with trailing dots. Mock provider only, no AWS access; no read is added. file:external@0 78a725258167c21f2a5a9526bc18fdbd33d9ce84fdd8f4346cc53aefc9abe0fd |
| +infra/modules/media-engine/ecs.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: Fargate-only cluster and four task definitions (deadline + codec containers, entryPoint /usr/local/bin/carlos-media, read-only root, user 65534, caps dropped, no task role, image by digest) created only once image_digest is set, with skip_destroy so a rollout keeps the revisions a running console uses.;rev3=census-ruling-media-spike-fixes;basis=engine_container writes the lists ECS answers empty: linuxParameters.capabilities gains add = [] (drop = ["ALL"] kept), and environment, mountPoints, portMappings, systemControls, volumesFrom = [] (codec still overrides environment with TMPDIR and mountPoints with scratch); so the plan after an apply no longer replaces the four definitions. No capability, mount, port, sysctl or volume is granted; skip_destroy, user, read-only root, entryPoint, image by digest and no task role unchanged. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6bf86142ae5301bdaaffc1271fd3f0efe87018e680b295f4b608334c91e600a1 |
| +infra/modules/media-engine/network.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new: a VPC with two private subnets, no internet gateway, NAT or default route; a tasks security group with no ingress and HTTPS egress only to the S3 prefix list and the endpoints; S3 gateway and ECR/logs interface endpoints with principal-scoped policies; a Route 53 Resolver DNS firewall allowing only the S3, ECR and logs names (TRUST_REDIRECTION_DOMAIN on that ALLOW only) and blocking the rest with NXDOMAIN, fail-closed; the drill input changes only the four endpoint policies and the repository policy.;rev3=census-ruling-media-spike-fixes;basis=DNS Firewall domain names written fully qualified (trailing dot), the form DNS Firewall stores and lists, so plans stop rewriting both lists: the allow list is the same five names (s3, *.s3, api.ecr, *.dkr.ecr, logs in the region) and the block list is "*." (was "*"), still BLOCK NXDOMAIN at priority 200, fail-closed. No name added. Tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 6403d7d0f3f015f8ca13f7c8d62af35cba48a3280a71b6501ab81c3afd6c65b5 |
| +infra/modules/media-engine/tests/media_engine.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-media-conversion;basis=new OpenTofu tests (24 runs: 9 plan and 15 apply, all against mock_provider aws, so no AWS access): task definitions pass the gate's shape, endpoint, role, console, reaper and DNS policies exact, no default route, drill states, output parses. The archive provider is real and writes the reaper's ZIP to a local path during the test.;rev3=census-ruling-media-spike-fixes;basis=assertions follow the module: capabilities must equal {add = [], drop = ["ALL"]}; deadline mountPoints and environment, and every volumesFrom, portMappings, systemControls must be empty (was: absent); new asserts that every list ECS fills in is written and that every DNS Firewall name is fully qualified; domain lists expected with trailing dots. Mock provider only, no AWS access; no read is added. file:external@0 78a725258167c21f2a5a9526bc18fdbd33d9ce84fdd8f4346cc53aefc9abe0fd |
| +@coverage infra/modules/media-engine 2454234a6dd982bdd258b4d2743a1ec6698cc569f9680e0748869f1728ac60b4 |
| +@coverage infra/modules/media-engine/tests 2c83fdf5bdb50448bd7524c523472a3f49ac4c7a3f7263b03fd17cc7f392ead9 |