Skip to content

Support explicit whitelisting of private-network upstreams - #223

Open
Tilian wants to merge 1 commit into
git-pkgs:mainfrom
Tilian:feat/allow-private-hosts
Open

Support explicit whitelisting of private-network upstreams#223
Tilian wants to merge 1 commit into
git-pkgs:mainfrom
Tilian:feat/allow-private-hosts

Conversation

@Tilian

@Tilian Tilian commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Depends on git-pkgs/registries#51.

Upstream fetches go through registries' dial gate which refuses connections to loopback and link-local addresses.
This currently makes using a deliberately-internal upstream impossible.

This PR exposes registries' new per-host opt-out in config:

upstream:
  maven: "http://maven-mirror.internal.svc.cluster.local:8080/releases"
  allow_private_hosts:
    - "maven-mirror.internal.svc.cluster.local"

or PROXY_UPSTREAM_ALLOW_PRIVATE_HOSTS=host1,host2 (comma-separated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant