Modify Harbor Project Permissions Prompt Internal Server Error
TOC
Problem Description
When modifying the permissions of a Harbor project, an internal server error is prompted.
Root Cause
The Redis used by Harbor does not support the keys command
Troubleshooting
Check the logs of the Harbor Core Deployment, confirm if the following error message is present:
Solution
Using Alauda Cache Service for Redis OSS
In the namespace of the redis deployment, modify the redisuser configuration named default, remove the -keys configuration.
Before changed:
After changed:
Using Redis Self-Managed
Redis instance Self-Managed please use the Redis ACL to check and modify command permission control.
Notes
Due to the keys command scanning all indexes and causing the Redis service to block, consider whether to keep it enabled long-term.