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

auto renewal of refresh token, update cfclient #62

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

RalfHammer
Copy link
Contributor

@RalfHammer RalfHammer commented Sep 26, 2024

Update go-cfclient
Caching of CF client instances requires proper renewal of oauth tokens.
Therefore, we update to newer version of go-cfclient (v3.0.0-alpha.6 includes improvements).
However, we update directly to newest version v3.0.0-alpha.9.

Auto renewal of CF refresh token
When we started to cache the cf client, the cached cf refresh token won't be recreated until operator restart.
After around 24 hours (depends on server setting) the refresh token gets expired.
The go-cfclient won't handle this expiration (details cloudfoundry/go-cfclient#170).
Solution: Let's periodically delete the cached cf client in order to renew the refresh token.

@RalfHammer RalfHammer added not ready to review bug Something isn't working labels Sep 26, 2024
@uwefreidank uwefreidank marked this pull request as ready for review October 4, 2024 12:44
@uwefreidank uwefreidank changed the title Update cfclient auto renewal of refresh token, update cfclient Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants