[airflow-chef] Use assigned roles in JWT to determine if a user is admin

Description

In JWTs issued by Hopsworks we set the roles of a user. We should check if the user has 'HOPS_ADMIN' role to determine if he is a superuser. We don't need to validate the signature of the token in airflow authentication module. If it is tampered, Hopsworks will reject it and airflow will not login the user.

Assignee

Antonios Kouzoupis

Reporter

Antonios Kouzoupis

Labels

None

Fix versions

Priority

Medium
Configure