-
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
Host User Management deletes users that are not managed by Teleport #45411
Comments
Additionally, I think there's another problematic behaviour here where we are updating groups for users regardless of whether or not they were created by Teleport. Surely we only want to manage the groups of users that were created by Teleport? |
Do we know if this test case is a true constraint? Would we ever create a user that later needs the teleport service group attached? @rosstimothy If so would we be comfortable with something like:
|
That test case only seems to asserts that there are no errors - it's not awfully clear to me what behaviour it is trying to assert there. |
A user should only be added to the |
I opted to focus on the immediate problem with deletions, but it seems worthwhile to look into preventing group modification altogether for non-teleport users. Should that be its own issue? |
Expected behavior:
When using Drop or DropInsecure mode, only users that were created by Teleport will be deleted after they disconnect.
Current behavior:
When using Drop or DropInsecure mode, any user that logs in is deleted after they disconnect (for a second time).
Introduced by #41919
The PR included changes to ensure that the groups for existing users were reconciled on log in. The key flaw here is that the groups for any user are always updated to include the
teleport-system
group when the mode is set to Drop or DropInsecure. This means that after a pre-existing user logins in, they are now marked as a user that was created by Teleport. The logic should instead only add this group if the user did not already exist.Bug details:
The text was updated successfully, but these errors were encountered: