-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manuel Hutter <manuel@hutter.io>
- Loading branch information
Showing
3 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# === Exempt frequent well-known requests from logging, e.g. health checks (ids: 40000 - 40100) | ||
|
||
# Ignore requests coming from Kubernetes going to the health check endpoint. | ||
# - don't log | ||
# - allow request | ||
# - don't write an audit log for the request | ||
SecRule REQUEST_URI "@streq /healthz" "phase:1,id:40099,nolog,allow,ctl:auditEngine=Off,chain" | ||
SecRule REMOTE_ADDR "@ipMatch ${HEALTHZ_CIDRS}" | ||
|
||
# Ignore requests coming from localhost. This is useful if there are request issued via Shell or | ||
# from a sidecar that provide limited or no customization in the request headers (e.g. Apache exporter). | ||
SecRule REMOTE_ADDR "@ipMatch 127.0.0.1" "phase:1,id:40001,nolog,allow,ctl:auditEngine=Off" | ||
SecRule REMOTE_ADDR "@ipMatch ::1" "phase:1,id:40002,nolog,allow,ctl:auditEngine=Off" |