On Sat, Jan 8, 2022 at 3:03 PM Tim Düsterhus <[email protected]> wrote:
> Causes issues when applying the patch, because git gets confused and
> believes this to be the patch.
> I tend to indent this type of "literal code block" within my commit
> message with 4 spaces for clarity.

indeed, good point, will fix if I have to resend a v2

On Mon, Jan 10, 2022 at 7:51 AM Willy Tarreau <[email protected]> wrote:
> It's important to always keep in mind that checks are not necessarily
> related to the production traffic, and that configuring one part should
> not have any impact on the other one. By default a server running in SSL
> will not be checked using SSL unless "check-ssl" is set.

note it is only true in your example if you use another port.

> You could for
> example have a server forwarding to multiple ports (say 80 and 443) and
> decide to check only one of them, or even check another one.
>
> As such, I think your patch is correct as it only affects what the user
> attempts to modify. I suspect that the reason for your initial choice was
> that it was not yet possible by then to enable SSL checks manually,

sorry what do you mean by manually?
"check-ssl" has been available for a long time, so that's not the
reason behind it, but I guess you were referring to something else. I
suspect I did a dumb copy/paste from the new_server function and
probably never thought was possibly wrong as my previous production
never had any check using tls.

> it
> would be worth rechecking, because if that's the case, maybe we should
> not backport it to 2.4 and only document a behavior change between 2.4
> and 2.5.
> If you could have a double-check at the history behind this, that would
> be nice so that we know how far to backport it. By the way, maybe your
> proposed alternative would be acceptable for older versions which do not
> allow to enable SSL health checks on the CLI.

unless I missed something, for me the current behavior is broken as
you can't come back to a working state if you are using tls on both
traffic and health check path. The only working setup is when you are
using `no-check-ssl` in your default server. In that sense I believe
it should be backported to v2.4.
--
William

Reply via email to