getindata / kedro-airflow-k8s

Kedro Plugin to support running pipelines on Kubernetes using Airflow.
https://kedro-airflow-k8s.readthedocs.io
Apache License 2.0
29 stars 11 forks source link

Support for passing Authorization header for secured Airflow #94

Closed szczeles closed 3 years ago

szczeles commented 3 years ago

This change provides ability to set Authorization header while accessing Airflow API. The token can be injected via the environment variable, in the mlflow-like way here: https://github.com/mlflow/mlflow/blob/master/mlflow/utils/rest_utils.py#L44 and here: https://github.com/mlflow/mlflow/blob/master/mlflow/tracking/_tracking_service/utils.py#L125


Keep in mind:

szczeles commented 3 years ago

@michalzelechowski-getindata Great idea, I have added a documentation with sample Istio filter (as authorization layer) and plugin usage. Please have a look, if everything looks clear I will merge PR and release new version

michalzelechowski-getindata commented 3 years ago

@szczeles , that's just awesome!