Is there a way to access kiali api by token in openshift #3863
Replies: 5 comments 2 replies
-
Can you ellaborate this ? Kiali API is not designed to be query outside of the Kiali UI context. For OpenShift deployments, Kiali takes the user token to apply RBAC rights in all queries between user -> Kubernetes API. Which use cases are you trying to develop here ? |
Beta Was this translation helpful? Give feedback.
-
@lucasponce It is our private solution to provide the graph like kiali. We do not use kiali directly because we want to show the graph to user only by "product"(maybe a chart) level but not "namespace" level. |
Beta Was this translation helpful? Give feedback.
-
Found there is a "kiali-token" in cookie, I can use this token as a bearer token in postman to get some data. Is there a way to get the "kiali-token" outside? |
Beta Was this translation helpful? Give feedback.
-
Kiali is an open source project, if you use for your product and you have ideas to improve, we are typically open to study them and we invite users to collaborate. Kiali has a "kiosk" mode used for similar scenarios as you describe, that was introduced from a similar request as yours but time ago. But, Kiali API was discussed in the past that is changing a lot and there is not public contract, in other words, it's responsability of the user to keep it updated, but API can change in any kiali version as it's intended to be used only to the Kiali UI code. In the backend/frontend repo you could get details about the use of the "kiali-token" in the code, the public documentation for this section is in [1] [1] https://kiali.io/documentation/latest/configuration/rbac/ |
Beta Was this translation helpful? Give feedback.
-
I converted to a discussion as this isn't a bug report, but more of a question on how to do something. Check out the docs that Lucas points out. There is also the "token" auth strategy, but I don't think it is what you are asking about - but might be useful to know: https://kiali.io/documentation/latest/configuration/authentication/token/ |
Beta Was this translation helpful? Give feedback.
-
I am using openshift 4.6 and installed the service mesh components via operator. Now I have a requirement to use openshift token or some other methods to access kiali api outside. For other components install by service mesh operator, like grafana, prometheus, jaeger, I can use token to access api because there is oauth-proxy in front of them. But seems kiali is installed without oauth-proxy, only a configuration strategy: openshift to achieve this. Is there a way to access kiali api by token in openshift? Thanks
Beta Was this translation helpful? Give feedback.
All reactions