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

Host User Creation - update groups for existing users #41919

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

atburke
Copy link
Contributor

@atburke atburke commented May 22, 2024

This change fixes a bug in host user creation where Teleport would not update the groups of a returning user if the groups were changed in the user's role.

Fixes #41178.

Changelog: Fixed updating groups for Teleport-created host users

@atburke
Copy link
Contributor Author

atburke commented May 24, 2024

Friendly ping @gabrielcorado @timothyb89

Copy link
Contributor

@timothyb89 timothyb89 left a comment

Choose a reason for hiding this comment

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

I think this works, but just have a question that's (probably?) more about the historical implementation than your change. I'm happy to change to an approval if you think I'm off base or further changes are out of scope.

lib/srv/usermgmt.go Outdated Show resolved Hide resolved
@programmerq
Copy link
Contributor

#40967 might have implications related to this PR. If we were to implement that other request, I imagine it would introduce additional cases to be considered by this code.

@atburke
Copy link
Contributor Author

atburke commented Jun 11, 2024

Friendly ping @gabrielcorado

This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
@atburke atburke enabled auto-merge June 11, 2024 19:08
@atburke atburke added this pull request to the merge queue Jun 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2024
@atburke atburke added this pull request to the merge queue Jun 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 12, 2024
@atburke atburke added this pull request to the merge queue Jun 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 12, 2024
@atburke atburke enabled auto-merge June 12, 2024 16:56
@atburke atburke added this pull request to the merge queue Jun 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 12, 2024
@atburke atburke added this pull request to the merge queue Jun 12, 2024
Merged via the queue into master with commit 5a3719e Jun 12, 2024
37 checks passed
@atburke atburke deleted the atburke/host-user-groups branch June 12, 2024 18:00
@public-teleport-github-review-bot

@atburke See the table below for backport results.

Branch Result
branch/v13 Failed
branch/v14 Failed
branch/v15 Failed
branch/v16 Create PR

atburke added a commit that referenced this pull request Jun 12, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
atburke added a commit that referenced this pull request Jun 12, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
ptgott pushed a commit that referenced this pull request Jun 12, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
ptgott added a commit that referenced this pull request Jun 12, 2024
* Update host user groups for existing users (#41919)

This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.

* improve dynamodb permission error msg (#42855)

* improve dynamodb permission error msg

* Update lib/backend/dynamo/atomicwrite.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Fix GCP metadata errors crashing Teleport (#42696)

* Web: Fix differing duration between unified resource and access request page (#42742)

* Web: refactor and fix anti-pattern in access request

* Update affected teleterm files

* Address CR and fix updating duration should update pending

* Fix test and stories

* Reorganize Access Controls guides

Move Access Controls giudes into References or Admin Guides, as
appropriate.

Also reorganizes the Admin Guides section to reduce the size of the
table of contents page.

---------

Co-authored-by: Andrew Burke <31974658+atburke@users.noreply.github.com>
Co-authored-by: Forrest <30576607+fspmarshall@users.noreply.github.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Lisa Kim <lisa@goteleport.com>
ptgott added a commit that referenced this pull request Jun 12, 2024
* Update host user groups for existing users (#41919)

This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.

* improve dynamodb permission error msg (#42855)

* improve dynamodb permission error msg

* Update lib/backend/dynamo/atomicwrite.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Fix GCP metadata errors crashing Teleport (#42696)

* Web: Fix differing duration between unified resource and access request page (#42742)

* Web: refactor and fix anti-pattern in access request

* Update affected teleterm files

* Address CR and fix updating duration should update pending

* Fix test and stories

* Reorganize Access Controls guides

Move Access Controls giudes into References or Admin Guides, as
appropriate.

Also reorganizes the Admin Guides section to reduce the size of the
table of contents page.

---------

Co-authored-by: Andrew Burke <31974658+atburke@users.noreply.github.com>
Co-authored-by: Forrest <30576607+fspmarshall@users.noreply.github.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Lisa Kim <lisa@goteleport.com>
atburke added a commit that referenced this pull request Jun 14, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
atburke added a commit that referenced this pull request Jun 14, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
github-merge-queue bot pushed a commit that referenced this pull request Jun 14, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
atburke added a commit that referenced this pull request Jun 14, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
github-merge-queue bot pushed a commit that referenced this pull request Jun 14, 2024
This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.
ptgott added a commit that referenced this pull request Jun 17, 2024
* Update host user groups for existing users (#41919)

This change fixes a bug in host user creation where Teleport would not
update the groups of a returning user if groups were changed in
the user's role.

* improve dynamodb permission error msg (#42855)

* improve dynamodb permission error msg

* Update lib/backend/dynamo/atomicwrite.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Fix GCP metadata errors crashing Teleport (#42696)

* Web: Fix differing duration between unified resource and access request page (#42742)

* Web: refactor and fix anti-pattern in access request

* Update affected teleterm files

* Address CR and fix updating duration should update pending

* Fix test and stories

* Reorganize Access Controls guides

Move Access Controls giudes into References or Admin Guides, as
appropriate.

Also reorganizes the Admin Guides section to reduce the size of the
table of contents page.

---------

Co-authored-by: Andrew Burke <31974658+atburke@users.noreply.github.com>
Co-authored-by: Forrest <30576607+fspmarshall@users.noreply.github.com>
Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
Co-authored-by: Lisa Kim <lisa@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Host user creation does not update user groups in keep mode
5 participants