/
binaryauthorization_v1.yaml
76 lines (68 loc) · 2.8 KB
/
binaryauthorization_v1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
type: google.api.Service
config_version: 3
name: binaryauthorization.googleapis.com
title: Binary Authorization API
apis:
- name: google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1
- name: google.cloud.binaryauthorization.v1.SystemPolicyV1
- name: google.cloud.binaryauthorization.v1.ValidationHelperV1
documentation:
summary: |-
The management interface for Binary Authorization, a system providing
policy control for images deployed to Kubernetes Engine clusters, Anthos
clusters on VMware, and Cloud Run.
rules:
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
description: |-
Gets the access control policy for a resource. Returns an empty policy
if the resource exists and does not have a policy set.
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
description: |-
Sets the access control policy on the specified resource. Replaces
any existing policy.
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
errors.
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
description: |-
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a `NOT_FOUND` error.
Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
http:
rules:
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
get: '/v1/{resource=projects/*/policy}:getIamPolicy'
additional_bindings:
- get: '/v1/{resource=projects/*/attestors/*}:getIamPolicy'
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
post: '/v1/{resource=projects/*/policy}:setIamPolicy'
body: '*'
additional_bindings:
- post: '/v1/{resource=projects/*/attestors/*}:setIamPolicy'
body: '*'
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
post: '/v1/{resource=projects/*/policy}:testIamPermissions'
body: '*'
additional_bindings:
- post: '/v1/{resource=projects/*/attestors/*}:testIamPermissions'
body: '*'
authentication:
rules:
- selector: 'google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.cloud.binaryauthorization.v1.SystemPolicyV1.GetSystemPolicy
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: 'google.iam.v1.IAMPolicy.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform