Skip to main content

Create an Upstream Proxy

An Upstream Proxy in Harness Artifact Registry is a proxy configuration that allows your registry to automatically fetch and cache artifacts from external or remote registries. When a user requests an artifact that isn't available locally, the registry directs the request to the configured upstream proxy, retrieves the artifact, and caches it for future use.

Why use an upstream proxy?

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 (e.g., Docker Hub or Maven Central) and stored in your Upstream Proxy. This ensures continuous availability, even if the source repository 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 management
  • Access Control: Enforce your security policies while fetching artifacts
  • Reliability: Reduce dependency on external services by leveraging cached artifacts

Create an upstream proxy

Next steps: After you've created your upstream proxy, you will need to set it in a registry. To learn how to do so, go to Set an upstream proxy.