Skip to content

Commit

Permalink
Update ingress.yaml
Browse files Browse the repository at this point in the history
another test increasing limits
  • Loading branch information
danielglen-moj authored Jan 2, 2025
1 parent 04d7d50 commit 5c8fae4
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions helm_deploy/wordpress/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,31 @@ metadata:
external-dns.alpha.kubernetes.io/aws-weight: "100"
nginx.ingress.kubernetes.io/enable-modsecurity: "true"
nginx.ingress.kubernetes.io/modsecurity-snippet: |
# Default WAF rules
SecRuleEngine On
SecDefaultAction
"phase:2,\
pass,\
log,\
tag:github_team=hale-platform,\
tag:environment=hale-platform-{{ .Values.configmap.envtype }}"
# Set WAF Config for Authenticated Users
SecRule REQUEST_HEADERS:Cookie "@contains WB_CONFIG={{ .Values.secrets.wbconfig }}"
"id:1004,\
phase:2,\
allow,\
nolog,\
tag:github_team=hale-platform,\
tag:environment=hale-platform-{{ .Values.configmap.envtype }}-auth,\
ctl:ruleEngine=DetectionOnly"
nginx.ingress.kubernetes.io/enable-modsecurity: "true"
nginx.ingress.kubernetes.io/modsecurity-snippet: |
SecAction "phase:1, ctl:requestBodyNoFilesLimit=52428800"
# Enable ModSecurity WAF
SecRuleEngine On
# Default action for all rules
SecDefaultAction \
"phase:2, \
pass, \
log, \
tag:github_team=hale-platform, \
tag:environment=hale-platform-{{ .Values.configmap.envtype }}"
# Set WAF config for Authenticated Users
SecRule REQUEST_HEADERS:Cookie "@contains WB_CONFIG={{ .Values.secrets.wbconfig }}" \
"id:1004, \
phase:2, \
allow, \
nolog, \
tag:github_team=hale-platform, \
tag:environment=hale-platform-{{ .Values.configmap.envtype }}-auth, \
ctl:ruleEngine=DetectionOnly"
nginx.ingress.kubernetes.io/server-snippet: |
location = /.well-known/security.txt {
auth_basic off;
Expand Down

0 comments on commit 5c8fae4

Please sign in to comment.