Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identity: tweak token validation log levels #12187

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/identity/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (svc *Service) Certify(ctx context.Context, req *pb.CertifyRequest) (*pb.Ce
}
var ite InvalidToken
if errors.As(err, &ite) {
log.Debugf("invalid token provided for %s: %s", reqIdentity, ite)
log.Infof("invalid token provided for %s: %s", reqIdentity, ite)
mateiidavid marked this conversation as resolved.
Show resolved Hide resolved
return nil, status.Error(codes.InvalidArgument, ite.Error())
}

Expand All @@ -222,7 +222,7 @@ func (svc *Service) Certify(ctx context.Context, req *pb.CertifyRequest) (*pb.Ce
if reqIdentity != tokIdentity {
msg := fmt.Sprintf("requested identity did not match provided token: requested=%s; found=%s",
reqIdentity, tokIdentity)
log.Debug(msg)
log.Infof(msg)
mateiidavid marked this conversation as resolved.
Show resolved Hide resolved
return nil, status.Error(codes.FailedPrecondition, msg)
}

Expand Down