42atomys/webhooked

Security Factory: compareWithAllowedIPs / compareWithBlockedIPs

Closed this issue · 0 comments

Add a factory that allows to compare an IP via a blocklist or an allowlist

Example of config (not final)

  security:
  - getClientIP:
  - compareWithAllowedIPs:
      ips: ['127.0.0.1']
# OR
  security:
  - getClientIP:
  - compareWithBlockedIPs: 
      ips: ['127.0.0.1']