@hiiretail/gcp-infra-cli 0.99.0 → 0.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
## This yaml file will configure your cloud armor policies
|
|
2
2
|
## For more information on how to configure the expressions
|
|
3
3
|
## Visit https://cloud.google.com/armor/docs/rules-language-reference
|
|
4
|
+
|
|
5
|
+
## Logging filter for this policy:
|
|
6
|
+
# resource.type:(http_load_balancer) AND jsonPayload.enforcedSecurityPolicy.name:(<%-name%>)
|
|
7
|
+
|
|
4
8
|
description: Cloud armor policy
|
|
5
9
|
default-action: allow ## if no requests match any rules this value will be honored ( allow | deny )
|
|
6
10
|
rules:
|
|
7
11
|
deny-no-auth-header:
|
|
8
|
-
action: deny
|
|
9
|
-
priority: 10
|
|
12
|
+
action: deny(403)
|
|
13
|
+
priority: 10 # Priority 1 will be executed before 10 see the language reference for a more detailed explenation.
|
|
10
14
|
description: Block requests without auth header
|
|
11
15
|
preview: true ## dry run true | false
|
|
12
16
|
## Expression will block any request not containing the authorization header
|