Skip to content

Running dbc through proxy server #243

Closed

Description

@davlee1972

Are there any options to set a proxy server when running DBC with a corporate firewall?

pip supports a --proxy parameter.

uv uses http_proxy and https_proxy environmental variables.

Activity

  1. amoeba commented on Jan 7, 2026

    @amoeba
    Member

    Hi @davlee1972, there isn't an option today but I think it's a great idea. Thanks for filing an issue for it.

  2. added this to the 0.3.0 milestone on Jan 20, 2026
  3. zeroshade commented on Jan 21, 2026

    @zeroshade
    Member

    @davlee1972 In theory, while we don't have a dedicated --proxy parameter, dbc should respect the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables as described at https://pkg.go.dev/net/http#DefaultTransport.

    It would still be a good idea for us to add an explicit parameter though

  4. davlee1972 commented on Jan 22, 2026

    @davlee1972
    Author

    Well uv respects http proxy and https proxy and installs DBC just fine.

    But running dbc install mssql immediately afterwards results in..

    Failed to fetch drivers: Get https:// columnar.tech/ index.yml....": Forbidden.

  5. zeroshade commented on Jan 23, 2026

    @zeroshade
    Member

    Failed to fetch drivers: Get https:// columnar.tech/ index.yml....": Forbidden.

    That URL looks wrong. I assume you're using v0.1.0, right? Can you try the v0.2.0-beta1 release and see if it respects the env vars properly?

  6. davlee1972 commented on Jan 23, 2026

    @davlee1972
    Author

    Tried the beta version. Still forbidden..

    (base) bash-4.4$ uv tool install dbc==0.2.0-beta1

    Resolved 1 package in 512ms

    Prepared 1 package in 1.38s

    Uninstalled 1 package in 40ms

    Installed 1 package in 54ms

    • dbc==0.1.0
    • dbc==0.2.0b1

    Installed 1 executable: dbc

    (base) bash-4.4$

    (base) bash-4.4$ dbc install mssql

    Error: failed to fetch drivers: Get https://dbc-cdn.columnar.tech/index.yaml?mid=bad21a3db50f38b33e5f8d5a1ba47f968785c608b51992641a60dd3 908ea9c2d&uid=352981d4-0a8a-402a-a1c4-1885a327ec5f: Forbidden

  7. zeroshade commented on Jan 24, 2026

    @zeroshade
    Member

    @davlee1972 I set up a simple local proxy, and then ran dbc search and dbc install mssql with and without the HTTPS_PROXY environment variable (since I was operating locally with self-signed certificate I had to disable TLS verification in my local code to allow the proxy to work). Which confirmed both dbc v0.1.0 and the current main properly respect the HTTPS_PROXY environment variable. See below:

    1. I created a directory proxy-test and created a simple node-based proxy
      a. npm init -y
      b. npm install mockttp
      c. Create the index.js file seen below, and then run node index.js
    (async () => {
        const mockttp = require('mockttp');
        const https = await mockttp.generateCACertificate();
        const server = mockttp.getLocal({ https });
    
        server.forAnyRequest().thenPassThrough({
    	beforeRequest: (req) => {
    	    console.log("Proxying ", req.url);
    	    return req;
    	},
        });
    
        await server.start();
    
        console.log(`Server running on port ${server.port}`);
        console.log(`To use this proxy, configure your client to use http://localhost:${server.port}`);
    })();

    Then running it with node index.js gives:

    Image

    I set the HTTPS_PROXY environment variable and then run dbc install mssql

    Image

    And then I see this with the little proxy confirming that it used the proxy correctly:
    Image

    Can you provide any more information about your environment that can help me try to replicate it locally to test with?

  8. davlee1972 commented on Jan 26, 2026

    @davlee1972
    Author

    I'm going to work with our netops team to figure what is the issue. I just tried dbc install mssql from our dev Linux box and it installed fine with the same proxy setting.

    It could be a ulimit issue. In dev ulimit is set to unlimited. In our prod env ulimit open files is set to 1024.

  9. zeroshade commented on Apr 4, 2026

    @zeroshade
    Member

    Hey @davlee1972 since it's been a while and you said it worked from your dev Linux box with the env var, I'm gonna close this. But feel free to reopen if it's still a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions