eclipse-hono / hono

Eclipse Hono™ Project
https://eclipse.dev/hono
Eclipse Public License 2.0
449 stars 137 forks source link

Implement K8s token-based authentication handler for device registry #1867

Open dejanb opened 4 years ago

dejanb commented 4 years ago

We have a support pluggable authentication handler in Hono device registry management endpoint. #1864 aims to provide support for basic authentication. For better integration in Kubernetes environments we can provide an authentication based on k8s bearer tokens.

kaniyan commented 4 years ago

@dejanb I would like to start with #1864 which aims to provide support for basic authentication. As I understood from the last meeting, that this pluggable authentication handler that is mentioned here also supports basic authentication. Please correct me if I understood wrongly.

dejanb commented 4 years ago

@kaniyan Great. So every HTTP service have a pluggable AuthHandler

https://github.com/eclipse/hono/blob/master/service-base/src/main/java/org/eclipse/hono/service/http/HttpServiceBase.java#L62

If instantiated it will be used in all routes.

The best way to start looking into how to plug basic auth is here

https://vertx.io/docs/vertx-web/java/#_authentication_authorisation

Let me know if I can help with anything.

kaniyan commented 4 years ago

@dejanb Thank you, I will take a look.