You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ti...@apache.org on 2021/07/29 00:57:30 UTC
[servicecomb-service-center] branch master updated: Fix: Should NOT
auth health and version API (#1111)
This is an automated email from the ASF dual-hosted git repository.
tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new aeb0899 Fix: Should NOT auth health and version API (#1111)
aeb0899 is described below
commit aeb08992b08b2989d518f884d5459de6bae6869e
Author: little-cui <su...@qq.com>
AuthorDate: Thu Jul 29 08:57:21 2021 +0800
Fix: Should NOT auth health and version API (#1111)
---
server/service/rbac/rbac.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/service/rbac/rbac.go b/server/service/rbac/rbac.go
index c73b024..b22e917 100644
--- a/server/service/rbac/rbac.go
+++ b/server/service/rbac/rbac.go
@@ -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)