Remix.run Logo
i18nagentai 2 hours ago

What strikes me most about this is how it illustrates the tension between backward compatibility and security in long-lived systems. The cancel key approach made total sense in the context of early Unix networking assumptions, but those assumptions have quietly eroded over decades. The fact that the cancel token is only 32 bits of entropy and sent in cleartext means it was never really designed for adversarial environments -- it was a convenience feature that became load-bearing infrastructure. I wonder if the Postgres community will eventually move toward a multiplexed protocol layer (similar to what HTTP/2 did for HTTP) rather than trying to bolt security onto the existing out-of-band mechanism.

dmurray 2 hours ago | parent | next [-]

Doesn't it also make sense in the context of modern networking assumptions?

I've never had to connect to PostGres in an adversarial environment. I've been at work or at home and I connected to PostGres instances owned by me or my employer. If I tried to connect to my work instance from a coffee shop, the first thing I'd do would be to log in to a VPN. That's your multiplexed protocol layer right there: the security happens at the network layer and your cancel happens at the application layer.

This is a different situation from websites. I connect to websites owned by third parties all the time, and I want my communication there to be encrypted at the application layer.

xmcqdpt2 an hour ago | parent | next [-]

Zero trust security which is becoming increasingly common is based on removing the internal / external network dichotomy entirely. Everything should be assumed to be reachable from the open internet (so SSO, OIDC everywhere.)

gruez an hour ago | parent | prev [-]

>I've never had to connect to PostGres in an adversarial environment.

heroku's postgres database service still exposes itself on the public internet.

tensegrist 2 hours ago | parent | prev [-]

is sed s/—/--/ the new meta

mattkrause 40 minutes ago | parent | next [-]

It should be THREE hyphens for an em-dash!

shilgapira an hour ago | parent | prev | next [-]

offtopic, but it's interesting how large of a discrepancy there is between the length of your comment and how much time i'd have to spend explaining background info to a non-programmer to get them to understand why this is funny

arvyy an hour ago | parent | prev | next [-]

hardly new, I've used it before advent of llm popularity, and I wasn't alone

paulddraper an hour ago | parent | prev [-]

I've always used it.

My keyboard has -.