Skip to content

Commit a95087c

Browse files
committed
ignore codql jwt signature check
Signed-off-by: Huabing Zhao <[email protected]>
1 parent 77cd52e commit a95087c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/mcpproxy/authorization.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ func (m *MCPProxy) authorizeRequest(authorization *filterapi.MCPRouteAuthorizati
3434
}
3535

3636
claims := jwt.MapClaims{}
37-
// JWT verification is performed by Envoy before reaching here. So we only need to parse the token without verification.
3837
parser := jwt.NewParser(jwt.WithoutClaimsValidation())
38+
// JWT verification is performed by Envoy before reaching here. So we only need to parse the token without verification.
39+
// codeql[go/missing-jwt-signature-check]
3940
if _, _, err := parser.ParseUnverified(token, claims); err != nil {
4041
m.l.Info("failed to parse JWT token", slog.String("error", err.Error()))
4142
return false

0 commit comments

Comments
 (0)