kiwigrid / k8s-sidecar

This is a docker container intended to run inside a kubernetes cluster to collect config maps with a specified label and store the included files in a local folder.
MIT License
563 stars 181 forks source link

Support jwt token auth #321

Open jkroepke opened 7 months ago

jkroepke commented 7 months ago

As more secure alternative to auth basic, add the support via jwt token.

it should possible to define a token file and a header name to attach the token. The token file can be changed each hour.

Use case:

i have to disable the initial admin in grafana. I would like to enable jwt auth to allow login via kubernetes server account token, since its a short-living jwt token.

ref: https://github.com/grafana/grafana/issues/81794