---
url: /reference/network.md
---
# Network and Git access

Pandra reaches Git hosts with your own `git` command, and registries and other services with a client of its own that uses your proxy and certificate settings. Sharing agents through Git and registries is in [Git, registries, and package files](/share/publishing.md).

## Git

Pandra fetches Git sources with your `git` command (Git 2.17 or later), so your Git configuration, credential helpers (such as the one `gh auth setup-git` writes), SSH keys, `~/.ssh/config`, proxies, and certificates work as they do for `git clone`. `pandra auth login` refuses Git hosts.

* Git never prompts. Load SSH keys with `ssh-add` and add new hosts to `known_hosts` first; a credential or host key confirmation that would need typing fails instead. A custom SSH command (`GIT_SSH_COMMAND`, `GIT_SSH`, or `core.sshCommand`) runs as it is.
* Git is fetched over HTTPS and SSH only, so an `insteadOf` rule that rewrites a source to a plain `http://` mirror makes the fetch fail.
* Pandra rejects source URLs with embedded credentials, and Git credentials never appear in lockfiles, logs, session records, or packages.

## Proxies and certificates

Every other connection Pandra makes honors `HTTPS_PROXY`, `HTTP_PROXY`, `ALL_PROXY`, and `NO_PROXY` (upper or lower case) and trusts the operating system's certificates.

* To trust an internal certificate authority as well as the public ones, add it to the system's store, or point `SSL_CERT_FILE` at a bundle that holds both.
* On Linux, `SSL_CERT_FILE` and `SSL_CERT_DIR` each replace their part of the system's store; on macOS, Pandra then trusts only the certificates they name.
* On a system with no certificate store, such as a slim container image without `ca-certificates`, Pandra uses the Mozilla root certificates built into it, unless `SSL_CERT_FILE` or `SSL_CERT_DIR` is set. A store that exists but cannot be read is an error.

Pandra has no telemetry and contacts only the services a command needs. Registry logins are in [registry credentials](/share/publishing.md#registry-credentials).
