Skip to content

Controller cfg for backend sg rule management #3266

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

Conversation

nakamume
Copy link
Contributor

Issue

#3265

Description

This PR introduces a controller config flag called ManageBackendSGRules. If the config is true (default) - controller behaves as before. If the config is false - controller wont manage the backend SG rules for both ingresses and services. Rules would still be created for controller managed frontend SGs for ingresses.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the docs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 30, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @nakamume!

It looks like this is your first PR to kubernetes-sigs/aws-load-balancer-controller 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/aws-load-balancer-controller has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 30, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @nakamume. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jun 30, 2023
@k8s-ci-robot k8s-ci-robot requested review from kishorj and M00nF1sh June 30, 2023 10:22
@nakamume
Copy link
Contributor Author

nakamume commented Jul 4, 2023

@kishorj @M00nF1sh can I get some love ❤️ here?

@johngmyers
Copy link
Contributor

This looks like it interacts with #3277. It's possible that #2277 addresses this.

The interaction between --enable-backend-security-group and --manage-backend-sg-rules is unclear and confusing. The documentation is not at all clear.

@nakamume
Copy link
Contributor Author

This looks like it interacts with #3277. It's possible that #2277 addresses this.

Not sure how #2277 addresses this? Maybe wrong PR link? But #3277 seems to be going into the same direction except that it only covers the SG rules for ALBs(ingresses) and not NLBs (LB services).

The interaction between --enable-backend-security-group and --manage-backend-sg-rules is unclear and confusing.

Yes, I think it's a "bit". First is about weather a dedicated Security Group be created/used for backends and second is about rules for backend communication.

@johngmyers
Copy link
Contributor

Why would one create a managed security group if one isn't going to create rules? Which of the combinatorics make sense for which use cases?

@nakamume
Copy link
Contributor Author

I touched upon it in the issue desc #3265. Note that the feature BackendSGManagement is only for ingresses and doesn't cover the LB services.
With BackendSGManagement users can create (manually) or let controller create for them a single dedicated backend SG, this SG would be shared by all the ingresses in that cluster (ingresses managed by the LBC).
Then, they can either let the LBC control the rules for backends <- current/default behavior (unless users put an annotation not to do so) or manage the rules themselves <- disable rule management by the controller (feature added by this PR).

Even with manageBackendSG: false - controller creates the backend rules. BackendSG is just a single dedicated SG shared by all ingresses, without it controller creates a backend SG per ingress group.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 11, 2023
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nakamume nakamume closed this Dec 15, 2023
@nakamume nakamume deleted the controller-cfg-for-backend-sg-rule-management branch December 15, 2023 02:38
@nakamume nakamume restored the controller-cfg-for-backend-sg-rule-management branch February 14, 2024 03:13
@nakamume nakamume reopened this Feb 14, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nakamume
Once this PR has been reviewed and has the lgtm label, please assign oliviassss for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nakamume nakamume closed this Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants