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

[client] Support port ranges in peer ACLs #3232

Merged
merged 6 commits into from
Jan 27, 2025
Merged

[client] Support port ranges in peer ACLs #3232

merged 6 commits into from
Jan 27, 2025

Conversation

lixmal
Copy link
Contributor

@lixmal lixmal commented Jan 23, 2025

Describe your changes

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@@ -268,13 +268,16 @@ func (d *DefaultManager) protoRuleToFirewallRule(
}

var port *firewall.Port
if r.Port != "" {
if r.PortInfo != nil {
port = convertPortInfo(r.PortInfo)
Copy link
Contributor

Choose a reason for hiding this comment

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

Because the port type has been changed from int to uint16, should write validation in convertPortInfo. In the worst case, it can cause overflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's add this in a follow-up PR with refactoring and more validation

@lixmal lixmal merged commit 5c05131 into main Jan 27, 2025
41 checks passed
@lixmal lixmal deleted the port-range-acl branch January 27, 2025 12:52
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