feat: Allow solvers to specify custom headers with their requests #2372
Labels
E:3.1 Driver Colocation
See https://github.com/cowprotocol/pm/issues/14 for details
help wanted
Extra attention is needed
Problem
Solvers may have custom authentication logic based on HTTP headers which they need to configure for their solvers.
Suggested solution
The code has already been prepared with a comment here:
services/crates/driver/src/infra/solver/mod.rs
Lines 102 to 119 in 2a25e9c
We should make the exact header name also configurable in the
toml
config cf:services/crates/driver/example.toml
Lines 1 to 7 in 2a25e9c
Maybe we can add an optional headers list with key value pairs to this config object and pass it all the way through to the infra component above.
Acceptance criteria
The text was updated successfully, but these errors were encountered: