aws / aws/aws-cdk

EKS: Default Control Plane Security Group Doesn't Create Ingress Rules

Open
#30,498 7 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-eks @aws-cdk/aws-eks-v2-alpha bug effort/small p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the bug

By default, an EKS `Cluster` does not create ingress rules for the security group applied to the control plane. This seems unintuitive as allowing inbound 443 from worker nodes feels like a sane default requirement for anything to work.

### Expected Behavior

An ingress rule allowing 443 inbound from the VPC or worker node security group or some warning emitted that the security group has not been configured with inbound access.

### Current Behavior

No ingress rule or warning emitted.

### Reproduction Steps

Just create an EKS cluster.

### Possible Solution

Automatically add an ingress rule or emit a warning during synth if the user has not created ingress.

### Additional Information/Context

_No response_

### CDK CLI Version

2.138.0

### Framework Version

_No response_

### Node.js Version

v20.9.0

### OS

darwin

### Language

.NET

### Language Version

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the EKS Cluster construct and synth the minimal reproduction described in the issue to inspect the generated control-plane security group. Compare the generated ingress behavior with the expected worker-node or VPC access, then determine whether the accepted outcome is an ingress rule or a synth warning. Done means the chosen behavior is implemented and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes, typescript
Domain
cloud, infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.