Skip to content

Commit 002ac62

Browse files
authored
Merge commit from fork
GHSA-c9p4-xwr9-rfhx authN/authZ creds are added to the request context so that they can be tracked and enforced in the various subsystems. However, it was previously a appended list (incorrectly); consequently, even if the user has been removed from the group configuration, the user could still log in. Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent fba695a commit 002ac62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/meta/boltdb/boltdb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ func (bdw *BoltDB) SetUserGroups(ctx context.Context, groups []string) error {
16621662
return err
16631663
}
16641664

1665-
userData.Groups = append(userData.Groups, groups...)
1665+
userData.Groups = groups
16661666

16671667
err = bdw.setUserData(userid, tx, userData)
16681668

pkg/meta/dynamodb/dynamodb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ func (dwr DynamoDB) SetUserGroups(ctx context.Context, groups []string) error {
16471647
return err
16481648
}
16491649

1650-
userData.Groups = append(userData.Groups, groups...)
1650+
userData.Groups = groups
16511651

16521652
return dwr.SetUserData(ctx, userData)
16531653
}

0 commit comments

Comments
 (0)