Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rchincha authored Jan 17, 2025
1 parent fba695a commit 002ac62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/meta/boltdb/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ func (bdw *BoltDB) SetUserGroups(ctx context.Context, groups []string) error {
return err
}

userData.Groups = append(userData.Groups, groups...)
userData.Groups = groups

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

Expand Down
2 changes: 1 addition & 1 deletion pkg/meta/dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ func (dwr DynamoDB) SetUserGroups(ctx context.Context, groups []string) error {
return err
}

userData.Groups = append(userData.Groups, groups...)
userData.Groups = groups

return dwr.SetUserData(ctx, userData)
}
Expand Down

0 comments on commit 002ac62

Please sign in to comment.