Add and prioritise upstream proxies
Attach one or more upstream proxies to a registry and set the order in which they are consulted when an artifact is not found locally.
After creating an upstream proxy, you attach it to one or more registries. When a client requests an artifact that is not stored locally, Harness queries the attached proxies in the order you define until one returns the artifact.
You can attach upstream proxies of matching format or, when the feature flag is enabled, other Harness registries of the same type.
Before you begin
The upstream proxy must already exist before you can attach it to a registry. Go to Create an upstream proxy to create one.
Your role must include Create/Edit permission on the registry. Go to RBAC and permissions for details.
Add upstream proxies to a registry
In the left navigation, select Registries.
Click the registry you want to configure.
Select the Configuration tab.
In the Upstream proxy section, click the edit icon to open the Configure and prioritise upstream proxy drawer.
In the Select upstream proxy picker, search for and select the proxies you want to attach. You can select multiple proxies.
Click Apply.
In the Selected proxies list, drag the rows to set the lookup order.
Save the setting.
Harness queries proxies from top to bottom. The first proxy that has the requested artifact serves the response and Harness caches it locally.
Prioritise proxies
The order of proxies matters. When a client requests an artifact, Harness checks the local registry first. If the artifact is not found, it queries the upstream proxies from the top of the list downward.
Place the proxy most likely to have your artifacts at the top to minimise latency and unnecessary upstream requests.
Add another Harness registry as an upstream source
You can aggregate multiple Harness registries into a single access point by adding a Harness registry as an upstream source. This is useful when you want to serve artifacts from several project-level registries through one account-level entry point.
When adding a Harness registry as an upstream source, the registry must have no upstream proxies configured within it.
Remove an upstream proxy
Open the registry's Configuration tab.
In the Upstream proxy section, open the edit drawer.
Deselect the proxy you want to remove and click Apply.
Save the setting.
Removing a proxy does not delete the proxy itself; it only detaches it from this registry. Existing cached artifacts in the proxy remain available until removed by a lifecycle rule or manually deleted.
Troubleshooting
Next steps
Dependency Firewall overview: apply security policies to artifacts fetched through proxies
Lifecycle management overview: automate cleanup of cached artifacts
Last updated
Was this helpful?