Commit 0251d9a
authored
fix(eks): overly permissive trust policies (#25580)
Backporting #25473
----
The *CreationRole* and the *default MastersRole* use the account root principal in their trust policy, which is overly permissive. Instead, use the specific lambda handler roles that need it, and remove the default masters role.
BREAKING CHANGE: A masters role is no longer provisioned by default. Use the `mastersRole` property to explicitly pass a role that needs cluster access. In addition, the creation role no longer allows any identity (with the appropriate `sts:AssumeRole` permissions) to assume it.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 615ebcb commit 0251d9a
File tree
128 files changed
+20108
-23247
lines changed- packages/@aws-cdk
- aws-eks
- lib
- test
- alb-controller.integ.snapshot
- eks-bottlerocket-ng.integ.snapshot
- eks-cluster-handlers-vpc.integ.snapshot
- eks-cluster-private-endpoint.integ.snapshot
- eks-cluster.integ.snapshot
- eks-helm-asset.integ.snapshot
- eks-inference.integ.snapshot
- eks-service-account-sdk-call.integ.snapshot
- asset.4e9c0e1b6fc1adb57b2ace75ad2bcea630c1c57462d920f7847f0383cc8a7ed6
- fargate-cluster.integ.snapshot
- aws-stepfunctions-tasks/test
- eks
- call.integ.snapshot
- emrcontainers
- job-submission-workflow.integ.snapshot
- start-job-run.integ.snapshot
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
128 files changed
+20108
-23247
lines changedLines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
118 | 113 | | |
119 | 114 | | |
120 | 115 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | | - | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| 72 | + | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | | - | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | | - | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1329 | 1336 | | |
1330 | 1337 | | |
1331 | 1338 | | |
| |||
1479 | 1486 | | |
1480 | 1487 | | |
1481 | 1488 | | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
1482 | 1494 | | |
1483 | 1495 | | |
1484 | 1496 | | |
| |||
1493 | 1505 | | |
1494 | 1506 | | |
1495 | 1507 | | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1505 | 1511 | | |
1506 | | - | |
1507 | | - | |
1508 | | - | |
| 1512 | + | |
| 1513 | + | |
1509 | 1514 | | |
1510 | | - | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1511 | 1518 | | |
| 1519 | + | |
| 1520 | + | |
1512 | 1521 | | |
1513 | 1522 | | |
1514 | 1523 | | |
| |||
1524 | 1533 | | |
1525 | 1534 | | |
1526 | 1535 | | |
1527 | | - | |
| 1536 | + | |
1528 | 1537 | | |
1529 | 1538 | | |
1530 | 1539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
| |||
0 commit comments