frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Direct TLS can speed up your connections

https://marc-bowes.com/postgres-direct-tls.html
34•tanelpoder•3h ago

Comments

ronsor•2h ago
> When the client sends a hello, the firewall says “that looks like a TLS hello”, and then waits for the server’s response. It inspects the certificate and then applies any rules.

This kind of stuff is exactly why TLS 1.3 encrypts everything now.

kevvok•2h ago
Years of middleboxes tampering with TCP and barfing on anything they didn’t recognize is why QUIC encrypts everything as well
rkagerer•36m ago
In TLS 1.3, the server’s certificate is encrypted, which means the firewall can’t do this anymore. ... The firewall will open a second connection and do a TLS 1.2 handshake to retrieve the certificate in plaintext. If the rules allow the connection, the firewall then allow the connection to proceed.

Sounds like a cat & mouse game. How long before we get servers that respond with different certificates based on who"s asking or other cues from the connection, in efforts to bypass the firewall restrictions.

tialaramex•5m ago
Sure, this already happens today as in practice pre-standard ECH is deployed, so client says "Hi I'm calling some.boring.example [encrypted: Actually clown-porn.example]" and this useless middlebox cannot decrypt the inner message so it retrieves the some.boring.example certificate but the client's encrypted connection reaches clown-porn.example which may have a different certificate.

For many years, long before TLS 1.3 the RFC explains how to do this properly, obviating the problem, but that's very expensive because you need to TLS proxy every single connection, you can impose oversight by - literally - adding an actual oversight layer, which your users can also see you did. The popular middlebox products say they're doing two things, they're cheaper (maybe you buy their $100k product instead of a $100M solution) and they're less "intrusive" (ie you needn't tell your users that you're spying on them)

In reality they're ineffective, which is why the RFC says not to do this - but they can either outright lie or hide this fact in an asterisked disclaimed somewhere, and most of their customers don't care whether it actually works, they want to tick a box.

tialaramex•31m ago
Technically TLS 1.3 doesn't encrypt the Client Hello, and indeed the first stanza of the Server Hello isn't encrypted either, although it deliberately doesn't say anything you could use as a third party to make decisions and the rest of a TLS 1.3 Server Hello is encrypted.

The in-progress Encrypted Client Hello (was Encrypted Server Name Indication hence esni in the name of the document) fixes that and you probably have software which uses it though the work to tie up all the loose ends up and publish a document might take some time yet.

Because the middlebox vendors are _so_ incompetent not only does TLS 1.3 need to work around their nonsense, thus proving that it was never useful security (an attacker could always have just done what TLS 1.3 does and it would have bypassed this worthless garbage) some of them screwed up badly enough that the anti-downgrade feature trips, to their credit Google refused to ship a permanent workaround for this, the workaround they shipped in Chrome sunset in about a year & required an explicit key setting, so basically "I acknowledge that I have defective middleboxes and must remove or upgrade them soon" by the local administrators.

But yes, it's noticeable that it was much easier to sell some engineers on "Thanks to TLS 1.3 now this stupid middlebox product won't be able to make your service slower" than say, "Thanks to TLS 1.3 now this stupid middlebox product won't report to the government if you read a Wikipedia article which contradicts its dogma".

nemoniac•1h ago
Direct TLS can speed up your postgreSQL connection
aflukasz•58m ago
And mostly if you are behind CISCO firewall during TLS Server Identity Discovery or some equivalent setup. 3 seconds mentioned in the article were coming mostly from that. From the text itself it's not clear how much gains come from sslnegotiation=direct itself (if we assume no other factors like those present in this case).
smallpipe•25m ago
"Having a dumb firewall can slow down your connections"
mrb•3m ago
[delayed]

Computational Public Space [video]

https://www.youtube.com/watch?v=PixPSNRDNMU
1•sebg•14s ago•0 comments

Scientists May Have Found a Way to Simplify Gravity. It Could Change Physics

https://www.popularmechanics.com/science/a64814750/unified-theory-gravity/
1•rurban•50s ago•0 comments

Former Apple Design Guru Jony Ive to Take Expansive Role at OpenAI

https://www.wsj.com/tech/ai/former-apple-design-guru-jony-ive-to-take-expansive-role-at-openai-5787f7da
1•occamschainsaw•1m ago•0 comments

OpenAI is buying Jony Ive's AI hardware company

https://www.theverge.com/news/671838/openai-jony-ive-ai-hardware-apple
1•occamschainsaw•1m ago•0 comments

Just Use React

https://www.epicreact.dev/just-use-react-dk4e0
1•tipiirai•10m ago•0 comments

Leaking /etc./shadow from userspace by manipulating Intel branch predictors [pdf]

https://comsec.ethz.ch/wp-content/files/bprc_sec25.pdf
1•WJW•10m ago•1 comments

Guidelines on Writing a Philosophy Paper (2012)

https://www.jimpryor.net/teaching/guidelines/writing.html
1•Tomte•10m ago•0 comments

Show HN: Projct.dev – A link-in-bio tool to showcase your side projects

https://www.projct.dev/
1•ajoshu•10m ago•1 comments

VoiceOver on Mobile (2020)

https://webaim.org/articles/voiceover/mobile
1•Tomte•11m ago•0 comments

A Simple HWID Spoofer

https://github.com/elizabethuyvhi/hwd
1•lemoncelo•13m ago•0 comments

Uniqlock: A modern take on an old flash advertisement campaign

https://github.com/MegaJerk/Uniqlock
1•mellosouls•14m ago•1 comments

OIN expands Linux patent protection yet again (but not to AI) (2024)

https://www.zdnet.com/article/oin-expands-linux-patent-protection-yet-again-but-not-to-ai/
1•transpute•15m ago•0 comments

Ancient law requires a bale of straw to hang from Charing Cross rail bridge

https://www.ianvisits.co.uk/articles/ancient-law-requires-a-bale-of-hay-to-hang-from-charing-cross-rail-bridge-81318/
3•alexbilbie•18m ago•0 comments

Arguments Meta presented in court to refute that they are a monopoly

https://www.nytimes.com/2025/05/21/technology/meta-antitrust-trial-arguments.html
1•severusdd•19m ago•1 comments

Ask HN: AI agent platform that runs locally

1•EnthusiastShiv•23m ago•0 comments

Can Sam Altman Be Trusted with the Future?

https://www.newyorker.com/books/under-review/can-sam-altman-be-trusted-with-the-future
2•FinnLobsien•24m ago•0 comments

Ask HN: What tool, tech or process in front-end dev would you improve/change?

1•herol3oy•25m ago•0 comments

Desire After Sublimation

https://critiqueanddigest.substack.com/p/desire-after-the-sublime
2•bryanrasmussen•36m ago•0 comments

Neovim Adopts New Powerful Glob Implementation

https://github.com/neovim/neovim/pull/33605
1•brynne8•38m ago•1 comments

Lisping at JPL

https://flownet.com/gat/jpl-lisp.html
3•adityaathalye•38m ago•2 comments

Signal's new Windows update prevents the system from capturing screenshots

https://techcrunch.com/2025/05/22/signals-new-windows-update-prevents-the-system-from-capturing-screenshots-of-chats/
3•Sourabhsss1•42m ago•1 comments

JEP 519: Compact Object Headers

https://openjdk.org/jeps/519
17•Skinney•45m ago•2 comments

My new hobby: watching AI slowly drive Microsoft employees insane

https://www.reddit.com/r/ExperiencedDevs/s/jss3hBEOuT
3•py4•48m ago•3 comments

Obsidian: Introduction to Bases (sets of notes to a Database)

https://help.obsidian.md/bases
2•teekert•48m ago•0 comments

Is high resolution time available in the log?

https://eclecticlight.co/2025/05/22/is-high-resolution-time-available-in-the-log/
2•haxfenx•50m ago•0 comments

Silurian Hypothesis

https://en.wikipedia.org/wiki/Silurian_hypothesis
2•adityaathalye•51m ago•0 comments

Lumma Stealer: delivery techniques and capabilities of a prolific infostealer

https://www.microsoft.com/en-us/security/blog/2025/05/21/lumma-stealer-breaking-down-the-delivery-techniques-and-capabilities-of-a-prolific-infostealer/
3•praseodym•51m ago•0 comments

Use AI for proof of concept?

1•mywacaday•52m ago•0 comments

Subreply is now open source

https://github.com/lucianmarin/subreply
4•lcnmrn•54m ago•0 comments

Show HN: I made a SPA to quickly practice/test/improvise my typing

https://www.speedtesttyping.net/
1•karanveer•55m ago•3 comments