Repository navigation
Commit d4e3744
authored
Harden ECS task definition for Security Hub compliance (#43)
## Summary
- **ECS.5 (HIGH)**: Add `readonlyRootFilesystem = true` to container
definition + ephemeral `/tmp` volume mount so apps can still write temp
files
- **ECS.20 (MEDIUM)**: Add `user = "1000"` default (non-root) — apps can
override via `compute.user` in app.yaml
- Wire `container_user` through the module registry for expander support
Triggered by Security Hub alerts on `platform-test-app:6` and `:7`.
## Test plan
- [ ] Merge to main
- [ ] Push trigger commit to platform-test-app — expand will regenerate
service.tf with hardened defaults
- [ ] Verify new task definition revision has `readonlyRootFilesystem:
true`, `/tmp` mount, and `user: "1000"`
- [ ] Verify Security Hub finding resolves within ~24h1 parent 9623810 commit d4e3744
3 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
0 commit comments