Skip to content
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

Add option to allow for host users not to be deleted #26892

Merged
merged 12 commits into from
Jun 23, 2023
Merged

Conversation

lxea
Copy link
Contributor

@lxea lxea commented May 25, 2023

This adds a new role option called create_host_users_mode which allows for it to be configured to not delete users when a session ends. The old create_host_user option will be deprecated with this and if the create_host_user_mode option is set it'll always be preffered over create_host_user.

If the deprecated option is set, the new mode option will default to dropping users as is the current behavior.

@lxea lxea force-pushed the lxea/perma-host-users branch from f3fcffc to e86423d Compare May 26, 2023 09:41
@lxea lxea marked this pull request as ready for review May 26, 2023 09:41
@lxea lxea force-pushed the lxea/perma-host-users branch 2 times, most recently from 908e4cc to 19916ad Compare May 29, 2023 13:27
Copy link
Contributor

@smallinsky smallinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass. Could you fix CI and UT build. Also wonder if you can share any reference for this change ?

@lxea lxea force-pushed the lxea/perma-host-users branch from 19916ad to dde1459 Compare May 30, 2023 11:34
@lxea
Copy link
Contributor Author

lxea commented May 30, 2023

First pass. Could you fix CI and UT build. Also wonder if you can share any reference for this change ?

Theres an RFD update here with some information #27074

@lxea lxea force-pushed the lxea/perma-host-users branch 2 times, most recently from 816e411 to 5897ffb Compare June 1, 2023 11:43
@smallinsky smallinsky self-requested a review June 1, 2023 13:18
@lxea lxea force-pushed the lxea/perma-host-users branch 13 times, most recently from 8ef4c68 to b620787 Compare June 9, 2023 10:48
@smallinsky smallinsky self-requested a review June 12, 2023 13:46
@r0mant
Copy link
Collaborator

r0mant commented Jun 21, 2023

@Joerger @gabrielcorado @smallinsky Can you guys review this?

Copy link
Contributor

@smallinsky smallinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I had stashed uncommitted review.

Mostly LGT though I would love to see UT coverage for Marshal/Unmarshal function.

@lxea lxea force-pushed the lxea/perma-host-users branch 3 times, most recently from 32f61ba to 745ce36 Compare June 21, 2023 13:18
Copy link
Contributor

@Joerger Joerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some nit-picks

This adds a new role option called create_host_users_mode which allows
for it to be configured to not delete users when a session ends. The
old `create_host_user` option will be deprecated with this.

If the deprecated option is set, the new mode option will default to
dropping users as is the current behavior.
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from gabrielcorado June 22, 2023 11:30
@lxea lxea force-pushed the lxea/perma-host-users branch from bceb7ea to 6f604b2 Compare June 22, 2023 11:31
@lxea lxea added this pull request to the merge queue Jun 23, 2023
Merged via the queue into master with commit e2b76bb Jun 23, 2023
@lxea lxea deleted the lxea/perma-host-users branch June 23, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants