Skip to content

satisfy_any toggle not working #4088

@mikeymasonic

Description

@mikeymasonic

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
Whenever I set "Satisfy Any" in an access list details section, it doesn't work. For instance if I have an HTTP Auth setup and an IP route, if I access that particular proxy on a whitelisted IP, I get prompted for HTTP authentication. If I go to the proxy with a non whitelisted IP, I get 403 Forbidden and no HTTP Auth prompt. The check box does save the previous saved state however.

I've taken a look at the config files and I notice this near the end:

# Access checks must...
    
    satisfy all;

If I manually change this to satisfy any;, everything works as expected.

Another unrelated issue, I notice in the GUI I'm on version v2.12.1, but in my docker instance I see: NPM_BUILD_VERSION | 2.11.3

If I login to my docker container I see: Version 2.11.3 (35d7a3a) 2024-07-01 11:42:06 UTC
I've pulled the latest image several times.

Nginx Proxy Manager Version

v2.12.1

To Reproduce
Steps to reproduce the behavior:

  1. Access Lists
  2. Edit an existing list
  3. Add a valid whitelist ip
  4. Add an HTTP login/password
  5. Ensure Satisfy Any is checked
  6. Save
  7. Try to access proxy with your whitelisted IP, you'll still see an HTTP login
  8. Try to access proxy with non whitelisted IP, you'll get 403 - Forbidden
  9. If you manually change your proxy config file from satisfy all; to satisfy any;, everything works as expected

Expected behavior

  • No HTTP Auth prompt if using a whitelisted IP and access
  • HTTP Auth prompt if using a non whitelisted IP instead of a 403

Screenshots

Operating System

Using a docker instance on Ubuntu

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions