GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove crypto.Credentials API by aduh95 · Pull Request #21153 · nodejs/node

Conversation

@aduh95

@aduh95 aduh95 commented Jun 5, 2018

Copy link
Copy Markdown
Contributor

Fix #20793

The crypto.Credentials legacy API has been Runtime deprecated since
v0.11.13 and users had been adviced to use tls.SecureContext instead.

This PR removes it from the crypto module.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the crypto Issues and PRs related to the crypto subsystem. label Jun 5, 2018
@mscdex mscdex added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jun 5, 2018
targos
targos reviewed Jun 5, 2018
View reviewed changes
Comment thread lib/crypto.js Outdated

@targos targos Jun 5, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

this change seems unrelated

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mcollina and aduh95 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@targos

targos commented Jun 5, 2018

Copy link
Copy Markdown
Member

@nodejs/crypto @nodejs/tsc

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mcollina
mcollina approved these changes Jun 5, 2018
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM with the changes @targos mentioned

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aduh95
aduh95 force-pushed the fix-crypto-deprecation-warnings branch from 8163a85 to e0acbef Compare June 5, 2018 21:07
trivikr
trivikr reviewed Jun 6, 2018
View reviewed changes
Comment thread doc/api/deprecations.md Outdated

@trivikr trivikr Jun 6, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

has been removed -> was removed (ditto on line 155)
Similar to PR #21043

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ryzokuken
ryzokuken approved these changes Jun 6, 2018
View reviewed changes
tniessen
tniessen reviewed Jun 6, 2018
View reviewed changes
Comment thread lib/crypto.js Outdated

@tniessen tniessen Jun 6, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The rest of the file does not use trailing commas, please remove this. I don't want to start any new discussions about trailing commas, but I'd go for consistency in this case.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ryzokuken ryzokuken Jun 6, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The line right above doesn't have a trailing comma either, but @bnoordhuis suggests we use trailing commas moving forwards?

Idk, sounds reasonable to just add them wherever you go.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tniessen tniessen Jun 6, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Are you referring to #20703 (comment)? ESLint still doesn't have a file-by-file rule as far as I know, so that doesn't really apply here. Personally, I am not a fan of dangling commas, and we discussed that topic numerous times (e.g. #19131 (comment)). I totally understand Ben's reasoning, but this kind of "churn" isn't that common from my perspective, correct me if I am wrong.

Edit: Striked my own comment because I promised not to start a new debate about trailing commas.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ryzokuken ryzokuken Jun 6, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yeah, let's not. We should probably skip the comma for consistency, you're right.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vschettino reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@aduh95
aduh95 force-pushed the fix-crypto-deprecation-warnings branch from e0acbef to 966bdf8 Compare June 6, 2018 17:51
@Trott

Trott commented Jun 6, 2018

Copy link
Copy Markdown
Member

semver-major so needs two TSC approvals (already has one) + CITGM before landing

ChALkeR and ryzokuken reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vsemozhetbyt
vsemozhetbyt reviewed Jun 6, 2018
View reviewed changes
Comment thread doc/api/deprecations.md Outdated

@vsemozhetbyt vsemozhetbyt Jun 6, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It seems this link will not be valid after this PR, so we need to delinkify `crypto.createCredentials()` here and remove the bottom reference.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott, ChALkeR, and aduh95 reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@vsemozhetbyt vsemozhetbyt added the deprecations Issues and PRs related to deprecations. label Jun 6, 2018
@aduh95
aduh95 force-pushed the fix-crypto-deprecation-warnings branch from 966bdf8 to 29be62f Compare June 6, 2018 21:49
addaleax
addaleax approved these changes Jun 7, 2018
View reviewed changes

@addaleax addaleax left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, but only because of the existing runtime deprecation.

If we had had our process back then, this should just have gotten stuck at a documentation deprecation and a one-line alias.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
trivikr
trivikr approved these changes Jun 8, 2018
View reviewed changes
tniessen
tniessen approved these changes Jun 8, 2018
View reviewed changes
TimothyGu
TimothyGu approved these changes Jun 13, 2018
View reviewed changes
@vsemozhetbyt

vsemozhetbyt commented Jun 24, 2018

Copy link
Copy Markdown
Contributor

@nodejs/crypto is this ready to land?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis approved these changes Jun 24, 2018
View reviewed changes
ryzokuken
ryzokuken approved these changes Jun 24, 2018
View reviewed changes
jasnell
jasnell approved these changes Jun 24, 2018
View reviewed changes
@tniessen

tniessen commented Jun 24, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/15589/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen tniessen added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jun 24, 2018
@apapirovski apapirovski removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jun 25, 2018
@apapirovski

apapirovski commented Jun 25, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@aduh95 could you have a look at the test failures please?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Jun 25, 2018

Copy link
Copy Markdown
Member

You need to remove the Credentials line from test-crypto-classes.js.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95

aduh95 commented Jun 25, 2018

Copy link
Copy Markdown
Contributor Author

@tniessen Thank you for spotting that, I'll take care of that this evening (that is to say in ten hours from my time zone).

tniessen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95
crypto: remove deprecated legacy API
f758e89
The `crypto.Credentials` legacy API has been Runtime deprecated since
v0.11.13 and users had been adviced to use `tls.SecureContext` instead.

Fixes: nodejs#20793
@aduh95
aduh95 force-pushed the fix-crypto-deprecation-warnings branch from 29be62f to f758e89 Compare June 25, 2018 21:33
@vsemozhetbyt

vsemozhetbyt commented Jun 26, 2018

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/15633/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mhdawson

mhdawson commented Jun 26, 2018

Copy link
Copy Markdown
Member

@shigeki any concerns ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsemozhetbyt

vsemozhetbyt commented Jul 9, 2018

Copy link
Copy Markdown
Contributor

@nodejs/crypto is this landable? Are there any concerns?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Jul 10, 2018

Copy link
Copy Markdown
Member

I am fine with this change, I don't know of any potential breakage or downsides.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen tniessen mentioned this pull request Jul 12, 2018
crypto: Provide name for anonymous function in crypto.js #21758
Closed
2 tasks done
@vsemozhetbyt

vsemozhetbyt commented Jul 12, 2018

Copy link
Copy Markdown
Contributor

Let's land this tomorrow if there are no objections then.

jasnell and aduh95 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsemozhetbyt

vsemozhetbyt commented Jul 13, 2018

Copy link
Copy Markdown
Contributor

Landed in d2ee7d6
Thank you!

jdalton and aduh95 reacted with hooray emoji
All reactions
  • 🎉 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsemozhetbyt vsemozhetbyt closed this Jul 13, 2018
vsemozhetbyt pushed a commit that referenced this pull request Jul 13, 2018
@aduh95 @vsemozhetbyt
crypto: remove deprecated legacy API
d2ee7d6
The `crypto.Credentials` legacy API has been Runtime deprecated since
v0.11.13 and users had been adviced to use `tls.SecureContext` instead.

PR-URL: #21153
Fixes: #20793
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Ujjwal Sharma <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
This was referenced Oct 2, 2018
crypto: set DEFAULT_ENCODING property to non-enumerable aduh95/node#1
Closed
crypto: set DEFAULT_ENCODING property to non-enumerable #23222
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@bnoordhuis bnoordhuis bnoordhuis approved these changes
@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
@tniessen tniessen tniessen approved these changes
@trivikr trivikr trivikr approved these changes
+4 more reviewers
@targos targos targos left review comments
@vsemozhetbyt vsemozhetbyt vsemozhetbyt left review comments
@TimothyGu TimothyGu TimothyGu approved these changes
@ryzokuken ryzokuken ryzokuken approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

crypto Issues and PRs related to the crypto subsystem. deprecations Issues and PRs related to deprecations. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

16 participants

@aduh95 @targos @Trott @vsemozhetbyt @tniessen @apapirovski @mhdawson @mcollina @bnoordhuis @jasnell @addaleax @TimothyGu @ryzokuken @trivikr @mscdex @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.