-
Notifications
You must be signed in to change notification settings - Fork 15
/
controller-credentials-request.yaml
221 lines (221 loc) · 7.6 KB
/
controller-credentials-request.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: aws-load-balancer-controller
namespace: openshift-cloud-credential-operator
spec:
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: AWSProviderSpec
statementEntries:
- action:
- iam:CreateServiceLinkedRole
effect: Allow
resource: "*"
policyCondition:
"StringEquals":
"iam:AWSServiceName": "elasticloadbalancing.amazonaws.com"
- action:
- ec2:DescribeAccountAttributes
- ec2:DescribeAddresses
- ec2:DescribeAvailabilityZones
- ec2:DescribeInternetGateways
- ec2:DescribeVpcs
- ec2:DescribeVpcPeeringConnections
- ec2:DescribeSubnets
- ec2:DescribeSecurityGroups
- ec2:DescribeInstances
- ec2:DescribeNetworkInterfaces
- ec2:DescribeTags
- ec2:GetCoipPoolUsage
- ec2:DescribeCoipPools
- elasticloadbalancing:DescribeLoadBalancers
- elasticloadbalancing:DescribeLoadBalancerAttributes
- elasticloadbalancing:DescribeListeners
- elasticloadbalancing:DescribeListenerCertificates
- elasticloadbalancing:DescribeSSLPolicies
- elasticloadbalancing:DescribeRules
- elasticloadbalancing:DescribeTargetGroups
- elasticloadbalancing:DescribeTargetGroupAttributes
- elasticloadbalancing:DescribeTargetHealth
- elasticloadbalancing:DescribeTags
- elasticloadbalancing:DescribeTrustStores
effect: Allow
resource: "*"
- action:
- cognito-idp:DescribeUserPoolClient
- acm:ListCertificates
- acm:DescribeCertificate
- iam:ListServerCertificates
- iam:GetServerCertificate
- waf-regional:GetWebACL
- waf-regional:GetWebACLForResource
- waf-regional:AssociateWebACL
- waf-regional:DisassociateWebACL
- wafv2:GetWebACL
- wafv2:GetWebACLForResource
- wafv2:AssociateWebACL
- wafv2:DisassociateWebACL
- shield:GetSubscriptionState
- shield:DescribeProtection
- shield:CreateProtection
- shield:DeleteProtection
effect: Allow
resource: "*"
- action:
- ec2:AuthorizeSecurityGroupIngress
- ec2:RevokeSecurityGroupIngress
effect: Allow
resource: "*"
- action:
- ec2:CreateSecurityGroup
effect: Allow
resource: "*"
- action:
- ec2:CreateTags
effect: Allow
resource: "arn:aws:ec2:*:*:security-group/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
"StringEquals":
"ec2:CreateAction": "CreateSecurityGroup"
- action:
- ec2:CreateTags
- ec2:DeleteTags
effect: Allow
resource: "arn:aws:ec2:*:*:security-group/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "true"
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- ec2:AuthorizeSecurityGroupIngress
- ec2:RevokeSecurityGroupIngress
- ec2:DeleteSecurityGroup
effect: Allow
resource: "*"
policyCondition:
"Null":
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:CreateLoadBalancer
- elasticloadbalancing:CreateTargetGroup
effect: Allow
resource: "*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:CreateListener
- elasticloadbalancing:DeleteListener
- elasticloadbalancing:CreateRule
- elasticloadbalancing:DeleteRule
effect: Allow
resource: "*"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:targetgroup/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "true"
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "true"
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "true"
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:listener/net/*/*/*"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:listener/app/*/*/*"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:listener-rule/net/*/*/*"
- action:
- elasticloadbalancing:AddTags
- elasticloadbalancing:RemoveTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:listener-rule/app/*/*/*"
- action:
- elasticloadbalancing:AddTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:targetgroup/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
"StringEquals":
"elasticloadbalancing:CreateAction": ["CreateTargetGroup","CreateLoadBalancer"]
- action:
- elasticloadbalancing:AddTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
"StringEquals":
"elasticloadbalancing:CreateAction": ["CreateTargetGroup","CreateLoadBalancer"]
- action:
- elasticloadbalancing:AddTags
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
policyCondition:
"Null":
"aws:RequestTag/elbv2.k8s.aws/cluster": "false"
"StringEquals":
"elasticloadbalancing:CreateAction": ["CreateTargetGroup","CreateLoadBalancer"]
- action:
- elasticloadbalancing:ModifyLoadBalancerAttributes
- elasticloadbalancing:SetIpAddressType
- elasticloadbalancing:SetSecurityGroups
- elasticloadbalancing:SetSubnets
- elasticloadbalancing:DeleteLoadBalancer
- elasticloadbalancing:ModifyTargetGroup
- elasticloadbalancing:ModifyTargetGroupAttributes
- elasticloadbalancing:DeleteTargetGroup
effect: Allow
resource: "*"
policyCondition:
"Null":
"aws:ResourceTag/elbv2.k8s.aws/cluster": "false"
- action:
- elasticloadbalancing:RegisterTargets
- elasticloadbalancing:DeregisterTargets
effect: Allow
resource: "arn:aws:elasticloadbalancing:*:*:targetgroup/*/*"
- action:
- elasticloadbalancing:SetWebAcl
- elasticloadbalancing:ModifyListener
- elasticloadbalancing:AddListenerCertificates
- elasticloadbalancing:RemoveListenerCertificates
- elasticloadbalancing:ModifyRule
effect: Allow
resource: "*"
secretRef:
name: aws-load-balancer-controller-cluster
namespace: aws-load-balancer-operator
serviceAccountNames:
- aws-load-balancer-controller-cluster