Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin
March 02, 2015 09:58AM
Hello!

On Mon, Mar 02, 2015 at 03:32:03PM +0100, Michael Kliewe wrote:

> Hi Maxim,
>
> On Mar 2, 2015, at 3:14 PM, Maxim Dounin wrote:
>
> > Hello!
> >
> > On Mon, Mar 02, 2015 at 01:12:44PM +0100, Michael Kliewe
> > wrote:
> >
> >> with your changes there is a problem:
> >> nginx now just sends the header if the connection is
> >> encrypted. If the connection is not encrypted, then there is
> >> no header sent to the auth script.
> >> In the auth script I cannot distinguish between "user did not
> >> use encryption" and "nginx doesn't have the feature" (because
> >> of mixed nginx versions).
> >> With the original version of the patch this was possible.
> >
> > Try updating all your nginx instances before using the header
> > for something limiting, it is expected to resolve your
> > problem.
> >
> > Either way, the only safe thing to do if "nginx doesn't have
> > the feature" is to assume there is no SSL if SSL matters. And
> > that's what current behaviour encourages.
>
> You are kind of right, but currently I'm distinguishing between
> "encrypted", "not-encrypted" and "unknown", because we have
> different versions of nginx in different setups. I cannot update
> all nginx versions in parallel in all setups. That's why your
> tip does not help me ;-/
> I need to distinguish between "not-encrypted" and "unknown",
> because I want to warn all users still using not-encrypted
> connections. With your patch I cannot distinguish between them,
> and would send false warnings...

So switch off warnings till the update is complete. That's an
easy way to go.

Alternatively, you may use the "auth_http_header" directive
(http://nginx.org/r/auth_http_header) to distinguish between
various installations.

> Would it be complicated to send "Auth-SSL: off" in case there
> was no encryption? It's just one "else" more, and solves all
> problems.

You are trying to solve your particular deployment problem by
introducing the flag which will be here for all users forever.
This doesn't looks like a good solution to me.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Mail: send starttls flag value to auth script

Filipe da Silva 1055 March 06, 2014 05:00AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 466 March 06, 2014 11:28AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 494 March 06, 2014 12:04PM

Re: [PATCH] Mail: send starttls flag value to auth script

Filipe Da Silva 565 June 19, 2014 04:12PM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 383 July 30, 2014 10:34PM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 350 August 01, 2014 03:00PM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 390 August 01, 2014 04:16PM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 373 February 04, 2015 04:10PM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 388 February 05, 2015 08:02AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 279 February 25, 2015 10:30AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 327 February 25, 2015 10:32AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 302 March 02, 2015 07:14AM

Re: [PATCH] Mail: send starttls flag value to auth script

Filipe Da Silva 307 March 02, 2015 08:14AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 281 March 02, 2015 09:16AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 302 March 02, 2015 09:34AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 292 March 02, 2015 09:58AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 365 March 03, 2015 09:16AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 340 March 03, 2015 10:52AM

Re: [PATCH] Mail: send starttls flag value to auth script

MKl 362 March 03, 2015 11:30AM

Re: [PATCH] Mail: send starttls flag value to auth script

Filipe Da Silva 341 March 07, 2015 05:36AM

Re: [PATCH] Mail: send starttls flag value to auth script

Filipe Da Silva 331 March 07, 2015 10:58AM

Re: [PATCH] Mail: send starttls flag value to auth script

Maxim Dounin 310 March 10, 2015 07:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready