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

Fix Flaky WebAuthn Shim Test #474

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

nlordell
Copy link
Collaborator

Fixes #369

This PR bumps the version of @simplewebauthn/server to include a fix to which was causing flacky tests for our WebAuthn shim. It turns out that the library was not correctly dealing with leading zeros in the signature r or s values, which would cause the test to periodically fail (since the signature was random in each run - as both the private key and the challenge were randomly generated, meaning that we would occasionally have an r or s value with a leading 0 byte).

@nlordell nlordell requested a review from a team as a code owner July 23, 2024 08:53
@nlordell nlordell requested review from akshay-ap, mmv08 and remedcu and removed request for a team July 23, 2024 08:53
@@ -54,7 +54,6 @@
"@openzeppelin/contracts": "^5.0.2",
"@safe-global/safe-4337-local-bundler": "workspace:^0.0.0",
"@safe-global/safe-4337-provider": "workspace:^0.0.0",
"@simplewebauthn/server": "^10.0.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused dependency.

@coveralls
Copy link

coveralls commented Jul 23, 2024

Pull Request Test Coverage Report for Build 10058774386

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 10041242450: 0.0%
Covered Lines: 92
Relevant Lines: 92

💛 - Coveralls

@nlordell nlordell force-pushed the chore/fix-flaky-webauthn-test branch 2 times, most recently from 63c7478 to 2b36085 Compare July 23, 2024 09:51
Fixes #369

This PR bumps the version of `@simplewebauthn/server` to include a fix
to which was causing flacky tests for our WebAuthn shim. It turns out
that the library was not correctly dealing with leading zeros in the
signature `r` or `s` value, which would cause the test to periodically
fail (since the signature was random in each run - as both the private
kay and the challenge were randomly generated).
@nlordell nlordell force-pushed the chore/fix-flaky-webauthn-test branch from 2b36085 to 7349fb8 Compare July 23, 2024 12:19
@nlordell nlordell merged commit 56f85c0 into main Jul 23, 2024
18 checks passed
@nlordell nlordell deleted the chore/fix-flaky-webauthn-test branch July 23, 2024 13:14
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ambigious behaviour with WebAuthn shim
3 participants