Grafana JWT integration with Teleport #8633
Replies: 3 comments 5 replies
-
@stevenGravy Do I understand this correctly, that this example only allows on static user in Grafana? |
Beta Was this translation helpful? Give feedback.
-
Note for Grafana 10.x you'll also need to set the
|
Beta Was this translation helpful? Give feedback.
-
If you want to map Teleport roles to the Roles within grafana you can add the following to the
Where You may also need additional config on the Teleport app
|
Beta Was this translation helpful? Give feedback.
-
Here is a step through example of configuring Grafana to authenticate users with Teleport JSON Web Token (JWT)
Prerequisites:
Install Grafana
Have
docker
anddocker-compose
installed. Set these files.docker-compose.yaml
grafana.ini:
admin_user
to your Teleport user ([email protected]
,michelle
,...)root_url
andjwk_set_url
to your respective domain. Theroot_url
should be the url that will go through Teleport App Access./etc/teleport.yaml:
Set the
<authtoken>
,<ca-pin>
andpublic_addr
to your respective system values. You need a authtoken in this case that had anode
,app
.Start Grafana and Teleport
Access
Grafana app should now show in your list of applications
![image](https://user-images.githubusercontent.com/60704961/137490055-d71ea0f1-c2e7-483c-bdd7-43af9ecde947.png)
Select Launch and you should auto login. If you get a JWT error it's likely your user in Teleport does not match the
![image](https://user-images.githubusercontent.com/60704961/137490152-8a11622a-a968-4d6c-97dc-865dd1fbe2ab.png)
admin_user
or you did not enable the automatic sign up.
Beta Was this translation helpful? Give feedback.
All reactions