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

refactor(ext/tls): use cppgc to deduplicate the tls key loading code #23289

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Apr 8, 2024

Pass the certificates and key files as CPPGC objects.

Towards #23233

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, no comments

@mmastrac mmastrac merged commit cb12a93 into denoland:main Apr 8, 2024
17 checks passed
satyarohith pushed a commit that referenced this pull request Apr 11, 2024
…23289)

Pass the certificates and key files as CPPGC objects.

Towards #23233
@@ -131,6 +137,36 @@ class TlsListener extends Listener {
}
}

function hasTlsKeyPairOptions(options) {
return (ReflectHas(options, "cert") || ReflectHas(options, "key") ||
Copy link

@pi0 pi0 Apr 17, 2024

Choose a reason for hiding this comment

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

This change made a regression. Previously, if cert and key in options had undefined value, the server was not failing but now it does fail.

Context: nitrojs/nitro#2373 -- tools might get these options from sources like environment variables. now need to explicitly call delete on prop.

littledivy pushed a commit to littledivy/deno that referenced this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants