-
Notifications
You must be signed in to change notification settings - Fork 0
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
767 sg nacl fields print order #856
Conversation
…into 767_sg_nacl_fields_print_order
@@ -72,7 +72,7 @@ func (na *AWSNACLAnalyzer) GetNACLRule(index int) (ruleStr string, ruleRes *comm | |||
minPort, | |||
maxPort, | |||
) | |||
connStr = fmt.Sprintf("protocol: %s, dstPorts: %d-%d", protocol, minPort, maxPort) | |||
portsStr = fmt.Sprintf(", dstPorts: %d-%d", minPort, maxPort) | |||
case protocolICMP: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we OK with ICMP? I didn't see an example output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Indeed, there is no such example; moreover, I did not find an example that enables only icmp in the inputs file. Perhaps such an example should be added; does not seem related to this PR.
- Looking at the code - indeed it seems that the extra ICMP parms are ignored in the returned string; they were ignored from the beginning, nothing new to this PR.
- Moreover, looking at the code I do not understand why the printing function of conns was not used in the first place for the returned
ruleStr
.
Not sure whether to fix it here or open a new issue and ask Ola what she had in mind. See also next comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed; At the moment we do not have an example of an icmp rule in aws
We do have an example in IBM (acl5) that is not yet used in explain tests; I'll add a test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acl5 does not have any instances
Need to add examples of NACL
rules with reference to ICMP
type and code in both IBM
and AWS
#860
Co-authored-by: Ziv Nevo <[email protected]>
Co-authored-by: Ziv Nevo <[email protected]>
No description provided.