Nacos v3.2.4 控制台用户已配置命名空间权限,但 /v3/console/core/namespace/list 仍返回 403
Describe the bug
In Nacos v3.2.4, after creating a user and granting that user permissions on a specific namespace, logging in to the new console with that user shows “No permission to perform this operation.”
In the browser Network tab, the request:
/v3/console/core/namespace/list?username=xxx returns 403 with authorization failed.
However, if I manually append the namespace ID to the URL, for example:
/next/#/configurationManagement?namespace=xxx the configuration list for that namespace loads normally.
This suggests the user’s namespace-level permission is actually valid, and the failure is specifically in the console’s namespace list request.
Nacos v3.2.4 中,为用户配置了特定命名空间的读权限后,使用该用户登录新版本控制台,页面提示“无权限执行此操作”。浏览器 Network 面板显示 /v3/console/core/namespace/list?username=xxx 请求返回 403,服务端错误信息为 authorization failed。
但在 URL 中手动拼接 namespace 参数(如 /next/#/configurationManagement?namespace=xxx)后,可以正常查看该命名空间下的配置列表。说明用户权限本身配置正确,问题出在控制台初始化时调用“获取命名空间列表”接口的鉴权逻辑上。
Expected behavior After login, /v3/console/core/namespace/list should return the namespaces that the current user has permission to access, so the console can render the namespace selector correctly.
It should not return 403 for a user who has valid namespace-level permissions.
用户登录控制台后,/v3/console/core/namespace/list 应正常返回该用户有权访问的命名空间列表,控制台据此渲染命名空间下拉菜单,不应报“无权限”。
Actually behavior
/v3/console/core/namespace/list?username=xxx returns 403. The console cannot initialize the namespace list and displays “No permission to perform this operation.”
/v3/console/core/namespace/list 返回 403,控制台无法初始化命名空间列表,页面报“无权限执行此操作”。
Source: alibaba/nacos