fix: Only include CA thumbprint in OIDC provider list #2769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This change modifies the OIDC provider
thumbprint_list
, so that it only contains the CA fingerprint, rather than all fingerprints.Motivation and Context
Addresses #2732, by reverting the change from #2307.
According to the description of #2732, #2307 introduced the inclusion of all certificate fingerprints in the
thumbprint_list
. Based on a later documentation change in hashicorp/terraform-provider-aws#32847, only the CA fingerprint should be included in thethumbprint_list
.From the latest docs, the following should be used:
Breaking Changes
This shouldn't break existing functionality, since the root CA encompasses the authority provided by any other certificates that were previously included.
How Has This Been Tested?
I tested this change by modifying the reproduction code provided in #2768 to reference the modified
eks
module.Before the change, 4 fingerprints were included for the OIDC provider. After the change, only the single root CA fingerprint was included.
pre-commit run -a
on my pull request