-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[v9] Fix session tracker backwards compatibility. #12728
[v9] Fix session tracker backwards compatibility. #12728
Conversation
117c8f0
to
2840f3f
Compare
// Ignore access denied errors, which we may get if the auth | ||
// server is v9.2.1 or earlier, since only node, proxy, and | ||
// kube roles had permission to create session trackers. | ||
if !trace.IsAccessDenied(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you get access denied and session tracker is not actually created? Will anything break down the road?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case we are treating that access denied error as a not found error, which is expected since the server can't create/get session trackers. This essentially just maintains the old grace period logic for app, db, and desktop servers with a pre-v9.2.2 auth server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with a better log message
…s db, app, or windows desktop service. Add go.work files to .gitignore.
2840f3f
to
84486f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one super small nit
|
||
# Go workspace files | ||
go.work | ||
go.work.sum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I had auto-merge on 😅
Ignore access denied errors when creating/getting a session tracker as
db
,app
, orwindows desktop
service. This fixes compatibility with auth servers which are between v9.0.0 and v9.2.1, where access was only granted toproxy
,kube
, andnode
roles.This change does not need to be applied to master (v10)