Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
March 03, 2015 10:52AM
Hello!

On Tue, Mar 03, 2015 at 03:14:50PM +0100, Michael Kliewe wrote:

> Hi again,
>
> On Mar 2, 2015, at 3:56 PM, Maxim Dounin wrote:
>
> > 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.
>
> I'm sorry, I don't really want to repeat my arguments, but as I
> said I don't have control over all nginx servers that are used.
> Some will be "older", some will be newer. And I cannot force
> "them" to introduce the auth_http_header to just send the nginx
> version or capability of sending Auth-SSL header or not...

If you can't, than just switch off warnings till the update is
complete, as already suggested.

> Filipe's patch is working fine since > 6 month, it's either
> sending 0 or 1. The 0 is an important information and should not
> be dropped.
>
> Can you tell me the disadvantage of sending "off" in case the
> connection is unencrypted? I don't really see the problem at the
> moment why you don't add the else branch, you are dropping
> information that is needed (and that was there in the original
> patch)... It's just 3 lines more code and doesn't hurt anybody,
> but provides important information to the auth script.

As already explained, the problem is that the header will be added
forever for all setups, and it will be waste of resources in all
these setups. It will be waste of resources in your setup as well
after the transition period.

--
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 1056 March 06, 2014 05:00AM

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

Maxim Dounin 468 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 351 August 01, 2014 03:00PM

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

MKl 391 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 308 March 02, 2015 08:14AM

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

Maxim Dounin 282 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 293 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 341 March 03, 2015 10:52AM

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

MKl 363 March 03, 2015 11:30AM

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

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

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

Filipe Da Silva 332 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: 287
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