Skip to content

Commit 2edfcad

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add preview support for monitoring a cluster's pods for compliance with a provided Binary Authorization platform policy via Binary Authorization Continuous Validation
PiperOrigin-RevId: 555745169
1 parent 30ed266 commit 2edfcad

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,21 @@ message BinaryAuthorization {
17301730
// project's singleton policy. This is equivalent to setting the
17311731
// enabled boolean to true.
17321732
PROJECT_SINGLETON_POLICY_ENFORCE = 2;
1733+
1734+
// Use Binary Authorization with the policies specified in policy_bindings.
1735+
POLICY_BINDINGS = 5;
1736+
1737+
// Use Binary Authorization with the policies specified in policy_bindings,
1738+
// and also with the project's singleton policy in enforcement mode.
1739+
POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE = 6;
1740+
}
1741+
1742+
// Binauthz policy that applies to this cluster.
1743+
message PolicyBinding {
1744+
// The relative resource name of the binauthz platform policy to audit. GKE
1745+
// platform policies have the following format:
1746+
// `projects/{project_number}/platforms/gke/policies/{policy_id}`.
1747+
optional string name = 1;
17331748
}
17341749

17351750
// This field is deprecated. Leave this unset and instead configure
@@ -1740,6 +1755,10 @@ message BinaryAuthorization {
17401755
// Mode of operation for binauthz policy evaluation. If unspecified, defaults
17411756
// to DISABLED.
17421757
EvaluationMode evaluation_mode = 2;
1758+
1759+
// Optional. Binauthz policies that apply to this cluster.
1760+
repeated PolicyBinding policy_bindings = 5
1761+
[(google.api.field_behavior) = OPTIONAL];
17431762
}
17441763

17451764
// Configuration for the PodSecurityPolicy feature.

0 commit comments

Comments
 (0)