headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

[RFE] Enable extend getToken in plugin #761

Closed lijianzhi01 closed 1 year ago

lijianzhi01 commented 2 years ago

Current situation

Each k8s requests require a token read from localstorage through getToken().

Impact

If we cannot extend getToken, access token will be expired in about 30 minutes. And there is no appropriate timing to trigger extend expiration function.

Ideal future situation

In a scenario, access token should be fetched for extending expiration by fetching Restful API.

Implementation options

[ Optional: please provide one or more options for implementing the feature requested ]

Additional information

[ Please Add any information that does not fit into any of the above sections here ]

lijianzhi01 commented 2 years ago

Link to https://github.com/kinvolk/headlamp/issues/749

joaquimrocha commented 1 year ago

Closing in favor of #749