Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启鉴权后,非管理员账号导出选中的配置失败 #9795

Closed
YeJiaL opened this issue Jan 4, 2023 · 2 comments
Closed

开启鉴权后,非管理员账号导出选中的配置失败 #9795

YeJiaL opened this issue Jan 4, 2023 · 2 comments

Comments

@YeJiaL
Copy link

YeJiaL commented Jan 4, 2023

在开启鉴权后

### If turn on auth system:
nacos.core.auth.system.type=nacos
nacos.core.auth.enabled=true

使用非管理员账号登录,点击导出配置 报错。

跟踪代码发现NacosRoleServiceImpl 中hasPermission 下图中144,145行权限匹配不上

  if (permissionAction.contains(permission.getAction()) && Pattern
                        .matches(permissionResource, permission.getResource()))

image

image

@YeJiaL
Copy link
Author

YeJiaL commented Jan 4, 2023

猜想是前端没有传tennant(namespace)导致

@karsonto
Copy link
Contributor

karsonto commented Jan 5, 2023

@i will solve it@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants