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

webcrypto: RSA support #1791

Merged
merged 3 commits into from
Nov 7, 2024
Merged

webcrypto: RSA support #1791

merged 3 commits into from
Nov 7, 2024

Conversation

olegbespalov
Copy link
Contributor

@olegbespalov olegbespalov commented Oct 31, 2024

What?

This documents the latest changes to the webcrypto module that were done in https://github.com/grafana/xk6-webcrypto/releases/tag/v0.5.0

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/next folder of the documentation.

Related PR(s)/Issue(s)

grafana/k6#4025

@olegbespalov olegbespalov requested a review from a team October 31, 2024 14:27
@olegbespalov olegbespalov requested review from mstoykov and joanlopez and removed request for a team and heitortsergent October 31, 2024 14:27
@olegbespalov olegbespalov self-assigned this Oct 31, 2024
@olegbespalov olegbespalov mentioned this pull request Oct 29, 2024
33 tasks
Copy link
Contributor

@joanlopez joanlopez left a comment

Choose a reason for hiding this comment

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

I left a couple of minor suggestions, but overall looks great! 🔥

name: "RSA-PSS",
modulusLength: 2048,
publicExponent: new Uint8Array([1, 0, 1]),
hash: { name: "SHA-256" },
Copy link
Contributor

Choose a reason for hiding this comment

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

In the docs above, hash is typed as string, but here it looks like it is an object with the name attribute 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add in the type definition something like: ... or object with a single name string property ({name: "SHA-256"})? Or it's just the example, that needs to be fixed? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! It supports both, an object with name and a string

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, since webcrypto docs has such "bug" since the beginning same as definitely typed 😢 I've fixed it here, but probably open the larger issue for fixing this in whole module

Co-authored-by: Joan López de la Franca Beltran <[email protected]>
@olegbespalov olegbespalov merged commit 27a5d99 into main Nov 7, 2024
3 of 4 checks passed
@olegbespalov olegbespalov deleted the feat/webcrypto-rsa branch November 7, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants