-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add waf default core ruleset as configmap #3643
base: master
Are you sure you want to change the base?
Add waf default core ruleset as configmap #3643
Conversation
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.
Beside the comment, need to update tigera.conf
too to make this work together:
replace Include @owasp_crs/*.conf
with Include /etc/modsecurity-ruleset/coreruleset-default/*.conf
.
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.
overall looks good, just wanted to know about a few things first
@@ -48,23 +48,27 @@ func AsMap() (map[string]string, error) { | |||
return err | |||
} | |||
|
|||
if b, err := fs.ReadFile(FS, path); err != nil { | |||
if d.Name()[0] == '@' { |
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.
not sure why this is done? are we skipping any directories prefixed with '@'? I thought rules were in a directory named '@owasp-' something
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.
Yes that works by accident, need to make the logic clearer.
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.
"by accident" i think you mean "very skilfully"
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.
Replaced by #3649. |
Description
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.