Rorix Firewall
Using npm? See the npm client setup guide.
Open Package Firewall in your Rorix organization to manage approved package versions. Restore or install from your organization’s feed with a scoped registry key. Contact Rorix before using the feed as your only production package source.
The Rorix Firewall NuGet gateway enforces provenance policy. It can rebuild packages from a reviewed source mapping or a maintained catalog recipe. For mirrored packages, it verifies the upstream signature and serves the original package bytes. Each version shows its provenance level.
The registry is fail closed: only package versions in the published state are visible to NuGet clients. Quarantined, failed, queued, and dependency-blocked versions cannot be restored.
Configure a client
Create an API key with the registry.read scope, expose it to the restore process as RORIX_NUGET_API_KEY, and use the generated nuget.config from NuGet client setup in Rorix Firewall. The gateway accepts the NuGet client's Basic credentials as well as Authorization: Bearer rxk_.... Use the API key as either the Basic username or password.
For a local developer configuration, the equivalent CLI command is:
dotnet nuget add source "https://registry.rorix.io/v3/index.json" \
--name rorix \
--username rorix \
--password "$RORIX_NUGET_API_KEY" \
--store-password-in-clear-textPrefer environment-backed configuration in CI and avoid committing an API key to source control.
If NuGet reports NU1101 or NU1102, the requested package or version may be missing, still verifying, or quarantined. Open Package Firewall → NuGet and select the package to see its organization decision and evidence. Check the package ID and version, and request a verified fixed version if the requested version is blocked.
Provenance levels
From strongest to weakest:
| Level | Meaning | | --- | --- | | Reproduced source | An exact commit was rebuilt and its normalized package contents and assemblies matched upstream. | | Pinned source | An exact commit was rebuilt in an isolated environment, but the output differs from upstream. | | Inferred source | An immutable commit behind an exact version-tag heuristic was rebuilt. Only packages admitted before the November 2026 policy change carry this level; new rebuilds always start from a reviewed commit. | | Upstream signed | Rorix preserved the exact upstream nupkg bytes after NuGet signature verification. | | Digest only | Rorix preserved unsigned upstream bytes with a pinned SHA-256 digest. This always requires a version-specific provenance override. |
Each organization selects a minimum provenance level in Settings → Registry rules. A version below that threshold is quarantined. Changing the threshold does not erase previous decisions or evidence.
Packages without a repository commit
A missing nuspec repository.commit value is a normal state, not an automatic failure. Most public .NET packages do not rebuild to matching output, so Rorix rebuilds a package from source only when it has an approved package-version mapping, usually for your own packages. Without one, Rorix verifies the NuGet signature and serves the exact upstream bytes as Upstream signed (or Digest only when unsigned). If a mapped rebuild fails, the package also falls back to the authenticated upstream bytes unless its recipe requires reproduced-source.
Reviewed mappings require a full immutable Git commit, a repository allowed by source policy, and review notes. Superseded mapping rows are retained as history.
Reviewed build recipes and private source
A reviewed mapping can carry a versioned build recipe. The current recipe pins the exact relative .csproj, the exact .NET SDK, and whether publication requires reproduced-source. If the project path is absent, the SDK cannot be installed, the commit differs, or the rebuilt output does not reproduce, the package is quarantined instead of silently entering a lower provenance tier.
Selected private GitHub repositories are accessed through a dedicated GitHub App installed only on an explicit repository allowlist with Contents: read and Metadata: read. Rorix exchanges the App identity for a short-lived, single-repository installation token. The token is used only for source checkout and read-only GitHub archive requests; it is never placed in the repository process environment and is not available during restore or build.
Dependency boundary
Reproduced source describes the selected package artifact, not an unsupported claim that the entire .NET toolchain and dependency graph were bootstrapped from source. During the networked restore stage, NuGet resolves exact dependency versions from approved upstream endpoints. Pack then runs with deny-all egress. Rorix records the resolved graph, classifies runtime versus build-only dependencies, analyzes each package, and blocks publication until every blocking dependency has its own acceptable publication decision.
This gives two honest operating tiers:
- Verified upstream: preserve signed upstream bytes, analyze them, pin their digest, and enforce policy at restore time.
- Rorix rebuilt: use a reviewed recipe and immutable source commit, then publish only when reproduction and policy gates pass.
Uncurated transitive dependencies take the verified-upstream tier directly instead of spending customer onboarding time on an unreviewed generic source-build attempt. A transitive dependency is rebuilt only when it has its own reviewed source mapping. Rorix never labels verified-upstream dependencies as source rebuilt. A future closed-world mode may compile a root exclusively against Rorix-built dependencies, but that stronger property requires a curated bootstrap set and separate evidence.
Publication gates
Provenance is necessary but not sufficient. Rorix also quarantines versions with:
- typosquat findings
- denied-license findings
- high or critical vulnerabilities
- provenance below the organization minimum
- unsigned digest-only provenance without a version-specific override
An organization administrator can record a provenance or security exception for one package version. The rationale and reviewer are retained, the original findings remain visible, and verification is re-run before publication.
After a retryable infrastructure failure, an administrator can select Retry admission on the package detail page. The retry queues a fresh attempt with all verification and publication checks. In Package Firewall → Activity, administrators can inspect target framework declarations from a stored NuGet artifact or view recorded framework evidence. Framework declarations are unreviewed evidence from the artifact.
Existing NuGet lock files
Upstream-signed and digest-only mirrors preserve the exact upstream nupkg bytes, so existing NuGet content hashes remain valid. Source-built packages can have a different package hash, even when normalized contents reproduce successfully. This can surface as NU1403 when an existing packages.lock.json still contains the upstream content hash.
Perform a reviewed one-time lock migration when moving a project to source-built packages:
dotnet restore --force-evaluate
# Review and commit packages.lock.json
dotnet restore --locked-modeDo not silently delete lock files or disable locked mode permanently. Review the changed source and content hashes, commit the new lock file, and keep --locked-mode in CI.
NuGet source rebuild requirements
NuGet source rebuilds use reviewed Git repositories on configured source hosts. Build isolation, source-owner allowlists, private-source GitHub App access, artifact storage, signing keys, workflow secrets, the restore canary, and the source-rebuild canary must be configured before use. The organization feed uses Rorix-signed verification artifacts.
npm client setup
Use this guide when the npm registry is enabled for your organization. Rorix serves only versions approved and published in that organization. The default path keeps the exact upstream tarball bytes; it does not reproduce npm packages from source.
1. Approve your dependency graph
Open Package Firewall → npm → Approve dependencies. Upload your reviewed
package-lock.json (lockfile version 2 or 3), add review notes, and submit it.
Wait for the packages to show Published before installing. Approval queues
verification; it does not bypass vulnerability, license, integrity, signature,
or applicable Package Risk policy checks.
When a version is held, open its details to see the reason. An unapproved, pending, quarantined, failed, or withdrawn version cannot be installed.
2. Reuse an organization key
In Settings → API keys, use an active, unexpired key with Registry restore
(registry.read). Reuse an existing key with that scope; API read alone is
not sufficient. Keys belong to one organization, so another organization's key does
not grant access to these approvals.
Supply the token to the install process as RORIX_REGISTRY_TOKEN using your
local environment or CI secret store. Never commit it. Add this .npmrc to
your project; the variable reference is safe to commit:
registry=https://registry.rorix.io/npm/
//registry.rorix.io/npm/:_authToken=${RORIX_REGISTRY_TOKEN}
audit=falseRemove conflicting scoped registry settings if those packages must also come
from Rorix. Direct npm publish and npm audit proxying are not supported;
Rorix applies its own publication and restore policy.
3. Point the reviewed lockfile at Rorix
An existing lockfile can contain explicit upstream tarball URLs. Changing
.npmrc alone does not redirect those downloads.
Work on a copy of the approved lockfile. For each registry package, change only
its resolved URL to this form, using the package's real name and exact version:
https://registry.rorix.io/npm/<URL-encoded-package-name>/-/<version>.tgzFor example:
https://registry.npmjs.org/p-limit/-/p-limit-7.2.0.tgz
→ https://registry.rorix.io/npm/p-limit/-/7.2.0.tgz
https://registry.npmjs.org/@scope/name/-/name-1.2.3.tgz
→ https://registry.rorix.io/npm/%40scope%2Fname/-/1.2.3.tgzPreserve exact versions and integrity hashes. For npm aliases, use the target
package's name. Leave workspace links and file: dependencies local. In v2
lockfiles, update matching URLs in both packages and the legacy
dependencies tree. Review the diff before replacing package-lock.json in
your consumer checkout.
4. Install and check your application
Start in a disposable checkout with an empty cache and no node_modules:
npm ci --registry=https://registry.rorix.io/npm/ --cache .rorix-npm-cache --ignore-scripts --audit=falseThis checks package installation without lifecycle scripts. If your application needs those scripts, run its normal install and build in an isolated environment without production secrets. A fetch-only check does not prove the application build works. For strict Rorix-only traffic, restrict network access to Rorix too; a registry setting cannot restrict arbitrary installation scripts.
If installation fails
- Authentication: check the environment variable, key expiry, Registry restore scope, and selected organization. Never include the token in a ticket.
- Package unavailable: open Package Firewall → npm and check the package’s exact name, version, publication status, and decision details.
- Integrity mismatch: compare the lockfile with your reviewed publication. Do not remove integrity pins to make an install pass.
- Unexpected upstream traffic: check every
resolvedURL, scoped registry override, local cache, and lifecycle script.
If the decision is unclear, contact support with the package name, version, organization name, and error text. Omit API keys and other secrets.