Skip to content

[v10.x backport] tls: add min/max protocol version options - #24979

Closed
sam-github wants to merge 2 commits into
nodejs:v10.x-stagingfrom
sam-github:backport-tls-min-max-to-10.x
Closed

[v10.x backport] tls: add min/max protocol version options#24979
sam-github wants to merge 2 commits into
nodejs:v10.x-stagingfrom
sam-github:backport-tls-min-max-to-10.x

Conversation

@sam-github

Copy link
Copy Markdown
Contributor

Backport of a backport... prep work for openssl 1.1.1 to land on v10.x

The existing secureProtocol option only allows setting the allowed
protocol to a specific version, or setting it to "all supported
versions". It also used obscure strings based on OpenSSL C API
functions. Directly setting the min or max is easier to use and explain.

Backport-PR-URL: #24676
PR-URL: #24405
Reviewed-By: Refael Ackermann refack@gmail.com
Reviewed-By: Rod Vagg rod@vagg.org

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. v10.x labels Dec 12, 2018
@sam-github

Copy link
Copy Markdown
ContributorAuthor

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

@nodejs/lts @nodejs/crypto

@rvaggrvagg added crypto Issues and PRs related to the crypto subsystem. semver-minor PRs that contain new features and should be released in the next minor version. labels Dec 18, 2018

@rvaggrvagg left a comment

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.

👌 sweet, I don't recall the rules but I think it needs to be live in 11.x for a release or two before going in. Also tagged as semver-minor which may conflict with plans for 10.x, but this really needs to happen because we're running out of time on 1.1.1.

@MylesBorins

Copy link
Copy Markdown
Contributor

Our next semver minor isn't planned until march... should we do it earlier?

@sam-github

Copy link
Copy Markdown
ContributorAuthor

no hurry, it's a pre-req for openssl-1.1.1, but can land in the same semver-minor as the openssl update

@TrottTrott mentioned this pull request Dec 29, 2018
@sam-github
sam-githubforce-pushed the backport-tls-min-max-to-10.x branch from 4d4c651 to 0b06887CompareJanuary 22, 2019 22:19
@codebytere
codebytereforce-pushed the v10.x-staging branch 3 times, most recently from 2d6e145 to 7840f71CompareJanuary 29, 2019 18:12
@BridgeARBridgeAR mentioned this pull request Feb 20, 2019
@sam-github
sam-githubforce-pushed the backport-tls-min-max-to-10.x branch from 0b06887 to d06c259CompareFebruary 22, 2019 23:52
Fill in correct pr-url: value in the YAML changelog that was missing
from f512f5e. The stanza was also sorted in the wrong order, most
recent is supposed to be in the beginning of the changes, not the end.
PR-URL: nodejs#24759
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
The existing secureProtocol option only allows setting the allowed
protocol to a specific version, or setting it to "all supported
versions". It also used obscure strings based on OpenSSL C API
functions. Directly setting the min or max is easier to use and explain.
Backport-PR-URL: nodejs#24676
PR-URL: nodejs#24405
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
@sam-github
sam-githubforce-pushed the backport-tls-min-max-to-10.x branch from d06c259 to a8a0889CompareFebruary 22, 2019 23:52
@sam-github

Copy link
Copy Markdown
ContributorAuthor

Closed in favour of #26270

@sam-github
sam-github deleted the backport-tls-min-max-to-10.x branch March 20, 2019 15:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cryptoIssues and PRs related to the crypto subsystem.lib / srcIssues and PRs related to general changes in the lib or src directory.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@sam-github@nodejs-github-bot@MylesBorins@rvagg