# Artifactory, Nexus and GitHub Packages integration

Integrations / Registries. Breadcrumb: [Home](https://osty.dev/) / [Integrations](https://osty.dev/integrations) / Artifactory, Nexus and GitHub Packages

`osty-proxy` sits in front of Artifactory, Nexus or GitHub Packages rather than replacing them. Each npm, PyPI, Go, Cargo, Maven or OCI request is checked against a signed verdict before the artifact reaches the client, and private package names are hashed inside your VPC for dependency-confusion checks. Production CI fails closed; laptops can fail open with cache.

Table: `osty-proxy` routes and upstream flags

| Ecosystem | Client path on osty-proxy | Upstream flag | Notes |
| --- | --- | --- | --- |
| npm | `/npm/` | `--npm-upstream` | Tarball links are rewritten to `--public-url`. |
| PyPI | `/pypi/simple/` | `--pypi-upstream` | Simple index and wheel downloads. |
| Go modules | `/go/` | `--go-upstream` | Module proxy protocol; keep internal modules in `GOPRIVATE`. |
| Cargo | `/cargo/index/` | `--cargo-upstream`, `--cargo-download-upstream` | `config.json` is rewritten and the `api` key removed, so publishing through the proxy is disabled. |
| Maven | `/maven/` | `--maven-upstream` | `-SNAPSHOT` versions are rejected because they are mutable. |
| OCI | `/v2/` | `--oci-upstream` | Manifests resolve to `@sha256` digests before a verdict applies. |

Start with the CI gate before routing installs through the proxy:

```bash
osty verify --lockfile package-lock.json --json
```

## Should osty-proxy sit in front of or behind Artifactory?

Table: Placement trade-offs

| Placement | Request path | Strength | Watch for |
| --- | --- | --- | --- |
| In front (recommended) | Client to `osty-proxy` to Artifactory remote repository to public registry | Every request is checked, so a later `CONFIRMED_MALICIOUS` freeze applies immediately. | Client credentials pass through to Artifactory; authenticated responses are not cached by the proxy. |
| Behind | Client to Artifactory to `osty-proxy` to public registry | No client configuration changes. | Artifactory's own cache can keep serving an artifact Osty later freezes; keep its metadata cache period short. |

The same placement rules apply to Sonatype Nexus proxy repositories and to GitHub Packages. For the behind placement, set the remote repository URL in Artifactory or Nexus to the matching `osty-proxy` path, for example `https://osty-proxy.internal.acme.dev/npm/`.

## How do I run osty-proxy in front of Artifactory?

Each upstream flag points at the matching Artifactory remote repository. The signing key signs block justifications and offline ledger entries. In Kubernetes, the `osty-edge` Helm chart runs the same binary with `proxy.upstreams.*` values.

`osty-proxy` with Artifactory remote repositories as upstreams:

```bash
osty-proxy serve \
  --listen 0.0.0.0:8083 \
  --policy /etc/osty/policy.yaml \
  --cache /var/lib/osty/edge-cache.sqlite \
  --blob-dir /var/lib/osty/blobs \
  --signing-key /etc/osty/proxy/key.pem \
  --org-id 7f9c0c56-7a8e-4f4b-9d55-1f9f1d1c2e3a \
  --public-url https://osty-proxy.internal.acme.dev \
  --npm-upstream https://acme.jfrog.io/artifactory/api/npm/npm-remote \
  --pypi-upstream https://acme.jfrog.io/artifactory/api/pypi/pypi-remote \
  --go-upstream https://acme.jfrog.io/artifactory/api/go/go-remote \
  --maven-upstream https://acme.jfrog.io/artifactory/maven-remote
```

Client configuration:

```bash
npm config set registry https://osty-proxy.internal.acme.dev/npm/
pip config set global.index-url https://osty-proxy.internal.acme.dev/pypi/simple/
go env -w GOPROXY=https://osty-proxy.internal.acme.dev/go
go env -w GOPRIVATE=github.com/acme/*
```

## What happens when Osty cannot reach a verdict?

The failure mode is set per origin in `.osty/policy.yaml`. `osty-proxy serve --origin` sets the floor for the instance, so a production CI proxy stays fail-closed even when a laptop proxy does not.

`supplyChain` section of `.osty/policy.yaml`:

```yaml
supplyChain:
  defaultCooldownHours: 48
  fastTrackVerifiedKEV: true
  blockVerdicts:
    - CONFIRMED_MALICIOUS
    - QUARANTINED_HIGH_RISK
  blockLicenseChanges: true
  allowedLicenses: [MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, MPL-2.0]
  proxyFailureMode:
    prodCI: FAIL_CLOSED
    devLaptop: FAIL_OPEN_WITH_CACHE
```

## How are private package names protected?

Plane 1 publishes Ed25519-signed batches of keyed hashes of public package names for npm, PyPI, Go, Cargo and Maven. `osty-edge` downloads them, verifies them against the brain public key, hashes your private names with the same scheme and reports collisions. Private names never leave the VPC.

`osty-edge` runtime config passed with `--runtime-config`:

```yaml
orgId: 7f9c0c56-7a8e-4f4b-9d55-1f9f1d1c2e3a
namespaceSync:
  brainUrl: https://brain.osty.example.com
  brainPublicKeyPath: /etc/osty/brain/brain.pub.pem
  pollInterval: 5m
  privatePackages:
    npm: ["@acme/auth-sdk", "@acme/billing"]
    pypi: ["acme-payments"]
    maven: ["com.acme:ledger-client"]
```

Private names are listed per ecosystem (`npm`, `pypi`, `go`, `cargo`, `maven`) or loaded from `privatePackagesFile`. The `osty-edge` Helm chart 0.1.0 does not accept `namespaceSync` under `edge.runtimeConfig` yet, so set it in the runtime config file when you run `osty-edge serve` directly.

## Frequently asked questions

### Does Osty replace Artifactory or Nexus?

No. Your repository manager keeps hosting, caching and publishing. `osty-proxy` adds the verdict check.

### Can I publish packages through osty-proxy?

No. The proxy serves pulls. Cargo's `api` key is removed from the rewritten index so publishing through it is impossible.

### How does osty-proxy authenticate to Artifactory?

It forwards the client's `Authorization` header upstream and does not cache authenticated responses.

## Related pages

- [Guard](https://osty.dev/guard): Pre-install supply-chain firewall: Firecracker honey-secret detonation, artifact-vs-Git diffs, behavior baselines, dependency-confusion defense and `osty-proxy`.
- [Kubernetes integration](https://osty.dev/integrations/kubernetes): Run `osty-proxy` next to `osty-edge` with the Helm chart.
- [Policy and Ledger](https://osty.dev/policy-ledger): Git-pinned, non-executable `.osty/policy.yaml` enforced by `osty-edge` on every mutating command, tighten-only overlays, release gates and the hash-chained Ed25519 Evidence Ledger.
- [Osty vs Socket](https://osty.dev/compare/osty-vs-socket): Detonation verdicts compared with package risk scoring.

## See your fleet in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories, and the report shows false positives, stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/integrations/artifactory
