Skip to content

Corporate network: proxy and internal CA ​

Inside a company network the Live Host often reaches the outside only through an egress proxy, and internal services (the identity provider, a GitLab, a GitHub Enterprise Server) carry certificates from the company's own CA. Both need one setting each. The Live Host applies each setting to its own requests (the GitHub or GitLab API, token minting, the identity provider's discovery, signing keys and token endpoint) and to git (clone, fetch, push). The browsers and AI clients of your people need the CA too: Client machines.

What the Live Host connects to ​

TargetUsed forProtocol
api.github.com (or GITHUB_API_URL)installations, tokens, permission checks, pull requests, issuesHTTPS
github.com (or GITHUB_BASE_URL)git clone, fetch, pushHTTPS (git)
your GitLab (GITLAB_URL), its API under /api/v4projects, memberships, the token's expiry, merge requests, issuesHTTPS
your GitLab (GITLAB_URL)git clone, fetch, push (<GITLAB_URL>/<group>/<project>.git)HTTPS (git)
the identity provider (LIVE_OIDC_ISSUER, ..._JWKS_URL)discovery, signing keys, the login's token exchangeHTTPS

Only the rows of the git hosts you connect apply. Nothing else: the Live Host loads no code, fonts or updates at runtime, and git never uses SSH.

Inbound: the webhooks ​

Besides your people's browsers, editors and AI clients, the git host connects to the Live Host:

FromToUsed for
GitHub (the GitHub App)<LIVE_PUBLIC_URL>/webhook/githubinstallations and their repositories added or removed
your GitLab (a system hook)<LIVE_PUBLIC_URL>/webhook/gitlabprojects created, renamed, moved, deleted; memberships

github.com reaches only a host the internet reaches; without it, repositories added show up on Refresh and the 10-minute sync. A GitLab inside your network sends its system hook directly, through your TLS proxy like a browser. With Enable SSL verification on the hook (keep it on), GitLab must trust your designIQ certificate: put the issuing CA into /etc/gitlab/trusted-certs/ on the GitLab server and run sudo gitlab-ctl reconfigure. A designIQ host on an internal address also needs Allow requests to the local network from system hooks (GitLab's Admin area > Settings > Network > Outbound requests, on by default). Both are in gitlab-setup.md.

Egress proxy ​

Set HTTPS_PROXY to the proxy, and NO_PROXY to every host the Live Host must reach directly, typically an identity provider inside the network:

bash
HTTPS_PROXY=http://proxy.acme.internal:3128
NO_PROXY=keycloak,.acme.internal,localhost,127.0.0.1

A GitLab inside the network (gitlab.acme.internal) belongs on NO_PROXY as well, unless your proxy is meant to reach it.

  • Credentials go into the URL (http://user:password@proxy:3128). Percent-encode reserved characters in the user name or password: / as %2F, @ as %40, : as %3A. The startup report and every warning show the proxy with *** in their place.
  • A value without a scheme (proxy.acme.internal:3128) counts as http://, as it does for git.
  • NO_PROXY takes host names, domain suffixes (.acme.internal, which covers every host below it) and single IP addresses, separated by commas. Both the Live Host and git read exactly these forms. Address ranges (10.0.0.0/8) work for git only and wildcards (*.acme.internal) for the Live Host only; the startup report warns about either.
  • Put every host inside the network on NO_PROXY, also single-word names and loopback addresses: the proxy is asked for everything else. With the shipped compose file, the Keycloak container is reached as keycloak; put it on the list, or the Live Host asks the proxy for a host only Docker knows.
  • Set HTTPS_PROXY. With only HTTP_PROXY, the Live Host's own https requests use it, but git's do not; the startup report warns. ALL_PROXY is read by git only.
  • The lower-case variants (https_proxy, no_proxy) work as well. When both spellings are set with different values, the lower-case one wins for the Live Host and git alike, and the startup report warns.

The tool that registers the GitHub App (pnpm create-app, github-app-setup.md) takes HTTPS_PROXY the same way.

Upgrading from 5.17 or earlier: proxy variables already in the container's environment (for example from Docker's own proxy configuration) now apply to the Live Host's own requests too, not only to git. Put the identity provider (keycloak with the shipped compose file), localhost and 127.0.0.1 on NO_PROXY before you upgrade.

Internal CA ​

Mount the CA certificate (PEM, one or more certificates in one file) into the container and name it in NODE_EXTRA_CA_CERTS:

yaml
# docker-compose.yml, service live-host
volumes:
  - ./certs/acme-root.pem:/certs/acme-root.pem:ro
bash
# .env
NODE_EXTRA_CA_CERTS=/certs/acme-root.pem

Node adds these certificates to the public ones. git does not read the variable, and its own setting replaces the public roots instead of extending them. So at startup the Live Host writes one bundle, the image's public roots plus your certificates, to /data/ca-bundle.pem and points git at it, for the servers (GIT_SSL_CAINFO) and for an https:// proxy (GIT_PROXY_SSL_CAINFO). If you set GIT_SSL_CAINFO yourself, your bundle is used as it is.

Only certificates go into the bundle: a block that cannot be read, or a private key in the same file, is left out, and the startup report says how many certificates it took.

The container runs as an unprivileged user and cannot run update-ca-certificates; you do not need it. Set NODE_EXTRA_CA_CERTS in the container's environment (the .env file the compose file reads).

If the proxy breaks TLS open to inspect it, add its CA to the same file: the hosts on NO_PROXY are reached directly and still present certificates from the internal CA.

Check the setup ​

The startup report says what the Live Host took over:

text
egress    : proxy http://***@proxy.acme.internal:3128 (NO_PROXY: keycloak,.acme.internal), for Node and git
extra CA  : /certs/acme-root.pem (1 certificate), for Node and git (git: /data/ca-bundle.pem)
warning   : NODE_EXTRA_CA_CERTS=/certs/acme-root.pem cannot be read (ENOENT): Node and git trust only the public CAs

When a request still fails, the log names the cause and the setting that likely fixes it:

text
registry sync failed: fetch failed (getaddrinfo ENOTFOUND api.github.com) [the host is unreachable: check the egress route; behind a proxy, HTTPS_PROXY, and NO_PROXY for internal hosts]
502 on GET /api/me: the identity provider's signing keys (JWKS) could not be fetched, so the token could not be checked (fetch failed; UNABLE_TO_GET_ISSUER_CERT_LOCALLY: unable to get local issuer certificate) [the server's certificate is not trusted: add the issuing CA with NODE_EXTRA_CA_CERTS (Node and git both use it)]
fetch acme/processes failed: fatal: unable to access 'https://github.com/acme/processes/': CONNECT tunnel failed, response 407 [the egress proxy refused the connection or is unreachable: check HTTPS_PROXY (host, credentials) and the proxy's allowlist (407: credentials, 403: the target host)]

An identity provider the Live Host cannot reach answers sign-ins and API calls with 502 (auth/idp-unreachable), not with 401 invalid bearer token: the token was never checked, and an AI client does not start a new login that would fail the same way.

Client machines ​

The browsers, VS Code and AI clients of your people open https://<your designIQ host> and, to sign in, your identity provider. With certificates of an internal CA, every client machine must trust that CA, or nothing loads. Usually your device management has put it into the operating system's certificate store already; check with one browser before the pilot.

ClientWhere it takes the CA from
Chrome, Edge, Safarithe operating system's store (Windows certificate store, macOS keychain; on Linux Chrome's NSS database, ~/.pki/nssdb)
Firefoxits own store; on Windows and macOS it also reads the CAs an administrator added to the system (security.enterprise_roots.enabled, on by default), or a policy installs it (Certificates in policies.json)
VS Code (the extension)the operating system's store: VS Code hands it to extensions (setting http.systemCertificates, on by default)
Claude Codethe operating system's store; on Linux the OpenSSL bundle, which SSL_CERT_FILE (a file of the public roots plus your CA) or SSL_CERT_DIR replaces. It does not read NODE_EXTRA_CA_CERTS
Node-based MCP clientsNODE_EXTRA_CA_CERTS=<your CA file> in their environment, or NODE_USE_SYSTEM_CA=1 (Node 23.8 and newer) for the system store

Claude Code 2.1.332 on Linux, against a designIQ host with a certificate of an internal CA: with NODE_EXTRA_CA_CERTS set (in the environment or in settings.json's env), claude mcp list fails with UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate; with SSL_CERT_FILE naming a bundle of the system's roots and the CA, or SSL_CERT_DIR a directory holding the CA, it connects and asks to authenticate. SSL_CERT_FILE replaces the system's bundle rather than adding to it: give it both, as below, or the API connection of Claude Code fails instead.

bash
cat /etc/ssl/certs/ca-certificates.crt /path/to/acme-root.pem > ~/.config/acme-ca-bundle.pem
export SSL_CERT_FILE=~/.config/acme-ca-bundle.pem   # in the shell profile Claude Code starts from

Adding the CA to the operating system's store once (update-ca-certificates on Debian and Ubuntu, the keychain on macOS, the Windows certificate store) covers every row but Firefox without its policy and Node-based clients without NODE_USE_SYSTEM_CA. Checked here: Claude Code and Node on Linux. The rows of the browsers and VS Code (its fetch and WebSocket requests, http.fetchAdditionalSupport on by default as well) are those clients' documented behavior, and Claude Code is expected to read the keychain and the Windows store the same way.

GitHub Enterprise Server ​

Point GITHUB_BASE_URL and GITHUB_API_URL at your instance (configuration.md). Its certificate comes from the internal CA as above; whether it is reached through the proxy or directly is a matter of NO_PROXY.

Custom repository roles ​

Access is checked through GitHub's collaborator permission, and every repository needs write permission. An organization's custom repository role counts with the base role it extends: a role built on write, maintain or admin lets its members edit and release. One built on read or triage gives no access in designIQ: the repository does not show up for its members.