skip to content

Should your organisation air-gap dependency resolution behind an internal repository manager, and what does cutting the public upstream commit you to?

level: principalimportance: should knowfreq 33%

answer

  1. isolation is bought, not free
  2. nothing new without a transfer
  3. the emergency patch path
  4. two tiers as a middle ground

basics

~20 s

Air-gapping resolution removes the live upstream, so nothing new arrives except through a transfer you run; it buys isolation at the cost of an import pipeline, delayed versions and an emergency-patch path that someone must own.

solid answer

~50 s

It is a tradeoff, not a default. A connected proxy with namespace rules already keeps internal names off the public upstream and survives short outages. Disconnecting goes further: Artifactory's Global Offline Mode makes remote repositories serve as caches only, and new content enters by being exported outside and imported inside; for OCI artifacts, `oras backup` and `oras restore` exist for exactly that. What you commit to: a transfer pipeline with a cadence; version lists that advance only when you import; a fast path for a security fix that cannot wait for the next batch; storage for everything carried in; and an owner for all of it. I would disconnect where regulation or the threat model demands it, use a two-tier setup or a single proxied egress elsewhere, and measure how often teams wait for versions the inside does not have.

go deeper

for a junior

Recall that an air-gapped repository has no route to public registries, so new packages arrive only when someone transfers and imports them.

for a middle

Explain how a disconnected instance is configured to serve caches only, and how content crosses the gap as exported files or archives imported on the inside.

for a senior

Plan the operational pieces: transfer cadence, an expedited path for security fixes, storage and retention for imported content, and signs teams are working around the gap.

for a principal

Argue the choice from regulation, threat model and staffing, compare it with a connected proxy plus namespace rules or two tiers, and name who owns the result.

## The options on the table "Air-gapped resolution" means build machines cannot reach any public registry, and the repository manager inside the gap cannot either. It sits at one end of a range: | Option | What builds can reach | What it costs | |---|---|---| | Connected proxy | One repository manager, which fetches from public registries on demand | Least work; exposed to whatever the upstream serves and to its outages beyond the cache | | Connected proxy with namespace rules | The same, with internal names blocked from upstream resolution | A rule per upstream, kept current as teams add packages | | Two tiers | An inner instance that resolves only from an outer, connected instance | Two installations; one controlled egress point | | Fully disconnected | Only what has been carried in and imported | A transfer pipeline, delayed versions, an emergency path | The two-tier shape is common for container images: Harbor's documentation describes using a proxy cache to pull from a target Harbor or other registry for an environment with limited or no internet access. ## What disconnecting commits you to 1. **A transfer pipeline.** Something outside selects content, packages it, moves it across, and imports it inside. For OCI artifacts, ORAS provides `oras backup` to export to a local archive and `oras restore` to import into a registry with no internet access, preserving tags, manifests, layers and referrers. Package formats need their own export and import into hosted repositories. 2. **A cadence, and the delay it implies.** Inside the gap, a version list advances only when an import changes it. Metadata cache periods stop mattering, because there is no upstream to refresh from. 3. **An emergency path.** A security fix cannot wait for next month's batch. Decide in advance who may request an expedited transfer, who carries it, and how many hours it may take, and rehearse it. 4. **Storage.** Everything carried in stays unless a retention policy removes it, and the inside has no upstream to re-fetch from if it does. 5. **Configuration that says so.** Artifactory's Global Offline Mode makes remote repositories serve as caches only and stop proxying, which stops builds waiting on timeouts to an upstream they can never reach. 6. **An owner.** All of the above is a standing job, not a project. ## Signals for the decision - **Choose disconnection** when regulation or contract requires it, when build networks hold material that must never have an outbound path, or when an internal review has ruled any live upstream an unacceptable risk. - **Prefer a connected proxy with namespace rules** when the main worries are outages and internal names resolving from public registries; that setup addresses both with far less operating work. - **Consider two tiers** when you need one audited egress point but cannot staff a manual transfer process. - **Do not decide by format alone.** Teams that build containers, npm packages and Maven artifacts all need the same transfer discipline; a gap that works only for images pushes the others to unofficial routes. ## Measuring whether it works - How often teams wait for a version that exists upstream but not inside, and for how long. - How long the last expedited security transfer took, from request to a build using it. - Whether anyone has found an unofficial route around the gap, which is the strongest sign the official one is too slow. - Storage growth against the retention policy agreed for imported content. ## Common mistakes - **Treating the gap as finished once the software is installed.** The transfer process is the product; the installation is the easy part. - **Covering only container images.** Packages for every other format then cross by ad-hoc copies nobody records. - **Applying connected-world retention inside.** A cleanup that deletes imported content removes the only copy, because nothing inside can fetch it again. ## A defensible default For most organisations: a single repository manager as the only resolution path, namespace rules on every remote that faces a public registry, and builds denied direct internet access. Reserve full disconnection for the environments that require it, and run it with the transfer and emergency procedures written down and rehearsed. Deciding *which* packages are allowed in at all is a curation question that sits beside this one and needs its own owner.

  • What is a middle ground between a live proxy and a full air gap?
    A two-tier setup: an outer instance with internet access proxies the public registries, and the restricted network resolves only from it. Harbor's proxy cache supports this direction, pulling from a target Harbor or other registry for a network with limited access. You get one controlled egress point and a place to apply namespace rules, without carrying files across by hand.
  • How do you keep an emergency security fix from waiting on the transfer schedule?
    Define an expedited transfer in advance: who may request it, who carries and imports it, and a target time measured in hours. Rehearse it with a real package before you need it, because the first emergency is when missing permissions, oversized archives and untested import steps surface.

  • An air-gapped repository still picks up new versions on its next metadata refresh.
  • Air-gapping costs nothing once the repository manager is installed inside.
  • A connected proxy gives no protection, so only an air gap helps.
  • Replication between repository manager sites works across an air gap.