From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Casey & Gina <cg(at)osss(dot)net>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Question about UNIX socket connections and SSL |
Date: | 2024-06-12 19:32:22 |
Message-ID: | 83B23251-97B6-453B-A63F-0B2A234E69AA@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> On 12 Jun 2024, at 21:17, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Casey & Gina <cg(at)osss(dot)net> writes:
>> So why can't I use SSL when connecting from a client to a UNIX socket?
>
> (1) It'd add overhead without adding any security. Data going through
> a UNIX socket will only pass through the local kernel, and if that's
> compromised then it's game over anyway.
>
> (2) I'm less sure about this part, but I seem to recall that openssl
> doesn't actually work if given a UNIX socket.
That indeed used to be the case, at least until 1.0.2 and possibly 1.1.1, but
AF_UNIX is supported in 3+ IIRC. That being said, I agree with your (1).
--
Daniel Gustafsson
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2024-06-12 20:35:21 | Re: PG16.1 security breach? |
Previous Message | Tom Lane | 2024-06-12 19:17:33 | Re: Question about UNIX socket connections and SSL |