Skip to main content

Create an Upstream Proxy

An upstream proxy in Harness enables your artifact registry to automatically fetch and cache artifacts from remote sources when they are not available locally. It acts as an intermediary between your registry and external repositories such as Maven Central or Docker Hub.

tip

The upstream proxy is essential for caching open-source dependencies. During a build, if a required dependency is not already cached, it is retrieved from a public repository and stored in the Upstream Proxy artifact tab. This ensures continuous availability, even if the source repository (e.g. Docker Hub or Maven Central) experiences downtime. Harness’s caching mechanism enhances reliability and efficiency by reducing dependency on external services and safeguarding access to critical artifacts.

Key benefits

  • Caching: Faster access to artifacts by storing them locally once fetched.
  • Centralization: Consolidate external repositories into one location for easier access.
  • Access Control: Enforce your security policies while fetching artifacts.
  • Reliability: Reduce dependency on external services by leveraging cached artifacts.

Create an upstream proxy