Skip to content

Commit d037ac9

Browse files
committed
devtools: add script for Cloud Armor
Add a script that displays our Cloud Armor policies and explains how to change them. Change-Id: I1e662bd91f886ae25288d114de120917c92ec40b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/659896 LUCI-TryBot-Result: Go LUCI <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 9685cd9 commit d037ac9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

devtools/describe_cloud_armor.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# Display the state of the Cloud Armor rules for the prod frontend.
4+
5+
echo 'Cloud Armor rule for prod. Note rateLimitOptions.'
6+
7+
gcloud compute security-policies describe prod-frontend
8+
9+
echo
10+
echo 'To modify:'
11+
echo '- Obtain the necessary permissions.'
12+
echo '- Visit https://console.google.com/net-security/securitypolicies/details/prod-frontend?project=$PROJECT&hl=en&tab=rules'
13+
echo '- Click Edit'

0 commit comments

Comments
 (0)