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

azurerm_key_vault_certificate_data: Support certificate bundles and add support for ECDSA keys #11974

Merged
merged 5 commits into from
May 26, 2021
Merged

azurerm_key_vault_certificate_data: Support certificate bundles and add support for ECDSA keys #11974

merged 5 commits into from
May 26, 2021

Conversation

favoretti
Copy link
Collaborator

Potentially fixes #10909

@ghost ghost added the size/M label May 26, 2021
@favoretti favoretti added the service/key-vault Key Vault label May 26, 2021
@favoretti favoretti changed the title azurerm_key_vault_certificate_data: Support certificate bundles azurerm_key_vault_certificate_data: Support certificate bundles and add support for ECDSA keys May 26, 2021
@favoretti
Copy link
Collaborator Author

At least I haven't broken current acceptance test :)

$ TF_ACC=1 go test -v ./azurerm/internal/services/keyvault -timeout=1000m -run='TestAccDataSourceKeyVaultCertificateData_basic'
2021/05/26 21:33:43 [DEBUG] not using binary driver name, it's no longer needed
2021/05/26 21:33:43 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccDataSourceKeyVaultCertificateData_basic
=== PAUSE TestAccDataSourceKeyVaultCertificateData_basic
=== CONT  TestAccDataSourceKeyVaultCertificateData_basic
--- PASS: TestAccDataSourceKeyVaultCertificateData_basic (343.29s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/keyvault	344.729s

Will work on adding tests for new use-cases shortly.

@ghost ghost added size/XL and removed size/M labels May 26, 2021
@ghost ghost added the documentation label May 26, 2021
@favoretti
Copy link
Collaborator Author

$ TF_ACC=1 go test -v ./azurerm/internal/services/keyvault -timeout=1000m -run='TestAccDataSourceKeyVaultCertificateData'
2021/05/26 23:08:16 [DEBUG] not using binary driver name, it's no longer needed
2021/05/26 23:08:16 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccDataSourceKeyVaultCertificateData_basic
=== PAUSE TestAccDataSourceKeyVaultCertificateData_basic
=== RUN   TestAccDataSourceKeyVaultCertificateData_ecdsa_PFX
=== PAUSE TestAccDataSourceKeyVaultCertificateData_ecdsa_PFX
=== RUN   TestAccDataSourceKeyVaultCertificateData_ecdsa_PEM
=== PAUSE TestAccDataSourceKeyVaultCertificateData_ecdsa_PEM
=== RUN   TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PEM
=== PAUSE TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PEM
=== RUN   TestAccDataSourceKeyVaultCertificateData_rsa_single_PEM
=== PAUSE TestAccDataSourceKeyVaultCertificateData_rsa_single_PEM
=== RUN   TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PFX
=== PAUSE TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PFX
=== CONT  TestAccDataSourceKeyVaultCertificateData_basic
=== CONT  TestAccDataSourceKeyVaultCertificateData_rsa_single_PEM
=== CONT  TestAccDataSourceKeyVaultCertificateData_ecdsa_PEM
=== CONT  TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PFX
=== CONT  TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PEM
=== CONT  TestAccDataSourceKeyVaultCertificateData_ecdsa_PFX
--- PASS: TestAccDataSourceKeyVaultCertificateData_ecdsa_PFX (330.67s)
--- PASS: TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PEM (361.86s)
--- PASS: TestAccDataSourceKeyVaultCertificateData_ecdsa_PEM (362.05s)
--- PASS: TestAccDataSourceKeyVaultCertificateData_basic (362.23s)
--- PASS: TestAccDataSourceKeyVaultCertificateData_rsa_bundle_PFX (363.32s)
--- PASS: TestAccDataSourceKeyVaultCertificateData_rsa_single_PEM (366.27s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/keyvault	367.696s

@favoretti favoretti requested a review from katbyte May 26, 2021 21:35
@favoretti
Copy link
Collaborator Author

image
TC is a happy camper too.

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @favoretti - LGTM 👍

@katbyte katbyte added this to the v2.61.0 milestone May 26, 2021
@katbyte katbyte merged commit 69af8a6 into hashicorp:master May 26, 2021
katbyte added a commit that referenced this pull request May 26, 2021
@ghost
Copy link

ghost commented May 27, 2021

This has been released in version 2.61.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.61.0"
}
# ... other configuration ...

@github-actions
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 Jun 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: decoding certificate ("xyz"): pkcs12: expected exactly two safe bags in the PFX PDU
2 participants