Keda: Add support for authentication (Bearer, Basic Auth and TLS) to the Prometheus scaler

Created on 3 Feb 2021  路  8Comments  路  Source: kedacore/keda

Add support for authentication (Bearer, Basic Auth and TLS) to the Prometheus scaler.

Use-Case

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.

Specification

  • [ ] Support OAuth token based authentication
  • [ ] Support Basic Auth
  • [ ] Support TLS authentication
feature-request needs-discussion

All 8 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeffhollan picture jeffhollan  路  5Comments

aman-bansal picture aman-bansal  路  4Comments

slayer picture slayer  路  4Comments

joskfg picture joskfg  路  4Comments

lee0c picture lee0c  路  4Comments