kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.93k stars 1.46k forks source link

AWS Load balancer controller deletes security group inbound rules and adds open to internet automatically #3012

Closed harsha20494 closed 1 year ago

harsha20494 commented 1 year ago

Describe the bug AWS Load balancer controller deletes security group inbound rules and adds open to internet automatically

Steps to reproduce

  1. Add inbound rules to ALB security group.
  2. Leave the setup for one month.

Expected outcome

  1. We observed the security rules that we added to ALB got removed from AWS load balancer controller user and open to internet got added automatically

Environment

M00nF1sh commented 1 year ago

@harsha20494 You should not manually modify the securityGroup created by ALB, the rules is automatically managed by the controller, every reconcile(e.g. when node changes) will bring it to the desired state controller expects. You can use annotation https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/ingress/annotations/#inbound-cidrs to customize the inbound CIDR to desired one.

Alternatively, you can use annotation(https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/ingress/annotations/#security-groups) to specify a security created by you if you want more flexibility.

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

oliviassss commented 1 year ago

@harsha20494, I'm closing this issue as for now, please feel free to reach out or reopen if you have any questions. Thanks