[OID4VCI-HAIP] Pass oid4vci-1_0-issuer-fail-invalid-client-attestation-pop-signature (blocked)#47605
[OID4VCI-HAIP] Pass oid4vci-1_0-issuer-fail-invalid-client-attestation-pop-signature (blocked)#47605tdiesler wants to merge 3 commits intokeycloak:mainfrom
Conversation
b240f0f to
9ae9f67
Compare
75c7842 to
bca0904
Compare
IngridPuppet
left a comment
There was a problem hiding this comment.
Hello @tdiesler - I reviewed the last commit of the PR and a few comments. Not sure if it is the only relevant commit of the PR.
| try { | ||
| Signature verifier = getSignature(input.getHeader().getAlgorithm()); | ||
| verifier.initVerify(publicKey); | ||
| verifier.update(input.getEncodedSignatureInput().getBytes(StandardCharsets.UTF_8)); | ||
| byte[] derSignature = transcodeSignatureToDER(input.getSignature()); | ||
| return verifier.verify(derSignature); |
There was a problem hiding this comment.
This code is very critical. We never know what slight error may be overlooked in the implementation of transcodeSignatureToDER below. I think it is preferable you reuse the ECDSASignatureVerifierContext class or at least the methods it reuses.
There was a problem hiding this comment.
I also fail to notice tests for the added logic. Is it done in another PR? I think it is really important to have some, especially with the introduction of ECDSAProvider.
75bcb79 to
51bbe31
Compare
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.cluster.UserFederationInvalidationClusterTest#crudWithFailover |
Signed-off-by: Thomas Diesler <[email protected]>
Signed-off-by: Thomas Diesler <[email protected]>
…n-pop-signature Signed-off-by: Thomas Diesler <[email protected]>
closes #47584
depends on