Add support for authentication (Bearer, Basic Auth and TLS) to the Prometheus scaler.
I would like to use KEDA in a OpenShift 4 cluster and scale workloads using the Prometheus scaler. OpenShift's monitoring stack includes Prometheus which is accessible via Thanos Querier, which in turn has a oauth-proxy in front of it.
This means that the scaler would need to be able to pass OAuth Token in order to execute a query.
Tell us more what you'd like to achieve
Additionally the recent releases of Prometheus support Basic and TLS auth so this would be a nice addition too.
Seems like a valid usecase, are you willing to contribute this?
This is (auth) something we are looking for as well, came here to create an issue, found this.
We are looking for something simper though, like basic auth. If there is a consensus, I could add that.
@zroubalik yes, I can add that. @surki Are planning to add token auth as well or just basic auth?
@marpio @surki cool, I'll leave it up to you! Thanks!
Just please try to follow other scalers and how are they dealing with authentication. So we have consistent user experience. Thx!
@marpio OT: I'd be interested to know more about your usage of KEDA on OpenShift? Could you please contact me on kubernetes slack or on email? Thanks!
@marpio I am looking at just basic auth. If you are planning to add both, I could wait. thanks.
@surki yes, I'm planning to do both. I need this feature soon and will start implementing it tomorrow so it shouldn't take long.