File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
internal/middleware/auth/authorizer Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ package authorizer
3
3
import (
4
4
"github.com/openinfradev/tks-api/internal/middleware/auth/request"
5
5
"github.com/openinfradev/tks-api/internal/repository"
6
- "github.com/openinfradev/tks-api/internal/usecase"
7
6
"github.com/openinfradev/tks-api/pkg/log"
8
7
"net/http"
9
- "strings"
10
8
)
11
9
12
10
var (
@@ -37,10 +35,11 @@ func OpaGatekeeper(r *http.Request) bool {
37
35
return false
38
36
}
39
37
40
- if strings .HasSuffix (requestUserInfo .GetAccountId (), string (usecase .OPAGatekeeperReservedAccountIdSuffix )) {
41
- // Allow restricted API from OPA Gatekeeper
42
- // ToDo: Add only API endpoints for OPA Gatekeeper
43
- }
38
+ _ = requestUserInfo
39
+ // ToDo: Add only API endpoints for OPA Gatekeeper
40
+ //if strings.HasSuffix(requestUserInfo.GetAccountId(), string(usecase.OPAGatekeeperReservedAccountIdSuffix)) {
41
+ // // Allow restricted API from OPA Gatekeeper
42
+ //}
44
43
45
44
return true
46
45
}
You can’t perform that action at this time.
0 commit comments