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

Trouble with "Kubernetes bearer token authentication" #10

Closed
jynok opened this issue Sep 27, 2019 · 3 comments
Closed

Trouble with "Kubernetes bearer token authentication" #10

jynok opened this issue Sep 27, 2019 · 3 comments

Comments

@jynok
Copy link

jynok commented Sep 27, 2019

Hi,

I'm using Grafana v5.0.4 (commit: 7dc36ae) and kubegraf 1.1.0

When defining my cluster, I see the new "Bearer token access" label but ... nothing more (no checkbox):
image

image

Is there anything special to fill and/or configure to make the "Access via token" checkbox accessible? Feeling that I'm missing something obvious...

Thanks a lot!

JYC

@SergeiSporyshev
Copy link
Collaborator

SergeiSporyshev commented Sep 30, 2019

Hi!
Thank you for issue
Fixed
https://github.com/devopsprodigy/kubegraf/releases/tag/v1.1.1

@jynok
Copy link
Author

jynok commented Oct 1, 2019

Thanks @SergeiSporyshev.

Tried 1.1.1 and now have the Access via token checkbox and token field available :-)

But now I'm facing another issue, data source creation fails (Data source is not OK is displayed).

In logs, I have the following:

t=2019-10-01T07:57:22+0000 lvl=info msg=Requesting logger=data-proxy-log url=%7B%7B%20.JsonData.cluster_url%20%7D%7D/api/v1/namespaces
2019/10/01 07:57:22 http: proxy error: unsupported protocol scheme ""

Will try to dig deeper into this new issue and open another ticket if I don't find the solution.

@jynok
Copy link
Author

jynok commented Oct 1, 2019

OK, correct me if I'm wrong but I think dynamic routes (that you're using for access via token) are not supported in Grafana 5; that would explain why the url hasn't been replaced by the value coming from jsonData ^_^

I'll try this again if/when we'll be able to move to Grafana 6.

Thanks again for your plugin and help (even if it seems what you did to support the checkbox for Grafana 5 has been somehow a waste, sorry for that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants