Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require inbound ECS traffic to originate from VPC #69

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

BrunoGrandePhD
Copy link
Contributor

@BrunoGrandePhD BrunoGrandePhD commented Oct 13, 2021

Currently, the ECS security group that's bound to the EC2 instances allows all traffic. This PR restricts that to traffic originating from the VPC, which includes the public load balancer that actually routes traffic to these instances.

Sadly, we cannot easily use the load balancer's security group because that would introduce a circular dependency in the CloudFormation stacks.

This was tested in nextflow-dev and confirmed to work gracefully. Only the inbound rule is replaced, not the entire security group.

@BrunoGrandePhD BrunoGrandePhD requested a review from a team as a code owner October 13, 2021 21:49
@BrunoGrandePhD BrunoGrandePhD merged commit 780e6d7 into main Oct 14, 2021
@BrunoGrandePhD BrunoGrandePhD deleted the bgrande/restrict-ecs-security-group branch October 14, 2021 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants