Skip to content
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

test: Use seclevel=0 unconditionally on OpenSSL 3 #49885

Closed
wants to merge 1 commit into from
Closed

test: Use seclevel=0 unconditionally on OpenSSL 3 #49885

wants to merge 1 commit into from

Conversation

sebastianas
Copy link

OpenSSL 3.1 forces TLS v1.1 and less to security level 0 so the security level was lowered in the tests to pass them.
There is no need to conditionally lower the limit on OpenSSL 3.1 since the same can be done on 3.0. Both OpenSSL share the same ABI so it nodejs can be compiled again 3.0 and run the tests against 3.1. The latter is used in Debian CI to ensure smooth transition without recompiling.

Remove 3.1 special case and use it unconditionally on the 3 series.

OpenSSL 3.1 forces TLS v1.1 and less to security level 0 so the security
level was lowered in the tests to pass them.
There is no need to conditionally lower the limit on OpenSSL 3.1 since the
same can be done on 3.0. Both OpenSSL share the same ABI so it nodejs
can be compiled again 3.0 and run the tests against 3.1.

Remove 3.1 special case and use it unconditionally on the 3 series.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Sep 26, 2023
@bnoordhuis
Copy link
Member

I don't think this is something we want to merge. You're right that it can be done but that doesn't mean it's desirable.

Being as strict as possible is preferable because it helps catch unintentional changes. Your patch makes the test suite laxer under openssl 3.0, if I read it correctly.

@bnoordhuis bnoordhuis added tls Issues and PRs related to the tls subsystem. crypto Issues and PRs related to the crypto subsystem. labels Sep 26, 2023
@sebastianas
Copy link
Author

sebastianas commented Sep 28, 2023 via email

@bnoordhuis
Copy link
Member

Not sure I follow your line of reasoning. Tests get updated and expanded from time to time. Lowering the seclevel makes it more likely for questionable behavior to slip in. That's undesirable.

@sebastianas
Copy link
Author

sebastianas commented Sep 28, 2023 via email

@bnoordhuis
Copy link
Member

Thanks for the pull request but I'll make the judgment call of not merging it.

@bnoordhuis bnoordhuis closed this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants