NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.45k stars 2.72k forks source link

Third-party tool: nginx-ip-whitelister #3625

Open zuavra opened 8 months ago

zuavra commented 8 months ago

Hi, https://github.com/zuavra/nginx-ip-whitelister/ is a tool specifically designed to integrate with NPM.

It's a web app that acts as a validator for nginx via the ngx_http_auth_request_module and can be configured to allow/deny access based on various conditions (geoip, secret key, 2FA with TOTP, network masks etc.)

bluekitedreamer commented 8 months ago

Very cool project, you could also integrate passportJS to allow for other auth request options

http://www.passportjs.org/

zuavra commented 8 months ago

@bluekitedreamer Thank you for the suggestion but most (all?) of Passport's auth strategies are federated and require cookies and some degree of interactivity. I think they'd be better suited to something like vouch-proxy which specializes in federated proxy auth.

bluekitedreamer commented 8 months ago

@zuavra Very true, I misrepresent my thought process here.

I think the better way to say what I was imagining was to layer-cake some of these solutions (IP Whitelisting, and SSO/other sign on) in order to achieve better security. Although some SSO solutions do provide whitelisting solutions on their side, I sort of like the approach of not even making it to the SSO login at all (redirect fails before connection) without first having the IP whitelisted.

Then again you could just add the whitelist rule in front of the reverse proxy for the SSO login as well.

github-actions[bot] commented 1 month ago

Issue is now considered stale. If you want to keep it open, please comment :+1: