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

Expose certificate's subject parts in data source tls_certificate (Data Source) #439

Open
1 task done
emibcn opened this issue Nov 20, 2023 · 0 comments
Open
1 task done

Comments

@emibcn
Copy link

emibcn commented Nov 20, 2023

Terraform CLI and Provider Versions

Terraform v1.2.0
on linux_amd64

  • provider registry.terraform.io/hashicorp/tls v4.0.4

Use Cases or Problem Statement

Be able to use information available in the equivalent tls_locally_signed_cert and tls_self_signed_cert resource's subject blocks, like common_name, country, organization, etc. This information could then be used to name or organize other resources. For example, uploading a certificate -to somewhere- using it's Common Name as file name.

Proposal

Expose the data subject parts. To prevent breaking changes on a new version, maybe using subject_parts or subject_block (use whatever name you prefer) instead of the existing subject (for example: data.tls_certificate.example.subject_parts.common_name) would be desirable.

How much impact is this issue causing?

Medium

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant