Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
cloud armor add CVE-2021-44228 rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Dec 12, 2021
1 parent 552d6fa commit ae6bb8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ gcloud compute security-policies rules create 1000 \
--expression "evaluatePreconfiguredExpr('xss-stable')" \
--action "deny-403" \
--description "XSS attack filtering"
gcloud compute security-policies rules create 12345 \
--security-policy $securityPolicyName \
--expression "evaluatePreconfiguredExpr('cve-canary')" \
--action "deny-403" \
--description "CVE-2021-44228"
gcloud compute security-policies update $securityPolicyName \
--enable-layer7-ddos-defense
sslPolicyName=$securityPolicyName # Name hard-coded there: https://github.com/mathieu-benoit/my-kubernetes-deployments/tree/main/namespaces/asm-ingress/frontendconfig.yaml
Expand Down

0 comments on commit ae6bb8e

Please sign in to comment.