Files
secustor 4f55ef29cf fix(host-rules): pass hostType at unscoped find() call sites
`hostRules.find()` only lets a rule through when the rule has no `hostType`
or its `hostType` equals the one being searched for. A search that passes
only a `url` therefore silently ignores every `hostType`-scoped rule, even
one whose `matchHost` matches exactly.

Behaviour changes - `hostType`-scoped host rules now apply at these sites:

- `mix`: a `hostType: 'hex'` rule for an organization repo URL is now used
  to authenticate against that organization.
- `pre-commit`: the pre-check that returned `unknown-registry` before the
  `hostType`-scoped loop is dropped, so a `hostType`-only forgejo, github
  or gitlab rule now resolves the datasource instead of being skipped.
- `util/http/github.ts`: the rate-limit warning now sees the rule
  `GITHUB_COM_TOKEN` registers (`hostType: 'github'`), so it reports
  "even though we are authenticated" rather than asking for that token.
- `util/http` rate limits: `concurrentRequestLimit` and
  `maxRequestsPerSecond` are read with the `hostType` of the `Http`
  instance making the request. The queue and throttle maps stay keyed by
  host alone, because concurrency is a property of the remote server.

The unscoped find in `pip-compile` is replaced separately, together with
the other Python index credential lookups.
2026-09-14 22:31:20 +02:00
..