Antonin Stefanutti
Antonin Stefanutti
@johnpoth the `refresh_token` method returns `false` when there is no expiration date: console.log((undefined - Date.now()) < 5000) > false So we may have to add a condition to check whether...
@johnpoth I've just realised the expiry is set there: https://github.com/astefanutti/kubebox/blob/f8cb4db7688be5316d7cf87ce3b677911f18755b/lib/config/user.js#L143 It seems it'd be easier to reason about if it would not be initialised... Could it be the login sequence...
@vgibilmanno could you update your _kubeconfig_ manually and add a `token` field with the copied token returned by AWS CLI, e.g.: ``` users: - name: SOMENAME user: token: PASTE THERE...
@vgibilmanno the token may just be truncated in the UI. Have you changed the `KUBECONFIG` environment variable or does you `/root/.kube/config` file contain multiple contexts?
@vgibilmanno Can you also just try a second time connecting, by just pressing enter when the login widget displays with the error message?
@vgibilmanno thanks for the feedback. Would you mind checking you have only one context defined in your _kubeconfig_ file?
@vgibilmanno thanks. May I ask, is there a token filled in the login widget when using the original _kubeconfig_, before adding the token manually to it? Finally could you double...
@vgibilmanno thanks again. Just one last test if you don't mind (sorry). Could you re-try the same test of adding the token manually to your _kubeconfig_ file AND removing the...
OK thanks a lot! So there is a request Kubebox does and that's not authorised for your user. Let me check and come back to you. Thanks again!
@vgibilmanno if you could try executing the following commands and provide the results: ```sh $ curl -k -v -H "Authorization: Bearer " https://OMITTED.amazonaws.com/ $ curl -k -v -H "Authorization: Bearer...