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

Modsec .profile Rule Issue #990

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions deployments/templates/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ metadata:
nginx.ingress.kubernetes.io/enable-modsecurity: "true"
nginx.ingress.kubernetes.io/modsecurity-snippet: |
SecRuleEngine On

# Rule to resolve issues with urls containing '.profile' being blocked by rule 930130
# See ticket https://github.com/ministryofjustice/find-moj-data/issues/982
SecRule REQUEST_URI "@contains .profile" "id:1005,phase:1,t:lowercase,ctl:ruleRemoveById=930130"

SecDefaultAction "phase:2,pass,log,tag:github_team=data-catalogue"
SecDefaultAction "phase:4,pass,log,tag:github_team=data-catalogue"
spec:
Expand Down
Loading