Skip to content

Commit 00421fe

Browse files
authored
chore: Limit ingress and egress traffic (#65)
* chore: limit ingress and egress traffic * chore: remove http egress rule
1 parent d950902 commit 00421fe

File tree

6 files changed

+25
-16
lines changed

6 files changed

+25
-16
lines changed

examples-internal/organizational-k8s-threat-reuse_cloudtrail_s3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Notice that:
8181

8282
| Name | Version |
8383
|------|---------|
84-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.0.0 |
84+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.1.0 |
8585
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.4.1 |
8686

8787
## Modules

examples/organizational/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Notice that:
8181

8282
| Name | Version |
8383
|------|---------|
84-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.0.0 |
85-
| <a name="provider_aws.member"></a> [aws.member](#provider\_aws.member) | 4.0.0 |
84+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.1.0 |
85+
| <a name="provider_aws.member"></a> [aws.member](#provider\_aws.member) | 4.1.0 |
8686

8787
## Modules
8888

examples/single-account-k8s/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Notice that:
7272

7373
| Name | Version |
7474
|------|---------|
75-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.0.0 |
75+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.1.0 |
7676
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.4.1 |
7777

7878
## Modules

examples/trigger-events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Notice that:
4747

4848
| Name | Version |
4949
|------|---------|
50-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.0.0 |
50+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.1.0 |
5151

5252
## Modules
5353

modules/services/cloud-connector/sec-group.tf

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,28 @@ resource "aws_security_group" "sg" {
44

55
vpc_id = var.ecs_vpc_id
66

7-
# allow all (protocol -1, from 0, to 0)
8-
# ingress {
9-
# from_port = 0
10-
# protocol = "-1"
11-
# to_port = 0
12-
# cidr_blocks = ["0.0.0.0/0"]
13-
# }
7+
# Allow outbound DNS traffic over UDP and TCP
8+
# Used by the ECS task to retrieve secrets from SSM
9+
egress {
10+
from_port = 53
11+
protocol = "udp"
12+
to_port = 53
13+
cidr_blocks = ["0.0.0.0/0"]
14+
}
15+
16+
egress {
17+
from_port = 53
18+
protocol = "tcp"
19+
to_port = 53
20+
cidr_blocks = ["0.0.0.0/0"]
21+
}
1422

15-
# allow all
23+
# Allow outbound HTTPS traffic over TCP
24+
# Used by Cloud Connector to send events to https://secure.sysdig.com
1625
egress {
17-
from_port = 0
18-
protocol = "-1"
19-
to_port = 0
26+
from_port = 443
27+
protocol = "tcp"
28+
to_port = 443
2029
cidr_blocks = ["0.0.0.0/0"]
2130
}
2231

0 commit comments

Comments
 (0)