jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

provider specific proxy config option #139

Closed kaiehrhardt closed 1 year ago

kaiehrhardt commented 1 year ago

Hi,

it would be nice a have a provider specific proxy config option. (for example like aws provider https://registry.terraform.io/providers/hashicorp/aws/latest/docs#http_proxy)

I know in the current version it's possible via env vars, but running in a large stack it effects every provider and can cause problems.

Do you think, there's any chance to implement this?

Thank you already in advance.

jdamata commented 1 year ago

Can that be achieved using this: https://github.com/jdamata/terraform-provider-sonarqube/blob/master/examples/basic/main.tf#L12

kaiehrhardt commented 1 year ago

The sonarqube host url? O.o

jdamata commented 1 year ago

Maybe my understanding of the http_proxy field in the aws provider is wrong. From what I can tell, that property allows you to call the AWS api from a proxy you specify instead of directly. If you wanted to achieve the same thing here, you could specify the sonarqube host url as the proxy you want to call instead.

jdamata commented 1 year ago

@kaiehrhardt did sonarqube host url work?

kaiehrhardt commented 1 year ago

Maybe my understanding of the http_proxy field in the aws provider is wrong. From what I can tell, that property allows you to call the AWS api from a proxy you specify instead of directly. If you wanted to achieve the same thing here, you could specify the sonarqube host url as the proxy you want to call instead.

I'm pretty sure, that won't work. You still need a target url to route from proxy to sonarqube.