-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
crypto: add rsa-pss keygen parameters #39927
crypto: add rsa-pss keygen parameters #39927
Conversation
623d387
to
2916114
Compare
cc @nodejs/crypto |
I think it makes sense to do this in two steps: add the new options in a semver-minor PR and runtime-deprecate the old options in a semver-major PR. It's more work, but if we don't do that, we can't use these options in any Node.js version < 17. |
Sounds good. Do you recommend to apply the undocumented to be deprecated properties like so? let { hash, hashAlgorithm } = options
if (hash) deprecationNotice()
hashAlgorithm ??= hash
// proceed with hashAlgorithm |
@panva I am not sure. It generally looks good to me but I have a slight preference for throwing if both are set and not equal. |
Sounds good, I'll prepare the PR(s) to supersede this one. |
@panva I think you can keep this one for either part and open one more for the other part :) Thank you! |
2916114
to
a56bd8a
Compare
3b3a62f
to
6cbaea2
Compare
@tniessen never did a deprecation before, can you please check? |
6cbaea2
to
a1e3fd9
Compare
a1e3fd9
to
18c2c49
Compare
Runtime deprecations must be semver-major:
We can do a documentation-only deprecation as semver-minor (or a documentation-only deprecation with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'd love to see a test that ensures that |
Can't do that because |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Landed in c6b0ae8 |
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
PR-URL: #39927 Reviewed-By: James M Snell <[email protected]>
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: TODO
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: TODO
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: #40175
Notable changes: crypto: * (SEMVER-MINOR) add rsa-pss keygen parameters (Filip Skokan) #39927 doc: * add Ayase-252 to collaborators (Qingyu Deng) #40078 fs: * (SEMVER-MINOR) make `open` and `close` stream override optional when unused (Antoine du Hamel) #40013 http: * (SEMVER-MINOR) limit requests per connection (Artur K) #40082 src: * (SEMVER-MINOR) add --no-global-search-paths cli option (Cheng Zhao) #39754 * (SEMVER-MINOR) add option to disable global search paths (Cheng Zhao) #39754 * (SEMVER-MINOR) make napi_create_reference accept symbol (JckXia) #39926 stream: * (SEMVER-MINOR) add signal support to pipeline generators (Robert Nagy) #39067 PR-URL: #40175
This PR deprecates (documentation-only deprecation with
--pending-deprecation
) undocumented API for RSA-PSS key generation parameters that specify theRSASSA-PSS-params
sequence and replaces them with options aligned withasymmetricKeyDetails
property names.The update is so that the option names and their values match the ones exposed via
asymmetricKeyDetails
from #39851. See #39851 (comment) and #39851 (comment)It issemver-major
because despite it being undocumented before it might be in use in by users.Edit: We will runtime deprecate the undocumented ones via a followup PR, this is now a
semver-minor
as it is not breaking potential existing use of the undocumented API.