Welcome! Log In Create A New Profile

Advanced

Authentication/access control module for reverse proxy NGINX

Jun Chen via nginx-devel
February 22, 2017 05:18PM
Hi everyone,
I am looking for a module which does the authentication/access control for reverse proxy (preferable `nginx`). This module should do:

    1. user authentication using credential stored in database (such as postgres)
    2. Monitoring the ongoing connection and take action if certain access credential is met. For example, time is expired
    3. open source (allow customization) and nginx, ruby(rails) preferable.

It seems that [`OpenResty`][1] with `nginx` can do the job. Here is an [article][2] talking about access control with `Lua` on `nginx`. Here is an example (`nginx and Lua`) giving me impression that a snippet of file could executed for access (`access_by_lua_file`):

    server {
        listen 8080;
   
        location / {
          auth_basic           "Protected Elasticsearch";
          auth_basic_user_file passwords;
   
          access_by_lua_file '.../authorize.lua';  #<<<=====
   
          proxy_pass http://elasticsearch;
          proxy_redirect off;
        }
   
      }

I am new to access control with reverse proxy. Any thought is appreciated.


  [1]: https://github.com/openresty/lua-nginx-module
  [2]: Playing HTTP Tricks with Nginx


|
|
|
| | |

|

|
|
| |
Playing HTTP Tricks with Nginx
Update November 2, 2015: If you're interested in advanced access control configuration or other security fea... | |

|

|


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

Authentication/access control module for reverse proxy NGINX

Jun Chen via nginx-devel 539 February 22, 2017 05:18PM

Re: Authentication/access control module for reverse proxy NGINX

Sergey Brester 199 February 22, 2017 05:44PM

Re: Authentication/access control module for reverse proxy NGINX

Andrey Kulikov 206 February 22, 2017 06:58PM



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

Online Users

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