- What Grafana version and what operating system are you using?
helm chart 6.43.0
App 9.2.1
- What are you trying to achieve?
Login by passing JWT token in URL
- How are you trying to achieve it?
auth.jwt:
enabled: true
jwk_set_url: https://<URL>/dex/keys
role_attribute_path: "contains(groups[*], 'GrafanaAdmin') && 'Admin' || 'Viewer'"
url_login: true
auto_sign_up: true
enable_login_token: true
header_name: X-Forwarded-Access-Token
- What happened?
Auth fails, seems the problem is when it tries to get the Key set, https request fails because it doesn’t trust the CA
logger=auth.jwt t=2022-11-07T10:54:31.941329221Z level=debug msg="Parsing JSON Web Token"
logger=auth.jwt t=2022-11-07T10:54:31.941565034Z level=debug msg="Getting key set from endpoint" url=https://<URL>/dex/keys
logger=context t=2022-11-07T10:54:31.952928887Z level=debug msg="Failed to verify JWT" error="Get \"https://<URL>/dex/keys\": x509: certificate signed by unknown authority"
logger=context t=2022-11-07T10:54:31.952955519Z level=error msg="Invalid JWT" error="Get \"https://<URL>/dex/keys\": x509: certificate signed by unknown authority" traceID=
So, how do you configure the CA use when connecting to the jwk_set_url?