CustomDashboard need for token?

Skip to first unread message

Marc Boorshtein

Jan 7, 2021, 3:34:47 PM1/7/21
to kiali-dev
I'm just about ready to submit a PR for  Looking at CustomDashboard ( gets the token from the request instead of loading it from the context.  Is this correct or should this code be loading the token the same any other API call would?


Joel Takvorian

Jan 8, 2021, 4:09:12 AM1/8/21
to Marc Boorshtein, kiali-dev
Hi Marc,

Yes I don't see any reason why it should differ from the other calls that make use of tokens. I haven't followed in deep the changes you are doing, but if it can help here is a brief explanation of how the custom dashboards wrt prometheus connection:

- It queries prometheus, but not necessarily the same prometheus as the "main" one that is used in other places. An alternate prometheus might be configured for the sole purpose of custom dashboards (described here:
- So, this alternate prometheus can come with its own authentication settings
- If the alternate prometheus is not configured, then the "main" prometheus is used (the switch happens there: )

But the same logic should apply, I think, regarding how the tokens are read.
I hope I answered your question, let me know...

You received this message because you are subscribed to the Google Groups "kiali-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Marc Boorshtein

Jan 8, 2021, 9:43:51 AM1/8/21
to kiali-dev
Awesome, thanks Joel!
Reply all
Reply to author
0 new messages