Skip to content

tls: deprecate undocumented tlsSocket.ssl property, add docs - #23915

Closed
jasnell wants to merge 3 commits into
nodejs:masterfrom
jasnell:tls-socket-take2
Closed

tls: deprecate undocumented tlsSocket.ssl property, add docs#23915
jasnell wants to merge 3 commits into
nodejs:masterfrom
jasnell:tls-socket-take2

Conversation

@jasnell

Copy link
Copy Markdown
Member

Updated take on #10846

Fixes: #10555

/cc @sam-github

Checklist

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. tls Issues and PRs related to the tls subsystem. labels Oct 26, 2018
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
Comment threaddoc/api/tls.md Outdated
@jasnell
jasnellforce-pushed the tls-socket-take2 branch 2 times, most recently from 02e937e to 66849e7CompareOctober 30, 2018 15:44
@jasnelljasnell changed the title doc: tls API for direct TLS socket usetls: deprecate undocumented tlsSocket.ssl property, add docsOct 30, 2018
@jasnelljasnell added semver-major PRs that contain breaking changes and should be released in the next major version. deprecations Issues and PRs related to deprecations. labels Oct 30, 2018
@jasnell

Copy link
Copy Markdown
MemberAuthor

@addaleax@sam-github@bnoordhuis @nodejs/tsc ... please take another look over. This has changed significantly and is now a semver-major deprecation.

@sam-github

Copy link
Copy Markdown
Contributor

Are the things people were using .ssl for possible via public APIs?

@jasnell

Copy link
Copy Markdown
MemberAuthor

I've added verifyError() as a function on TLSSocket.prototype but I'm really not sure what else folks have been using beyond that. We can address those cases as needed.

Comment threaddoc/api/deprecations.md Outdated
Comment threaddoc/api/tls.md Outdated
@jasnell

Copy link
Copy Markdown
MemberAuthor

Ping @nodejs/tsc

@jasnell
jasnell requested a review from addaleaxNovember 1, 2018 14:35
Comment threadlib/_tls_wrap.js Outdated
deprecate the legacy undocumented `.ssl` alias for the
`TLSSocket._handle` and document alternatives. Document
how to properly use the `TLSSocket` constructor directly.
Updated take on nodejs#10846Fixes: nodejs#10555
Comment threaddoc/api/deprecations.md Outdated
Comment threaddoc/api/tls.md
smaller fragments add extra TLS framing bytes and CPU overhead, which may
decrease overall server throughput.

### tlsSocket.verifyError()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry if these questions are naïve or otherwise ill-informed: Is this the best name for this? I know it's what we used previously, but it wasn't exposed publicly, was it? Might `validatePeerCertificate() or something like that be a better name?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I'm fine with whatever name folks would like to see.

Co-Authored-By: jasnell <jasnell@gmail.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Ping @nodejs/tsc

@rvagg

Copy link
Copy Markdown
Member

there's an outstanding question from @Trott inline

lgtm I think, although the commit description doesn't hint at the addition of features. So it might be best to split out verifyError() to a separate commit.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecationsIssues and PRs related to deprecations.docIssues and PRs related to the documentations.semver-majorPRs that contain breaking changes and should be released in the next major version.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@jasnell@nodejs-github-bot@sam-github@rvagg@bnoordhuis@Trott@addaleax@vsemozhetbyt