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

Refresh exec-based API credentials when they expire #257

Closed
harryharpel opened this issue May 19, 2023 · 3 comments · Fixed by #258
Closed

Refresh exec-based API credentials when they expire #257

harryharpel opened this issue May 19, 2023 · 3 comments · Fixed by #258

Comments

@harryharpel
Copy link
Contributor

This issue is to track the problem found here in the non-async library kubernetes-client/python#741.

Currently the authorization token/api key is only refreshed when the config is initially loaded and the client does not support refreshing this credential when it expires.

This can be fixed in this library in a very similar way as it was fixed in the non-async library. Non-async fix: kubernetes-client/python-base#250.

@tomplus
Copy link
Owner

tomplus commented May 19, 2023

Thanks for the issue. You are right, refreshing credentials is implemented for providers: oidc, gcp and in the in-cluster config.

@harryharpel
Copy link
Contributor Author

I have a forked version that I have used in projects that fixes this. I will submit an upstream PR soon. 🙂

@tomplus
Copy link
Owner

tomplus commented May 19, 2023

It'd be fantastic if you could contribute. Thanks.

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

Successfully merging a pull request may close this issue.

2 participants