aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-03 07:45:53 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-03 07:45:53 -0500
commit074b185d046602f450104fefb24b9e69acdb4c7c (patch)
tree17792bc4a2254effb1ecd2ca28be8dd9f0c793bd /docs
parenta4c644eb2b47b7474f1bd66d3fc942f5ef622d68 (diff)
downloadslskd-074b185d046602f450104fefb24b9e69acdb4c7c.tar.gz
clarify proxy use case
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index a4c1c8ee..50ff5f6c 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -564,6 +564,8 @@ An optional comma separated list of [CIDRs](https://en.wikipedia.org/wiki/Classl
A common use case for CIDR filtering might be to restrict API access to clients within your home network. Assuming your network uses the common `192.168.1.x` addressing, you could specify a `cidr` of `192.168.1.0/24`, which would apply to any IP between `192.168.1.1` and `192.168.1.254`, inclusive.
+Note that CIDR filtering may not work as expected behind a reverse proxy, ingress controller, or load balancer, because the remote IP address will be that of the device that's handling ingress. This application doesn't support the `X-Forwarded-For` header (or anything like it) because a bad actor can easily fake it. If you wish to use CIDR filtering in this scenario, you'll need to do it at the point of ingress to your network.
+
| Command-Line | Environment Variable | Description |
| ---------------- | -------------------- | --------------------------------------------------- |
| `-X\|--no-auth` | `NO_AUTH` | Determines whether authentication is to be disabled |