Skip to main content

Create an Upstream Proxy

Last updated on

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

Harness Secret Manager Required

Upstream registry authentication details must be stored in Harness Secret Manager.

External secret managers are not supported for upstream authentication.

This requirement ensures that Harness Artifact Registry can securely decrypt and validate credentials during authentication.

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.