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

Service registration rights to authenticate non-nacos accounts #4418

Closed
SessionBest opened this issue Dec 7, 2020 · 1 comment
Closed

Service registration rights to authenticate non-nacos accounts #4418

SessionBest opened this issue Dec 7, 2020 · 1 comment
Labels
status/duplicate This issue or pull request already exists

Comments

@SessionBest
Copy link

SessionBest commented Dec 7, 2020

Describe the bug
Service registration permission authentication non-nacos account will appear 403 permission authentication failure, the specific code is located at com.alibaba.nacos.console.controller.NamespaceController#getNamespaces Namespace namespace0 = new Namespace("", "public", 200, persistService.configInfoCount(""), 0); public space will be in the permissions table insert ":*:*", when registering the service to authenticate permissions positioning com.alibaba.nacos.console.security.nacos.roles.NacosRoleServiceImpl#hasPermission Pattern .matches(permissionResource, permission.getResource() regular matching problems. permissionResource:":*:*", permission.getResource():"public:xxxx:xxxx "

Desktop (please complete the following information):

  • OS: [macos]
  • Version [nacos-server 1.4.0, nacos-client 1.4.0]
  • Module [nacos/console]
  • SDK [spring-cloud-alibaba-nacos:2.2.3]
@KomachiSion
Copy link
Collaborator

duplicate with #3524

@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants