Authentication and session management using nginx-lua

2,716 views
Skip to first unread message

jal...@algotree.com

unread,
Jan 13, 2013, 2:09:52 AM1/13/13
to openre...@googlegroups.com
Hi,

I am using nginx as reverse proxy for elasticsearch, is it possible to use the nginx-lua module for authentication and session management to elasticsearch.
I have tried using http basic authentication and it works, but what i want to implement is authentication with secure cookies or secure sessions.

Thanks


agentzh

unread,
Jan 13, 2013, 2:42:11 AM1/13/13
to openre...@googlegroups.com
Hello!
You can use the ngx_encrypted_session module for this:

http://github.com/agentzh/encrypted-session-nginx-module

Its config directives are also callable in Lua via the
ndk.set_var.DIRECTIVE API provided by ngx_lua:

http://wiki.nginx.org/HttpLuaModule#ndk.set_var.DIRECTIVE

Best regards,
-agentzh

jal...@algotree.com

unread,
Jan 13, 2013, 2:54:39 AM1/13/13
to openre...@googlegroups.com
Hi

Thanks for the quick reply :)  ...I wil try and implement it.. 

Thanks and regards
Jalal

Gawin

unread,
Oct 11, 2013, 2:29:24 AM10/11/13
to openre...@googlegroups.com
Hi Jalal,

How did the reverse proxy for ElasticSearch in Lua work out for you?

Gawin
Reply all
Reply to author
Forward
0 new messages