Fix: Should NOT auth health and version API
@@ -67,8 +67,8 @@ func Init() {
func add2WhiteAPIList() {
rbac.Add2WhiteAPIList(APITokenGranter)
- rbac.Add2WhiteAPIList("/version")
- rbac.Add2WhiteAPIList("/health")
+ rbac.Add2WhiteAPIList("/v4/:project/registry/version", "/version")
+ rbac.Add2WhiteAPIList("/v4/:project/registry/health", "/health")
// user can list self permission without account get permission
Add2CheckPermWhiteAPIList(APISelfPerms)
