Welcome! Log In Create A New Profile

Advanced

Re: unique_id

June 29, 2012 02:00AM
http://nginx.org/en/docs/http/ngx_http_userid_module.html


--
Igor Sysoev

On Jun 29, 2012, at 1:54 , Jonathan Matthews wrote:

> Resurrecting an old thread ...
>
> On 18 July 2011 10:07, Gábor Farkas <gabor@nekomancer.net> wrote:
>> hi,
>>
>> i need something like
>> http://httpd.apache.org/docs/current/mod/mod_unique_id.html (but for
>> nginx obviously).
>>
>> basically i need nginx to generate some kind of
>> uuid/checksum/something-unique, that it can send to an
>> upstream-proxied server,
>> and also put into the logs. the idea is to be able to track the
>> 'lifetime' of a request as it traverses through nginx and into the
>> upstream server and then back into nginx.
>
> I had exactly this idea too :-) I'm wondering if anyone has any input?
>
> Some random thoughts:
>
> I'd like to *avoid* using embedded LUA/Perl/etc, even though they have
> libraries that might do the actual (UU)ID generation. This is because,
> as the OP suggests, having this header inserted at the most external
> entry point to your network means you can track the request most
> completely across your infrastructure. On my external nginx instances
> (SSL-terminating, for example) I *really* like to keep the enabled
> modules as light as possible to decrease the machine's attack surface.
>
> Linux exposes /proc/sys/kernel/random/uuid, which does the heavy
> lifting for us of generating a (UU)ID. Windows ... probably doesn't
> :-/
>
> Is anyone doing anything like this? Am I missing a simple way of
> achieving the goal of injecting (relatively) unique IDs into my N-tier
> proxy_pass'd architecture?
>
> Cheers!
> Jonathan
> --
> Jonathan Matthews
> Oxford, London, UK
> http://www.jpluscplusm.com/contact.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

unique_id

Gábor Farkas July 18, 2011 05:08AM

Re: unique_id

Jonathan Matthews June 28, 2012 05:56PM

Re: unique_id

Igor Sysoev June 29, 2012 02:00AM

Re: unique_id

Jonathan Matthews June 29, 2012 09:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 103
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