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

Support for acls with >255 IPs #180

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Support for acls with >255 IPs #180

merged 2 commits into from
Feb 29, 2024

Conversation

tchinmai7
Copy link
Contributor

General:

Adds support for firewall ACL with >255IPs, building intelligence into the ccm to break it up into chunks of ips.
Implemented an ip-split mechanism. will be adding a e2e test for the firewall feature as a whole shortly.

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?

Pull Request Guidelines:

  1. Does your submission pass tests?
  2. Have you added tests?
  3. Are you addressing a single feature in this PR?
  4. Are your commits atomic, addressing one change per commit?
  5. Are you following the conventions of the language?
  6. Have you saved your large formatting changes for a different PR, so we can focus on your work?
  7. Have you explained your rationale for why this feature is needed?
  8. Have you linked your PR to an open issue

Description: fmt.Sprintf("Rule %d, Created by linode-ccm: %s, for %s", i, label, svcName),
Protocol: linodego.TCP, // Nodebalancers support only TCP.
Ports: ports,
Addresses: linodego.NetworkAddresses{IPv4: &v4chunk},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrade to 1.22 while you are here? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the 1.22 bump went in already - looks like @okokes-akamai is on it in #173

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A firewall can have 25 rules in totall, would it make sense to handle that error checking here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be sorted now

@tchinmai7 tchinmai7 requested a review from avestuk February 28, 2024 15:50
@tchinmai7 tchinmai7 merged commit 53a5848 into main Feb 29, 2024
4 checks passed
@tchinmai7 tchinmai7 deleted the feat/enhanced-firewall branch February 29, 2024 16:59
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.

2 participants