Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by singpolyma3 on Saturday February 14, 2026 @09:31AM
(#47014807)
TLS for your database? Are you connecting outside of the local machine or VPN?
[ Parent
| on HN ]
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by Sentinel-gate on Saturday February 14, 2026 @12:42PM
(#47016500)
Yeah, more and more. Zero-trust is pushing TLS everywhere, even inside VPNs — lateral movement is a real thing. And several compliance frameworks now expect encryption in transit regardless of network topology. With connection pooling the overhead is basically zero anyway.
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by freedomben on Saturday February 14, 2026 @01:13PM
(#47016816)
Indeed, if you're running the db in production and aren't using TLS, you're doing it wrong nowadays. Nearly every compliance framework will require it, and it's a very good idea anyway even if you don't care about compliance.
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by singpolyma3 on Saturday February 14, 2026 @07:03PM
(#47019734)
... but if it's over a VPN it's already encrypted in transit?
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by Sentinel-gate on Sunday February 15, 2026 @03:21AM
(#47021993)
Encrypted in transit yes, but only between the VPN endpoints. Anything already inside the network (compromised host, rogue container, bad route) sees your queries in cleartext.
TLS on the connection itself gives you end-to-end encryption between your app and Postgres, no matter what's going on in the network in between. Same reason people moved to HTTPS everywhere instead of just trusting the corporate firewall. And with connection pooling you pay the TLS handshake once and reuse it, so the overhead is basically nothing.
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by singpolyma3 on Sunday February 15, 2026 @07:41PM
(#47029437)
Maybe we're talking about different things. If there's a VPN link between the two severs there shouldn't be any "network in between"
Re:Show HN: SQL-tap – Real-time SQL traffic viewer for Postg...
by Sentinel-gate on Monday February 16, 2026 @03:25AM
(#47032372)
Fair point, if it's a true point-to-point VPN between just the two boxes, there's not much "in between" to worry about. TLS on top is mostly defense in depth at that point. What I had in mind was the more common setup where your app and DB sit on a shared network (VPC, corporate LAN). The traffic between them is unencrypted, and you're trusting every piece of infrastructure in that path (switches, hypervisors, sidecar containers) to not be compromised.