Skip to content

Commit

Permalink
remove session-id middleware (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd authored Dec 3, 2024
1 parent 52871cf commit 4b8365c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/app/middlewares/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/aserto-dev/aserto-grpc/grpcutil/middlewares/gerr"
"github.com/aserto-dev/aserto-grpc/grpcutil/middlewares/request"
"github.com/aserto-dev/aserto-grpc/grpcutil/middlewares/tracing"
"github.com/aserto-dev/go-edge-ds/pkg/session"
"github.com/aserto-dev/topaz/pkg/app/auth"
"github.com/aserto-dev/topaz/pkg/cc/config"
"github.com/rs/zerolog"
Expand All @@ -25,8 +24,6 @@ func GetMiddlewaresForService(ctx context.Context, cfg *config.Config, logger *z
middlewareList = append(middlewareList, authmiddleware)
}

sessionMiddleware := session.HeaderMiddleware{DisableValidation: false}

// only attach policy instance information if discovery resource is configured.
if cfg.OPA.Config.Discovery != nil && cfg.OPA.Config.Discovery.Resource != nil {
middlewareList = append(middlewareList, NewInstanceMiddleware(cfg, logger))
Expand All @@ -37,7 +34,7 @@ func GetMiddlewaresForService(ctx context.Context, cfg *config.Config, logger *z
NewTenantIDMiddleware(cfg),
tracing.NewTracingMiddleware(logger),
gerr.NewErrorMiddleware(),
&sessionMiddleware)
)

var opts []grpc.ServerOption
unary, stream := middlewareList.AsGRPCOptions()
Expand Down

0 comments on commit 4b8365c

Please sign in to comment.