hostRules: support dynamic username/password/token fields in config.js #31769
Labels
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:feature
Feature (new functionality)
Describe the proposed change(s).
Some users have the need to use rotating credentials. We should enhance
hostRules
so thatusername
,password
andtoken
fields can be a function, which Renovate awaits on before returning.Example config.js after:
hostRules
functions inlib/util/host-rules
which can return credentials (such as find, findAll) should be modified to resolve such fields before returning them when they're a function like this. Such function will themselves now need to be awaitable.Internally we should keep the
HostRule
type as having strings, but add a newInternalHostRule
type we use for storage which allows strings or functions.The text was updated successfully, but these errors were encountered: