This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
forked from hashicorp/terraform-provider-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow empty or absent
subject
block (hashicorp#209)
* Update schema to allow `subject` to be optional or empty in `tls_cert_request` and `tls_self_signed_cert` * Centralised the logic to handle `subject` detection and parsing The only case to handle are: 1. is absent 2. is empty in case it appear multiple times instead, we let the schema handle that * Updated testing * Regenerated doc * Linter caught issues * Updated CHANGELOG * Tweaking negative tests error regexp to accomodate TF 0.12 * Better follow https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6 If the certificate we are creating is a CA, subject can't be empty * Raise a warning when trying to create a `tls_locally_signed_cert` using a CA that is not a CA The certificate will STILL be created, but the provider should signal that the resulting certificate could fail validation. * PR review * Parallelise run for GolangCI-Lint(er) * Update CHANGELOG: mention warning now raised by `tls_locally_signed_cert` resource when providing a CA that is not a CA * Apply suggestions from code review Co-authored-by: Brian Flad <bflad417@gmail.com> Co-authored-by: Brian Flad <bflad417@gmail.com>
- Loading branch information
1 parent
3ff0b88
commit d168eb4
Showing
13 changed files
with
463 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ linters: | |
- tenv | ||
- unconvert | ||
- unparam | ||
|
||
run: | ||
allow-parallel-runners: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.