Re: Allow ssl_renegotiation_limit in PG 9.5 - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Allow ssl_renegotiation_limit in PG 9.5
Date
Msg-id 20151014155604.GI30738@alap3.anarazel.de
Whole thread Raw
In response to Allow ssl_renegotiation_limit in PG 9.5  (Shay Rojansky <roji@roji.org>)
Responses Re: Allow ssl_renegotiation_limit in PG 9.5  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2015-10-14 18:53:14 +0300, Shay Rojansky wrote:
> However, the new situation where some versions of PG allow this parameter
> while others bomb when seeing it. Specifically, Npgsql sends
> ssl_renegotiation_limit=0 in the startup packet to completely disable
> renegotiation. At this early stage it doesn't know yet whether the database
> it's connecting to is PG 9.5 or earlier.

I find it a rather debatable practice to send such a parameter
unconditionally. Why are you sending it before the connection has even
been established?

> Is there any chance you'd consider allowing ssl_renegotiation_limit in PG
> 9.5, without it having any effect (I think that's the current behavior for
> recent 9.4, 9.3, right)?

No, you can actually enable renegotiation in those versions, it's just a
changed default value.

> It may be a good idea to only allow this parameter to be set to zero,
> raising an error otherwise.

-0.1 from me.

Andres



pgsql-hackers by date:

Previous
From: Shay Rojansky
Date:
Subject: Allow ssl_renegotiation_limit in PG 9.5
Next
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan