Files
seaweedFS/weed/admin/view/app
Chris Lu dbde8983a7 Fix bucket permission persistence in Admin UI (#8049)
Fix bucket permission persistence and security issues (#7226)

Security Fixes:
- Fix XSS vulnerability in showModal by using DOM methods instead of template strings for title
- Add escapeHtmlForAttribute helper to properly escape all HTML entities (&, <, >, ", ')
- Fix XSS in showSecretKey and showNewAccessKeyModal by using proper HTML escaping
- Fix XSS in createAccessKeysContent by replacing inline onclick with data attributes and event delegation

Code Cleanup:
- Remove debug label "(DEBUG)" from page header
- Remove debug console.log statements from buildBucketPermissionsNew
- Remove dead functions: addBucketPermissionRow, removeBucketPermissionRow, parseBucketPermissions, buildBucketPermissions

Validation Improvements:
- Add validation in handleUpdateUser to prevent empty permissions submission
- Update buildBucketPermissionsNew to return null when no buckets selected (instead of empty array)
- Add proper error messages for validation failures

UI Improvements:
- Enhanced access key management with proper modals and copy buttons
- Improved copy-to-clipboard functionality with fallbacks

Fixes #7226
2026-01-17 12:54:21 -08:00
..
2025-10-24 01:38:01 -07:00
2025-10-24 01:38:01 -07:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00
2025-07-12 01:13:11 -07:00
2025-10-13 18:05:17 -07:00
2025-12-27 18:37:53 -08:00
2025-12-27 18:37:53 -08:00