hashicorp / terraform-provider-consul

Terraform Consul provider
https://www.terraform.io/docs/providers/consul/
Mozilla Public License 2.0
125 stars 113 forks source link

Allow setting additional HTTP headers #245

Closed Mongey closed 3 years ago

Mongey commented 3 years ago

This PR adds the ability to set HTTP headers for Vault API requests made by the Terraform Vault provider. A sample configuration:

provider "consul" {
  address = "https://consul"

  headers {
    name = "header1"
    value = "valueofheader1"
  }

  headers {
    name = "X-Special-Header"
    value = "specialheadervalue"
  }
}
remilapeyre commented 3 years ago

Thanks for your contribution @Mongey!