jattsson commented on code in PR #14234:
URL: https://github.com/apache/apisix/pull/14234#discussion_r4629072849


##########
apisix/plugins/openid-connect.lua:
##########
@@ -102,9 +102,9 @@ local dpop_jwk_required_members = {
     RSA = {"e", "n"},
 }
 
--- resty.jwt selects the signer from the algorithm and not from the key, so an
--- EC algorithm handed an RSA key terminates the worker with a SIGSEGV; the
--- curve matters too, since ES512 on a P-256 key emits a P-256 signature
+-- lua-resty-jwt 0.4.0 binds algorithms to key types itself, but only at

Review Comment:
   I'd drop the version here, it goes stale as soon as the pin moves.
   
   ```suggestion
   -- lua-resty-jwt binds algorithms to key types itself, but only at
   ```



##########
apisix/plugins/openid-connect.lua:
##########
@@ -883,10 +878,9 @@ local function check_client_jwt_assertion_alg(conf)
                       .. "selected by \"" .. symmetric_by .. "\""
     end
 
-    -- resty.jwt picks the signer from the algorithm, not the key: handing an
-    -- EC algorithm an RSA key terminates the worker with a SIGSEGV in the
-    -- signature conversion, and an EC key on the wrong curve silently emits a
-    -- signature of the wrong size
+    -- lua-resty-jwt 0.4.0 rejects an algorithm/key mismatch itself, but only

Review Comment:
   Same here.
   
   ```suggestion
       -- lua-resty-jwt rejects an algorithm/key mismatch itself, but only
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to