apiVersion: v1alpha1
kind: Role
metadata:
name: PluginSP-construction-engineering
labels:
halo.run/role-template: "true" #
cn.spgchinaratings/path-a: "true"
annotations:
rbac.authorization.halo.run/module: path-a
rbac.authorization.halo.run/display-name: "
rules:
- apiGroups: ["cn.spgchinaratings"] # 插件的 API Group
resources: ["contactuses", "contact-us-items", "contact-us-items-del", "refreshCache"]
verbs: ["get", "list"]
- nonResourceURLs: [ "/path-a", "/path-a/*" ]
verbs: [ "get", "create" ]
这个是我的配置,我是不是配置了这个,方式path-a了开头的接口的不需要登录,还要配置什么么