Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRSA, Thumbprint list must contain fewer than 5 entries #2632

Closed
atre opened this issue May 26, 2023 · 6 comments
Closed

IRSA, Thumbprint list must contain fewer than 5 entries #2632

atre opened this issue May 26, 2023 · 6 comments
Labels

Comments

@atre
Copy link

atre commented May 26, 2023

Is your request related to a problem? Please describe.

I'm working on IRSA and I'm getting this
Error: creating IAM OIDC Provider: InvalidInput: Thumbprint list must contain fewer than 5 entries.

I'm also using two additional entries in custom_oidc_thumbprints

So due to this concatenation

thumbprint_list = concat(data.tls_certificate.this[0].certificates[*].sha1_fingerprint, var.custom_oidc_thumbprints)

I can't apply configuration in any environment with more than 3 certificates in the chain

Describe the solution you'd like.

I want to discuss possible fixes and work on these. I see following

  1. Prioritise custom_oidc_thumbprints over those that have been added from the datasource. Maybe add a switch to just add custom_oidc_thumbprints?

  2. Slice resulting thumbprint_list to 5 entries, from the end

  3. Add validation here so no more 5 entries can be in a list

    variable "custom_oidc_thumbprints" {
    description = "Additional list of server certificate thumbprints for the OpenID Connect (OIDC) identity provider's server certificate(s)"
    type = list(string)
    default = []
    }

Additional context

Last related commit from @ThetaSinner
7436178

@github-actions
Copy link

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Jun 26, 2023
@Constantin07
Copy link
Contributor

Up to avoid stale.

@github-actions github-actions bot removed the stale label Jun 29, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

@github-actions github-actions bot added the stale label Jul 30, 2023
@github-actions
Copy link

This issue was automatically closed because of stale in 10 days

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
@gabegorelick
Copy link

Related to hashicorp/terraform-provider-aws#32847. I think #2307 was a mistake. It updated the thumbprint list to be in line with Terraform's recommendations, but then Terraform realized that probably wasn't a good idea.

@github-actions
Copy link

github-actions bot commented Oct 5, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants