-
Notifications
You must be signed in to change notification settings - Fork 346
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
🐛 BUG: fetch in wrangler dev with sveltekit results in SSLV3_ALERT_HANDSHAKE_FAILURE #2589
Comments
I believe this is the same issue users are seeing with cloudflare/workers-sdk#3631. These warnings are coming from the |
I'm not sure this is the same thing as just hiding the warnings. The ssl errors are causing the rest of the function to fail, so I can only test after deploying to workers where it doesn't fail. Wrangler dev is failing with one of Japan's largest payment processors.. |
@maemigh do you have a repo or some code that we could try and reproduce from? Using basic worker and the fetch you have above, I'm at least able to get a 200 response with no errors in dev console. wrangler v3.15.0 |
@JoshStwrt your issue looks to be a little different. It looks like you might need to specify to |
@admah I just created a repo showing the error. https://github.com/maemigh/cloudflare-test |
I hit this issue myself and spent some time digging into the code to see what's going on. cc @admah EDIT: an absolute minimum reproducible example: export default {
async fetch(reques, env, ctx) {
await fetch('https://stg.mul-bill.jp');
}
} Output from `sslscan stg.mul-bill.jp` showing available ciphers
|
Is the problem that this server only support classic DH, as opposed to ECDH? KJ HTTP hasn't supported classic DH because of the need to provide dhparams, which is sort of a pain, but classic DH has been obsolete for quite a while now... |
Yeah, precisely. But the Worker runtime running on CF infrastructure does support DH. If I deploy the above code using wrangler, it will work just fine. What this issue is really about is the disparity that exists between the local runtime and the one used when the worker is deployed. |
I have wasted a lot of cloudflares servers time to test things because the local implementation is broken |
Yes, it seems like we need to figure out how to support classic DH. It's non-trivial due to the need to supply dhparams. We'll have to consult with our crypto team. |
Unrelated to this issue but it would be interesting to know what the intersection between the code in the |
@Nufflee The difference with Cloudflare infrastructure is that the runtime does not talk directly to the internet. Instead, it talks through Cloudflare's regular CDN proxy servers, both for incoming and outgoing traffic. Those proxy servers handle all TLS termination. |
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.14.0
What version of Node are you using?
v20.7.0
What operating system are you using?
Mac / Linux
Describe the Bug
Using fetch with wrangler dev results in errors. Attempted on both Mac and Linux.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: