Commit ec32b5b
authored
fix(iam): oidc provider retrieves leaf certificate instead of root certificate (#22509)
Currently, the IAM OIDC Provider is retrieving leaf certificates for a given url. The validity for these certificates is not that long. This can cause an outage for the customer since they might not be aware of when the certificate is going to expire. We have seen an [outage](#8607) in EKS due to this issue.
This change will help retrieving root certificates instead of leaf certificates. The validity of root certificate is much more than the leaf certificates. I am also adding validations for the certificate and also informing the customer if there retrieved certificate is going to expire within six months when they do a new deployment.
Fixes #8607
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
### All Submissions:
* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)
### Adding new Unconventional Dependencies:
* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
### New Features
* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
* [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent aa19ec0 commit ec32b5b
100 files changed
Lines changed: 866 additions & 1428 deletions
File tree
- packages/@aws-cdk
- aws-eks
- lib
- test
- integ.alb-controller.js.snapshot
- asset.42973d1d89f4a393a64981f78d088964ba13e63a3aab4478cd74109c77cf9174
- asset.b461123ee060208a85a3dbdaa41982700ad24caf5f4c4af2f625986b92ac60c3
- asset.b9db8e64e56b84987288e77a56bf3c0fb982931aa35cb2dcff4bc8a115ae87b3
- asset.f4599f463f56c5c9d584a8aca5b607b7bb0cead0b089b8ccd66b69f00b5ee98a
- integ.eks-cluster.js.snapshot
- asset.42973d1d89f4a393a64981f78d088964ba13e63a3aab4478cd74109c77cf9174
- asset.b461123ee060208a85a3dbdaa41982700ad24caf5f4c4af2f625986b92ac60c3
- asset.b9db8e64e56b84987288e77a56bf3c0fb982931aa35cb2dcff4bc8a115ae87b3
- asset.f4599f463f56c5c9d584a8aca5b607b7bb0cead0b089b8ccd66b69f00b5ee98a
- integ.eks-inference.js.snapshot
- asset.42973d1d89f4a393a64981f78d088964ba13e63a3aab4478cd74109c77cf9174
- asset.b461123ee060208a85a3dbdaa41982700ad24caf5f4c4af2f625986b92ac60c3
- asset.b9db8e64e56b84987288e77a56bf3c0fb982931aa35cb2dcff4bc8a115ae87b3
- asset.f4599f463f56c5c9d584a8aca5b607b7bb0cead0b089b8ccd66b69f00b5ee98a
- integ.eks-oidc-provider.js.snapshot
- asset.78989d876411e582ce92577de10ee129b12c1f09d8b77f9f45ce2b97cb53bad7
- asset.b461123ee060208a85a3dbdaa41982700ad24caf5f4c4af2f625986b92ac60c3
- integ.eks-service-account-sdk-call.js.snapshot
- asset.8a0a8c03b198919a101198f32c18622186aec532054cb63937cc769635f8e7ef
- asset.b461123ee060208a85a3dbdaa41982700ad24caf5f4c4af2f625986b92ac60c3
- aws-iam
- lib/oidc-provider
- test/oidc-provider
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
55 | | - | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2156 | 2156 | | |
2157 | 2157 | | |
2158 | 2158 | | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | 2159 | | |
2163 | 2160 | | |
2164 | 2161 | | |
| |||
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 0 additions & 89 deletions
This file was deleted.
0 commit comments