You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2021. It is now read-only.
After some interval or incidents devtools-sre token gets updated. However, Idler is not able to understand the change in OSO token. Hence all watch requests for cluster starts failing.
The only way to get the updated token is to restart the idler.
Idler needs to sync the new cluster token as soon as it receives the 401 HTTP response. (a demand paging like)
The text was updated successfully, but these errors were encountered:
Well, I think we should not cache clusters at all. Let's just load clusters by URL when we need them: GET https://cluster.openshift.io/api/clusters?cluster-url={apiURL}
And obtain the token when you need it via auth token endpoint which you already do but without caching it: GET https://auth.openshift.io/api/token?for={apiURL}
Cluster service watches the cluster configuration secret. So, when the secret with the cluster configuration is changed the cluster service immediately updates its DB.
Auth service pulls the cluster tokens every 5 minutes to update its local cache. We planned to drop the cache as part of our OSD support and obtain the token every time we need it but we will probably suspend this work for now.
So, my suggestion would be that all other clients do not implement or use any cache at all. Just pull the cluster information when you need it from the cluster service and the cluster token when you need it from the auth service. Right now practically it would mean that if there is a new cluster added to the system then it will be available for every service immediately. If there is some changes in the existing cluster configuration (like updated token) then the change will be available in 5 minutes or less. No any service restarts required.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After some interval or incidents
devtools-sre
token gets updated. However, Idler is not able to understand the change in OSO token. Hence all watch requests for cluster starts failing.The only way to get the updated token is to restart the idler.
Idler needs to sync the new cluster token as soon as it receives the 401 HTTP response. (a demand paging like)
The text was updated successfully, but these errors were encountered: