Files
renovate/lib
Jamie Tanna c11053adc3 fix(workers/global): apply internalHostAccess during platform init (#46542)
As noted in #45848, the platform initializes itself over HTTP inside
`globalInitialize()`, which happens before we set `endpoint` in
`GlobalConfig`.

This means that `isPlatformEndpoint()` would never be true during
Platform initialisation, so a self-hosted platform on an internal
address was judged as a host the administrator had not vouched for, and
logged:

    WARN: HTTP request to an internal host, which `internalHostAccess=block`
               would refuse ...
          "hostType": "gitea"

This also would apply to `internalHostAccess`'s setting, so even when
using `internalHostAccess=allow`, a warning would appear.

To handle this, we can make sure that we re-set the global values once
we've performed `globalInitialize`, in case global initialisation has
determined the `endpoint`, etc.

Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>
2026-09-29 08:19:35 +00:00
..