Skip to content

Conversation

@vincentandreas
Copy link

What?

Implement throw exception in RSA PSS, when given salt length = 0, in Sign / Verify function

Why?

It improves UX and makes implementation predictable.

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link
  • I have updated or added an issue to the k6-documentation: grafana/k6-docs#NUMBER if applicable
  • I have updated or added an issue to the TypeScript definitions: grafana/k6-DefinitelyTyped#NUMBER if applicable

Related PR(s)/Issue(s)

Issues #4265
Previous PR #4659

@vincentandreas vincentandreas requested a review from a team as a code owner September 5, 2025 14:45
@vincentandreas vincentandreas requested review from AgnesToulet and joanlopez and removed request for a team September 5, 2025 14:45
Copy link
Contributor

@AgnesToulet AgnesToulet left a comment

Choose a reason for hiding this comment

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

Hi! Sorry for the delay and thanks a lot for your contribution!

This looks good (just left some wording suggestions) and works great but we probably want to update the tests in this case to expect the error, could you update your PR with updated tests please?

@vincentandreas
Copy link
Author

hi @AgnesToulet , thankyou for the feedback! I'll add that later.

@vincentandreas
Copy link
Author

hi @AgnesToulet could you elaborate, which file that contain test that need to be updated?

@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing October 27, 2025 15:46 — with GitHub Actions Inactive
@AgnesToulet
Copy link
Contributor

It's the Webcrypto tests that need to be updated, you can see the failures here or running them locally.

Also, you'll need to split your lines into multiple lines to make the linter happy (it's complaining about the line length here).

@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing October 27, 2025 15:48 — with GitHub Actions Inactive
@vincentandreas
Copy link
Author

hi @AgnesToulet , I see, thankyou for that. sorry, I think I need more time to check & edit that within two weeks, is it okay?

@AgnesToulet
Copy link
Contributor

Sure, thanks for taking care of this! Feel free to reach out if you have any question/need help.

@vincentandreas
Copy link
Author

hi @AgnesToulet could you help to run the workflow? thankyou

@mstoykov mstoykov added this to the v1.5.0 milestone Nov 17, 2025
@ankur22
Copy link
Contributor

ankur22 commented Nov 20, 2025

@vincentandreas looks like the build is failing. Can you double check that the code compiles and build into a binary?

@vincentandreas
Copy link
Author

hi @ankur22 @AgnesToulet , thanks for noticing, here's the updated version, sorry for that. kindly help to retrigger the workflow, thanks

@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing November 21, 2025 16:15 — with GitHub Actions Inactive
@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing November 21, 2025 16:17 — with GitHub Actions Inactive
@vincentandreas
Copy link
Author

hi @AgnesToulet @ankur22 for the gofmt I already update. but for this error, I need more time to understand this.
I think it's because the behavior of throw that changed (?).
link https://github.com/grafana/k6/actions/runs/19576035827/job/56062678604?pr=5132
image

@ankur22
Copy link
Contributor

ankur22 commented Nov 24, 2025

hi @AgnesToulet @ankur22 for the gofmt I already update. but for this error, I need more time to understand this. I think it's because the behavior of throw that changed (?). link https://github.com/grafana/k6/actions/runs/19576035827/job/56062678604?pr=5132 image

I'm taking a look. I believe these are flakey tests, so we might just be able to rerun then until they pass. I've just merged in master which contains some changes that might help too 🤞

@ankur22 ankur22 temporarily deployed to azure-trusted-signing November 24, 2025 10:12 — with GitHub Actions Inactive
@ankur22 ankur22 temporarily deployed to azure-trusted-signing November 24, 2025 10:14 — with GitHub Actions Inactive
@ankur22
Copy link
Contributor

ankur22 commented Nov 24, 2025

Yeah, the pipeline was failing due to flakey tests, which we're hoping to resolve soon 🤞 I'm happy with the current situation with the pipeline/

@vincentandreas
Copy link
Author

hi @ankur22 I just update the branch with master, could you retrigger again?

@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing November 26, 2025 11:37 — with GitHub Actions Inactive
@vincentandreas vincentandreas temporarily deployed to azure-trusted-signing November 26, 2025 11:38 — with GitHub Actions Inactive
@ankur22 ankur22 requested a review from AgnesToulet November 27, 2025 09:39
@ankur22 ankur22 temporarily deployed to azure-trusted-signing November 27, 2025 12:08 — with GitHub Actions Inactive
@ankur22 ankur22 temporarily deployed to azure-trusted-signing November 27, 2025 12:10 — with GitHub Actions Inactive
Copy link
Contributor

@AgnesToulet AgnesToulet left a comment

Choose a reason for hiding this comment

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

LGTM, have you looked into checking that the functions throw an error instead of just skipping the tests?

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.

4 participants