Protect platform security groups in permission boundary#81
Merged
Conversation
Add DenyPlatformSecurityGroups to the developer boundary: denies modify/delete on SGs named javabin-* (platform ALB and ECS tasks SGs). Teams can still create their own SGs (needed for RDS module).
Terraform Plan🚧 Changes detected — Plan: 0 to add, 1 to change, 0 to destroy. Plan outputLLM ReviewRisk: 🟢 LOW Adding security group modification restrictions to the developer boundary policy to prevent unauthorized changes to platform security groups.
|
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary Adds `DenyPlatformSecurityGroups` to the developer permission boundary. Denies modify/delete operations on security groups named `javabin-*` (platform ALB and ECS tasks SGs). Teams can still create their own SGs (needed for RDS module — e.g., `moresleep-rds-sg`). Addresses security review finding from #77: SG operations were removed from the team deny policy to support RDS. The boundary now protects platform SGs while allowing team SG creation. ## Test plan - [ ] `terraform plan` shows boundary policy update - [ ] Apply succeeds - [ ] Team role cannot modify `javabin-alb-sg` or `javabin-ecs-tasks-sg` - [ ] Team role can create `{app}-rds-sg` via expanded TF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
DenyPlatformSecurityGroupsto the developer permission boundary. Denies modify/delete operations on security groups namedjavabin-*(platform ALB and ECS tasks SGs).Teams can still create their own SGs (needed for RDS module — e.g.,
moresleep-rds-sg).Addresses security review finding from #77: SG operations were removed from the team deny policy to support RDS. The boundary now protects platform SGs while allowing team SG creation.
Test plan
terraform planshows boundary policy updatejavabin-alb-sgorjavabin-ecs-tasks-sg{app}-rds-sgvia expanded TF