-
Sub-task
-
Resolution: Done
-
L3 - Default
-
None
-
None
-
Not defined
Similar to our other plugins, we should add an interception point before we make requests to ES, allowing configured plugins to add headers to the request. This will support the use case for token-based authentication, but removes Optimize from the process of requesting or even understanding the tokens.
ATs:
- A plugin can be configured to add a custom authorization header to all ES requests
- Optimize is a kind of dumb client to this plugin. If ES rejects requests as a result of an added header, Optimize is not expected to handle this scenario (it will log error outputs in any case)