[release-11.6.3] RBAC: Dont additionally cache all users permissions (#106146)

RBAC: Don't additionally cache all users permissions (#105607)

* RBAC: Don't additionally cache all users permissions

* remove unused tests

(cherry picked from commit cfba630f5c)
This commit is contained in:
Alexander Zobnin
2025-05-28 16:45:07 +02:00
committed by GitHub
parent 1748a14f54
commit e0ca1e5b1c
3 changed files with 0 additions and 78 deletions
-4
View File
@@ -30,10 +30,6 @@ func (s *SearchOptions) HashString() (string, error) {
return base64.StdEncoding.EncodeToString(h.Sum(nil)), nil
}
func GetUserPermissionCacheKey(user identity.Requester) string {
return fmt.Sprintf("rbac-permissions-%s", user.GetCacheKey())
}
func GetSearchPermissionCacheKey(log log.Logger, user identity.Requester, searchOptions SearchOptions) (string, error) {
searchHash, err := searchOptions.HashString()
if err != nil {