hashicorp / terraform-provider-http

Utility provider for interacting with generic HTTP servers as part of a Terraform configuration.
https://registry.terraform.io/providers/hashicorp/http/latest
Mozilla Public License 2.0
206 stars 116 forks source link

mTLS support is needed for http provider as well in order to fetch resources #254

Open scr-oath opened 1 year ago

scr-oath commented 1 year ago

Terraform CLI and Provider Versions

Terraform v1.4.2 on darwin_arm64

Use Cases or Problem Statement

Curling a resource, such as a json file from a server that requires client credentials needs the ability to specify cert, key, and cacert

Proposal

Add to the schema the appropriate keys, and, when set, initialize the http_client with the credentials.

How much impact is this issue causing?

High

Additional Information

Without this feature, must do previous or followup steps to fetch resources as files, and if information about where the files are comes from other terraform code, have to split it up.

Furthermore, without this, the alternative might be to write a new provider, which, for simple https requests seems like duplicated effort when this provider exists.

Code of Conduct