Skip to content

Commit

Permalink
fix: Only include CA thumbprint in OIDC provider list (#2769)
Browse files Browse the repository at this point in the history
As per #2732 and #32847, only the CA thumbprint should be included in
the OIDC provider thumbprint list.
  • Loading branch information
danielfrankcom committed Oct 6, 2023
1 parent 386535f commit 7e5de15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ resource "aws_iam_openid_connect_provider" "oidc_provider" {
count = local.create && var.enable_irsa && !local.create_outposts_local_cluster ? 1 : 0

client_id_list = distinct(compact(concat(["sts.${local.dns_suffix}"], var.openid_connect_audiences)))
thumbprint_list = concat(data.tls_certificate.this[0].certificates[*].sha1_fingerprint, var.custom_oidc_thumbprints)
thumbprint_list = concat([data.tls_certificate.this[0].certificates[0].sha1_fingerprint], var.custom_oidc_thumbprints)
url = aws_eks_cluster.this[0].identity[0].oidc[0].issuer

tags = merge(
Expand Down

0 comments on commit 7e5de15

Please sign in to comment.