{"id":22042900,"url":"https://github.com/jmoney/snowflake-proxy-poc","last_synced_at":"2026-04-20T03:33:50.354Z","repository":{"id":197127158,"uuid":"698041899","full_name":"jmoney/snowflake-proxy-poc","owner":"jmoney","description":"A simple proxy using haproxy to snowflake example","archived":false,"fork":false,"pushed_at":"2024-01-01T03:02:27.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-13T09:53:51.016Z","etag":null,"topics":["github-site","license-updater","mkdocs","snowflake"],"latest_commit_sha":null,"homepage":"https://www.jmoney.dev/snowflake-proxy-poc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmoney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-29T02:50:53.000Z","updated_at":"2023-09-29T03:00:10.000Z","dependencies_parsed_at":"2025-01-28T19:46:16.672Z","dependency_job_id":"143637e2-eeba-4b48-ac68-f3243614e77b","html_url":"https://github.com/jmoney/snowflake-proxy-poc","commit_stats":null,"previous_names":["jmoney/snowflake-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmoney/snowflake-proxy-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsnowflake-proxy-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsnowflake-proxy-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsnowflake-proxy-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsnowflake-proxy-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmoney","download_url":"https://codeload.github.com/jmoney/snowflake-proxy-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoney%2Fsnowflake-proxy-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-site","license-updater","mkdocs","snowflake"],"created_at":"2024-11-30T12:13:44.651Z","updated_at":"2026-04-20T03:33:50.332Z","avatar_url":"https://github.com/jmoney.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snowflake Proxy\n\n## Proxy\n\nThe proxy is an haproxy instance that will route traffic to snowflake\n\n| Variable | Description |\n| -------- | ----------- |\n| `SNOWFLAKE_ACCOUNTID` | The account id of the snowflake account |\n| `SNOWFLAKE_REGION` | The region of the snowflake account |\n\n## Test Client\n\nThe test client is a simple golang script that will connect to the proxy and run a query.  It configures the connection to use the local proxy.  It prints each row\n\n| Flag | Env Variable | Description |\n| -------- | -------- | ----------- |\n| `snowflake_accountid` | `SNOWFLAKE_ACCOUNTID` | The account id of the snowflake account |\n| `snowflake_region` | `SNOWFLAKE_REGION` | The region of the snowflake account |\n| `snowflake_user`| `SNOWFLAKE_USER` | The user to connect as |\n| `snowflake_password` | `SNOWFLAKE_PASSWORD` | The password to connect with |\n| `proxy_host` | `127.0.0.1` | The host of the proxy |\n| `proxy_port` | `8080` | The port of the proxy |\n\n## Running\n\nTo run this we need to build the docker image and then run it.\n\n```bash\ndocker build -t snowflake-proxy .\n```\n\nNow that it is built we will need to run it\n\n```bash\ndocker run -it -p 8080:8080 -e SNOWFLAKE_ACCOUNTID=12345 -e SNOWFLAKE_REGION=us-east-1 snowflake-proxy\n```\n\nReplace the account id and region with your own.  You can also change the port if you want to run it on a different port.\n\nNow that the proxy is running we can run the test client.  Replace the user and password with your own.\n\n```bash\ngo run main.go -snowflake_accountid 12345 -snowflake_region us-east-1 -snowflake_user test -snowflake_password test -proxy_host 127.0.0.1 -proxy_port 8080\n```\n\nThis should print something like the following if it connected properly\n\n```text\n[INFO] 2023/09/28 21:46:27 main.go:45: ONE\n[INFO] 2023/09/28 21:46:27 main.go:46: ---\n[INFO] 2023/09/28 21:46:27 main.go:54: 1\n```\n\nThat is it!  You are now connected to snowflake through the proxy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoney%2Fsnowflake-proxy-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmoney%2Fsnowflake-proxy-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoney%2Fsnowflake-proxy-poc/lists"}