Browse Source
iam: address PR review comments for group management
iam: address PR review comments for group management
- Fix XSS vulnerability in groups.templ: replace innerHTML string concatenation with DOM APIs (createElement/textContent) for rendering member and policy lists - Use userGroups reverse index in embedded IAM ListGroupsForUser for O(1) lookup instead of iterating all groups - Add buildUserGroupsIndex helper in standalone IAM handlers; use it in ListGroupsForUser and removeUserFromAllGroups for efficient lookup - Add note about gRPC store load-modify-save race condition limitationpull/8560/head
5 changed files with 85 additions and 29 deletions
-
54weed/admin/view/app/groups.templ
-
2weed/admin/view/app/groups_templ.go
-
5weed/credential/grpc/grpc_group.go
-
38weed/iamapi/iamapi_group_handlers.go
-
15weed/s3api/s3api_embedded_iam.go
2
weed/admin/view/app/groups_templ.go
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue