Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically construct jwk_set_url by using kid as part of the URL #44261

Closed
anilmujagic opened this issue Jan 20, 2022 Discussed in #44196 · 1 comment
Closed

Dynamically construct jwk_set_url by using kid as part of the URL #44261

anilmujagic opened this issue Jan 20, 2022 Discussed in #44196 · 1 comment

Comments

@anilmujagic
Copy link

I'm using Grafana behind AWS load-balancer, which is responsible for authentication and is then providing a JWT in the request header to Grafana. However, I can't configure the JWT auth due to Grafana requiring statically configured jwk_set_url, which is not possible in this case, since AWS load-balancer has a different URL for each key, as explained in the documentation.

Would it be possible to enable specifying a placeholder in the jwk_set_url, which will be replaced by kid or even any other part of the JWT. For example:

[auth.jwt]
enabled = true
header_name = x-amzn-oidc-data
username_claim = sub
email_claim = email
jwk_set_url = https://public-keys.auth.elb.eu-west-1.amazonaws.com/{{kid}}/.well-known/jwks.json
@hugohaggmark hugohaggmark added the bot/question Bot will close with standard question comment and add label type/question label Jan 21, 2022
@grafanabot
Copy link
Contributor

Please ask your question on community.grafana.com/. To avoid having your issue closed in the future, please read our CONTRIBUTING guidelines.

Happy graphing!

@grafanabot grafanabot removed the bot/question Bot will close with standard question comment and add label type/question label Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants