terraform-provider-http
terraform-provider-http copied to clipboard
Allow application/x-pem-file content type
This refers to PEM encoded files often used for certificates and related data.
Example source for this content type: https://github.com/ietf-wg-acme/acme/issues/120
On a related note, recognising application/pem-certificate-chain would be useful.
Perhaps, rather than hard-coding specific content types we expect, we should add a parameter that would allow the user to specify what content type they are expecting.
In my case:
data "http" "ca" {
url = "https://vault.fancycorp.io/v1/pki/root/ca/pem"
expected_content_types = [
"application/pem-certificate-chain"
]
}
@erpel's use-case would likely be similar.
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.