Respect disabled hostRules (enabled: false) globally in datasources and lockfile updates #44346
loganprice
started this conversation in
Suggest an Idea
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
In airgapped or strictly controlled internal network environments, Renovate has no access to public internet registries (such as
api.nuget.org,registry.npmjs.org, orpypi.org).Currently, users can configure
hostRuleswithenabled: falseto block traffic to these public registries. While this blocks outbound requests at the HTTP layer, it still leads to lookup warnings, noisy error logs, and package manager restore failures because:nuget.config,.npmrc, or keyring environment variables) that hardcode or reference these disabled hosts, causing the lockfile generation tools (dotnet restore, npm install, pipenv lock, etc.) to attempt to connect to them.Proposed Solution: Introduce a helper isRegistryDisabled(url, hostType) to check hostRules and apply it to:
Beta Was this translation helpful? Give feedback.
All reactions