mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 16:35:33 +02:00
[PR #85] [MERGED] fix: guests: get rid of ghost guest accesses in corner cases #224
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/85
Author: @speed47
Created: 12/10/2020
Status: ✅ Merged
Merged: 12/10/2020
Merged by: @speed47
Base:
master← Head:guestfix📝 Commits (1)
39ddc4cfix: guests: get rid of ghost guest accesses in corner cases📊 Changes
2 files changed (+70 additions, -1 deletions)
View changed files
📝
lib/perl/OVH/Bastion/Plugin/groupSetRole.pm(+43 -1)📝
tests/functional/tests.d/350-groups.sh(+27 -0)📄 Description
Adding a guest access to a member of a group is now denied, to avoid having
dangling guest accesses when their membership is revoked. In effect, they
could no longer access the group servers, even as guest, because they no longer
had access to the group key, but their previous guest accesses were still
visible in groupListGuestAccesses, causing possible confusion.
We now also revoke all guest accesses of an account to a group, if any,
when it's being set as a member of this group, so that when/if the account
membership is revoked, we don't end up with the same ghost guest accesses as above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.