hono icon indicating copy to clipboard operation
hono copied to clipboard

Implement K8s token-based authentication handler for device registry

Open dejanb opened this issue 5 years ago • 3 comments

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.

dejanb avatar Apr 01 '20 14:04 dejanb

@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.

kaniyan avatar Apr 15 '20 07:04 kaniyan

@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.

dejanb avatar Apr 15 '20 11:04 dejanb

@dejanb Thank you, I will take a look.

kaniyan avatar Apr 15 '20 11:04 kaniyan