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

Add support for adding Authority Key ID to tls_self_signed_cert #212

Merged
merged 2 commits into from
May 16, 2022

Conversation

detro
Copy link
Contributor

@detro detro commented May 13, 2022

Closes #56
Closes #66

Initially the intention of this effort was to add set_authority_key_id attribute to both tls_locally_signed_cert and tls_self_signed_cert.

But during development I realised that tls_locally_signed_cert was already generating a certificate with Authority Key ID correctly set, if the provided CA did have a Subject Key ID correctly set (#66 (comment)).

So, this PR:

  1. adds the new functionality to tls_self_signed_cert
  2. adds tests to both tls_locally_signed_cert and tls_self_signed_cert to test their behaviour in this regard

@detro detro requested a review from a team as a code owner May 13, 2022 13:50
Regenerate doc

Added "Subject Key Identifier" and "Authority Key Identifier" tests to `tls_locally_signed_cert` and `tls_self_signed_cert` resources
@detro detro force-pushed the detro/56-support_adding_authority-key-id_to_certificates branch from d3d1bce to cd07014 Compare May 14, 2022 08:23
@github-actions github-actions bot added size/L and removed size/XL labels May 14, 2022
Copy link
Contributor

@bendbennett bendbennett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@detro detro merged commit 93e33fb into main May 16, 2022
@detro detro deleted the detro/56-support_adding_authority-key-id_to_certificates branch May 16, 2022 14:23
jackivanov pushed a commit to jackivanov/terraform-provider-tls that referenced this pull request Aug 4, 2022
…shicorp#212)

* Add optional `set_authority_key_id` attribute to `tls_self_signed_cert`

* Added "Subject Key Identifier" and "Authority Key Identifier" tests to `tls_locally_signed_cert` and `tls_self_signed_cert` resources
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, 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 May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a CA certificate should set Authority Key Identifier attribute
2 participants