fluent / fluentd

Fluentd: Unified Logging Layer (project under CNCF)
https://www.fluentd.org
Apache License 2.0
12.83k stars 1.34k forks source link

Http output bearer token authentication #3587

Open yuvalavidor opened 2 years ago

yuvalavidor commented 2 years ago

Is your feature request related to a problem? Please describe.

not related to a problem

Describe the solution you'd like

HTTP output plugin supports only basic authentication would like to see the possibility to authenticate with a bearer token also

Describe alternatives you've considered

no alternative

Additional context

No response

weh commented 1 year ago

What do you have in mind? just a simple variant with a fixed token in the config file instead of user/password, or a fully fledged OAuth 2.0 integration? I could add the simple version if that helps.

yuvalavidor commented 1 year ago

the simple version will also give some value, since people have been using the password in that matter. these things could get passed as env variables or kubernetes secrets in templates anyways.

vara2504 commented 1 year ago

@fujimotos @weh :any update on this feature request. I am in need of this use case. when i use Authentication in custom header header {"Authentication": "BEARER "}, the value gets printed as such without mask in pod logs from fluentd.conf. @yuvalavidor Did you find any alternative or workaround for this usecase?