summaryrefslogtreecommitdiff
path: root/pkg/authz/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/authz/server.go')
-rw-r--r--pkg/authz/server.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/authz/server.go b/pkg/authz/server.go
index b890387..e1b0669 100644
--- a/pkg/authz/server.go
+++ b/pkg/authz/server.go
@@ -2,15 +2,11 @@ package authz
import (
"context"
- "net/http"
auth "github.com/envoyproxy/go-control-plane/envoy/service/auth/v3"
- "github.com/xlgmokha/x/pkg/env"
"github.com/xlgmokha/x/pkg/log"
"github.com/xlgmokha/x/pkg/x"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/rpc"
"gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/web"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
)
@@ -27,10 +23,7 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server {
grpc.UnaryInterceptor(pls.LogGRPC(logger)),
grpc.StreamInterceptor(pls.LogGRPCStream(logger)),
)...)
- auth.RegisterAuthorizationServer(server, NewCheckService(rpc.NewAbilityProtobufClient(
- env.Fetch("AUTHZD_HOST", "https://authzd.staging.runway.gitlab.net"),
- &http.Client{Transport: &web.Transport{Logger: logger}},
- )))
+ auth.RegisterAuthorizationServer(server, NewCheckService())
reflection.Register(server)
return &Server{