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

授权接口中的 *:* 字段表示什么含义 #12365

Closed
a1156698162 opened this issue Jul 17, 2024 · 3 comments
Closed

授权接口中的 *:* 字段表示什么含义 #12365

a1156698162 opened this issue Jul 17, 2024 · 3 comments
Labels
kind/question Category issues related to questions or problems

Comments

@a1156698162
Copy link

a1156698162 commented Jul 17, 2024

我通过nacos接口 /nacos/v1/auth/permissions 对用户进行授权成功后,发现用户依旧没有权限查看对应的namespace下的配置信息。请求截图如下
image
但是,通过nacos的后管页面为用户添加权限是生效的,对比了下请求。通过页面授权是resource 字段 对应的值后面跟了 :
image
请问 : 表示什么含义?

@KomachiSion
Copy link
Collaborator

通配符,意味着命名空间下所有的资源。

如果不加* ,那么意味是操作命名空间本身,而不是命名空间下所有资源

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Jul 18, 2024
@a1156698162
Copy link
Author

所以*:* 是看作是一个整体吗,而不是类似这种含义:前一个 * 代表命名空间下下资源通配, 后一个 * 代表某个资源的操作权限通配。

@KomachiSion
Copy link
Collaborator

这个*应该只是资源的内容,操作权限是action的rw。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

2 participants