Skip to content

Commit

Permalink
Merge pull request #41 from rsatal/unredact_JWT_v1
Browse files Browse the repository at this point in the history
PTOCP-1121 - Update authz middleware to not redact the JWT token in V1
  • Loading branch information
rsatal authored Jul 16, 2024
2 parents d191e93 + 9ffc475 commit a96c587
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grpc_opa/authorizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ type Config struct {

type ClaimsVerifier func([]string, []string) (string, []error)

// FullMethod is the full RPC method string, i.e., /package.service/method.
// FullMethod is the full RPC method string, i.e., /package.service/method.
//
// e.g. fullmethod: /service.TagService/ListRetiredTags PARGs endpoint: TagService.ListRetiredTags
func parseEndpoint(fullMethod string) string {
byPackage := strings.Split(fullMethod, ".")
Expand Down Expand Up @@ -218,7 +219,7 @@ func (a *DefaultAuthorizer) Evaluate(ctx context.Context, fullMethod string, grp
FullMethod: fullMethod,
Application: a.application,
// FIXME: implement atlas_claims.AuthBearersFromCtx
JWT: redactJWT(rawJWT),
JWT: rawJWT,
RequestID: reqID,
EntitledServices: a.entitledServices,
}
Expand Down

0 comments on commit a96c587

Please sign in to comment.