# Conda

Point conda channels at the Package Firewall, which streams repodata unchanged and gates package downloads.

| | |
|---|---|
| Channel URL | `https://packages.vulnes.is/conda/<channel>` |
| Ecosystem ID | `conda` |
| Plan | Add-on |
| Mode | gate: `repodata.json` is streamed unchanged; `.conda` and `.tar.bz2` downloads are checked |
| Cooldown | no (gate mode) |
| Default mirror | `https://conda.anaconda.org` |
| Automatic setup | none: `vulnetix package-firewall conda` exits 1 |

> [!WHY] Why Conda is gated, not filtered
> conda-forge's `noarch/repodata.json` is about 184 MB. Filtering means holding and policy-checking the whole document, which timed out at the proxy. Gating serves the index as it is and refuses a blocked version when conda downloads it.

A resolve can therefore pick a blocked version; the install then fails on that package's download with the block status. Pin an allowed version and re-run.

## Configuration

`~/.condarc`:

```yaml
channels:
  - https://packages.vulnes.is/conda/conda-forge
default_channels:
  - https://packages.vulnes.is/conda/main
channel_alias: https://packages.vulnes.is/conda
```

The channel path is appended to the mirror, so `/conda/conda-forge` fetches `https://conda.anaconda.org/conda-forge`. conda authenticates with `~/.netrc`, so run any `vulnetix package-firewall <ecosystem>` once, or write the [netrc entry](/package-firewall/get-started/authentication.md#what-the-cli-writes) yourself.

## Use and verify

```bash
conda config --show channels
conda clean -i
conda install numpy
```
