Skip to content

Envvars for Snowflake adapter#414

Merged
mildbyte merged 3 commits intomasterfrom
feature/snowflake-sqlalchemy-envvars
Mar 26, 2021
Merged

Envvars for Snowflake adapter#414
mildbyte merged 3 commits intomasterfrom
feature/snowflake-sqlalchemy-envvars

Conversation

@mildbyte
Copy link
Copy Markdown
Contributor

Add support for passing environment variables to the Snowflake adapter (e.g. HTTP_PROXY / HTTPS_PROXY / NO_PROXY etc).

Example:

$ sgr mount snowflake test_snowflake -o@- <<EOF
{
    "username": "username",
    "password": "password",
    "account": "account.region.vendor",
    "database": "SNOWFLAKE_SAMPLE_DATA",
    "schema": "TPCH_SF100",
    "envvars": {"HTTPS_PROXY": "https://proxy.company.com"}
}
EOF

Fixes #413

…r (e.g. `HTTP_PROXY` / `HTTPS_PROXY` / `NO_PROXY` etc) (pass an `"envvars": {"HTTPS_PROXY": "https://..."}` to the FDW params)
  * switch envvars back at the end of the execution
  * limit allowed envvars to `HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`.
@mildbyte mildbyte merged commit 5d19e35 into master Mar 26, 2021
@mildbyte mildbyte deleted the feature/snowflake-sqlalchemy-envvars branch March 26, 2021 22:06
mildbyte added a commit that referenced this pull request Mar 29, 2021
  * Snowflake data source improvements:
    * Allow passing envvars to set HTTP proxy parameters, fix incorrect query string generation when passing a warehouse (#414, #413)
    * Support for authentication using a private key (#418)
  * Splitfiles: relax AST restrictions to support all SELECT/INSERT/UPDATE/DELETE statements (#411)
  * Change the default installation port to 6432 and handle port conflicts during install (#375)
  * Add retry logic to fix registry closing the SSL connection after 30 seconds, close remote connections in some places (#417)
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.

Cannot mount Snowflake as a data source behind a proxy

1 participant