feat: HTTP Bearer Authorization for simple use cases#193
feat: HTTP Bearer Authorization for simple use cases#193robbat2 wants to merge 1 commit intoprometheus:masterfrom
Conversation
|
I wonder if we should support arbitrary headers, rather than specifically one kind of bearer token. The reason we have the basic auth here is because there's some standard encoding involved. |
|
I actually started considering other auth to add, including HTTP Digest (which also needs special handling like Basic) For your proposal, it would be match header to accept: |
|
Some work on Digest auth was being done over in the common package. |
Add support for HTTP Bearer Authorization for simple use cases, where HTTP Basic might not fit workflows. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
@SuperQ hmm, reading that, I realize there is more auth support in common already that not being exposed in toolkit; should I include that in this PR? |
Anything beyond basic auth would require you to set a proxy. The exporter toolkit is limited to: TLS, and simple use case. The idea is to enable you to have a trusted connection between your exporter and the proxy of your choice. |
Add support for HTTP Bearer Authorization for simple use cases, where HTTP Basic might not fit workflows.
Signed-off-by: Robin H. Johnson robbat2@gentoo.org