feature-request
Add auth option to external log drain
Please add auth option for external log drain requests. That way we can protect our log ingest endpoint by allowing only authorized agents.
Reference documentation here.
Proposed solution:
- Add an optional write-only auth field in the logs config form.
- If auth field not empty, add Authorization header with the value from auth field on requests to external log drain endpoint.
Example:
auth field contains value Basic YWRtaW46cGFzc3dvcmQ=
, results in a header Authorization: Basic YWRtaW46cGFzc3dvcmQ=
This also allows for other types of auth, like Bearer and Api-Key tokens.