terraform-provider-http icon indicating copy to clipboard operation
terraform-provider-http copied to clipboard

Allow application/x-pem-file content type

Open erpel opened this issue 3 years ago • 2 comments

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

erpel avatar Jun 22 '22 10:06 erpel

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Jun 22 '22 10:06 hashicorp-cla

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.

lucymhdavies avatar Jul 06 '22 10:07 lucymhdavies

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[bot] avatar May 25 '24 15:05 github-actions[bot]