Define security policy API
@@ -39,6 +39,7 @@ type BackendConfig struct {
type BackendConfigSpec struct {
Iap *IAPConfig `json:"iap,omitempty"`
Cdn *CDNConfig `json:"cdn,omitempty"`
+ SecurityPolicy *SecurityPolicyConfig `json:"securityPolicy,omitempty"`
}
// BackendConfigStatus is the status for a BackendConfig resource
@@ -97,3 +98,9 @@ type CacheKeyPolicy struct {
// QueryStringWhitelist, but not both.
QueryStringWhitelist []string `json:"queryStringWhitelist,omitempty"`
}
+
+// SecurityPolicyConfig contains configuration for CloudArmor-enabled backends.
+type SecurityPolicyConfig struct {
+ // Name of the security policy that should be associated.
+ Name string `json:"name"`
+}
