From: | Erica Zhang <ericazhangy2021(at)qq(dot)com> |
---|---|
To: | Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>, Daniel Gustafsson <daniel(at)yesql(dot)se> |
Cc: | Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re:Re: Add support to TLS 1.3 cipher suites and curves lists |
Date: | 2024-06-13 06:34:27 |
Message-ID: | tencent_1B368B07F4B5886F9822981189DA736CF209@qq.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi All,
Frist of all really appreciate the review of my patch. I've seperated the patch into two: patch_support_tls1.3 for tls1.3 support and patch_support_curves_group for a set of curves list.
TLS1.3 support - patch_support_tls1.3
I agree with Jelte that it's better to have different options for tls1.2 and lower(cipher list) and tls1.3(cipher suite) since openssl provided different APIs for each. As for users not faimilar with TLS(they don't care TLS,)we can still keep the default value as described here https://www.postgresql.org/docs/devel/runtime-config-connection.html. If TLS is critical to them(they should have figured out the different options in tls1.2 and tls1.3), then they can set the values on-demand. Moreover we can add some description of these two options.
eg.
ssl_ciphers | HIGH:MEDIUM:+3DES:!aNULL | Sets the list of allowed SSL ciphers for TLS1.2 and lower.
ssl_ciphers_suites | HIGH:MEDIUM:+3DES:!aNULL | Sets the list of allowed SSL cipher suites for TLS1.3.
Curves groups - patch_support_curves_group
Indeed SSL_CTX_set1_curves_list is deprecated it's bette to change to SSL_CTX_set1_groups_list instead.
Original Email
Sender:"Jelte Fennema-Nio"< postgres(at)jeltef(dot)nl >;
Sent Time:2024/6/12 16:51
To:"Daniel Gustafsson"< daniel(at)yesql(dot)se >;
Cc recipient:"Erica Zhang"< ericazhangy2021(at)qq(dot)com >;"Jacob Champion"< jacob(dot)champion(at)enterprisedb(dot)com >;"Peter Eisentraut"< peter(at)eisentraut(dot)org >;"pgsql-hackers"< pgsql-hackers(at)lists(dot)postgresql(dot)org >;
Subject:Re: Add support to TLS 1.3 cipher suites and curves lists
On Mon, 10 Jun 2024 at 12:31, Daniel Gustafsson wrote:
> Regarding the ciphersuites portion of the patch. I'm not particularly thrilled
> about having a GUC for TLSv1.2 ciphers and one for TLSv1.3 ciphersuites, users
> not all that familiar with TLS will likely find it confusing to figure out what
> to do.
I don't think it's easy to create a single GUC because OpenSSL has
different APIs for both. So we'd have to add some custom parsing for
the combined string, which is likely to cause some problems imho. I
think separating them is the best option from the options we have and
I don't think it matters much practice for users. Users not familiar
with TLS might indeed be confused, but those users shouldn't touch
these settings anyway, and just use the defaults. The users that care
about this probably already get two cipher strings from their
compliance teams, because many other applications also have two
separate options for specifying both.
Attachment | Content-Type | Size |
---|---|---|
patch_support_curves_list.diff | application/octet-stream | 1.4 KB |
patch_support_tls1.3.diff | application/octet-stream | 3.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dilip Kumar | 2024-06-13 06:42:20 | Re: Logical Replication of sequences |
Previous Message | vignesh C | 2024-06-13 06:23:34 | Re: Logical Replication of sequences |