-
Notifications
You must be signed in to change notification settings - Fork 1
change: default watchsession timeout of 1 hour #3
base: acorn
Are you sure you want to change the base?
Conversation
Signed-off-by: Thorsten Klein <[email protected]>
I don't see how this is improving anything.
If you looked up and used the remaining life of the token as the timeout, that would at least address 2 & part of 3 (normal token life, but not early deletes). And if it helps, signaling for 1 could be done by sending a |
Let's get @ibuildthecloud into this discussion, since we discussed this yesterday.
But the next
I agree with this.
This was discussed, but the decision was to keep it stupid and simple. The normal token life is 7 days. The only ways of doing this that I came up with before the meeting was
As per above, I think we should return |
Sure it probably does, but that is invisible to me. You cannot get any HTTP-level information out out of the browser WebSocket client. It's stupid, but that's the way it works. So your internet being down, a 200 because your company's SSL proxy ate the upgrade, a 401 because you're not logged in, a 500 because we're down, etc are all the same. I get one of bit of info, with no other detail available. "opened" or "error".
UI sessions are supposed to be 16 hours, though that doesn't seem currently true… |
We (temporarily) changed the sessions to last a week for the UI. I don't remember the exact reason, but I believe it was related to this. |
@iwilltry42 im going to move this to draft since its sat for so long. if you dont envision it moving forward, please close |
As per standup discussion, we want to drop eternal WatchSessions.
Since re-evaluation of AuthZ during the websocket loop proved to be too complex, we re-considered having a general timeout for watch sessions.
This doesn't explicitly fix the underlying issue https://github.com/acorn-io/manager/issues/857, since in the worst case one would still be able to see updates in the UI for one hour if the WatchSession was started right before the token expired / got deleted, but that's OK for now (no destructive or intrusive actions can be taken anyway).