Fix session tracker backwards compatibility.#12795
Conversation
…s db, app, or windows desktop service.
There was a problem hiding this comment.
I'm not super familiar with event upload logic, so it's a bit hard to reason about the fact that all AccessDenied errors are safe to swallow.
Is it worth trying to put a test together for this situation?
What do we get by forward porting if it's not necessary? Could this have undesirable side-effects?
to reduce conditional nesting.
354818f to
ff0f9b9
Compare
We expect to get teleport/lib/events/complete.go Lines 158 to 161 in b780f0d With this change we are essentially handling AccessDenied errors in the same way, and defaulting to the grace period logic. So even if we got AccessDenied for another reason (although we never should), then we still have the grace period to fall back on.
Sure, I've added it to the grace period test.
Although we don't formally support |
codingllama
left a comment
There was a problem hiding this comment.
Thanks for the explanation, Brian. Very helpful.
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
32e31d3 to
3f52897
Compare
Forward port of #12728
This isn't strictly necessary, since v10 auth servers aren't expected to be fully compatible with v9 services (nodes, etc.), but it's an easy forward port and was requested.