Skip to content

Support explicit whitelisting of private-network upstreams - #223

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

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).

@andrew
andrew marked this pull request as draft August 3, 2026 10:16
@andrew

andrew commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

converting to draft until git-pkgs/registries#51 is merged

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.

2 participants