snowflakedb/libsnowflakeclient

SNOW-585111: Snowflake-Specific Proxy Config

Closed this issue · 3 comments

cjsfj commented

Currently all of the proxy server environment variables are system-wide:

void Snowflake::Client::Util::Proxy::setProxyFromEnv() {
std::string proxy;
// Get proxy string and set scheme
if (std::getenv("all_proxy")) {
proxy = std::getenv("all_proxy");
} else if (std::getenv("https_proxy")) {
proxy = std::getenv("https_proxy");
} else if (std::getenv("http_proxy")) {
proxy = std::getenv("http_proxy");
} else {
return;
}
stringToProxyParts(proxy);
}

Would love to see an option to set a proxy that is specific to snowflake only and not system-wide.

Thank you,

CJ

this library is used internally by other Snowflake drivers so all enhancement effort is focused on the particular drivers utilizing this library. Meaning, I'm not sure if this will be ever prioritized, unfortunately.

apparently i was missing quite some stuff, and individual proxy handling (non-envvar) was implemented with #479

not documented, tho, we'll work on that

closing this issue since the capability has been already implemented; the readme will be updated in the future