Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting up proxy via provider attribute proxy_url #453

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

take-five
Copy link

Previously, the only way to configure proxying requests to Postgres through a SOCKS5 proxy server was to set ALL_PROXY environment variable. However, this could have unintended side effects and impact other providers.

With proxy_url provider attribute, users can configure proxy for each provider instance individually and make use of e.g. Terraform variables.

It is also possible to use PGPROXY environment variable to configure SOCKS5 proxy for all instances of PostgreSQL provider in the current root module. This environment variable is also used in acceptance tests for this provider.

Previously, the only way to configure proxying requests to Postgres
through a SOCKS5 proxy server was to set `ALL_PROXY` environment
variable. However, this could have unintended side effects and impact
other providers.

With `proxy_url` provider attribute, users can configure proxy for each
provider instance individually and make use of e.g. Terraform variables.

It is also possible to use `PGPROXY` environment variable to configure
SOCKS5 proxy for all instances of PostgreSQL provider in the current
root module. This environment variable is also used in acceptance tests
for this provider.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant