aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-13 16:33:37 -0600
committerJP Dillingham <jp@dillingham.me>2025-12-13 16:33:37 -0600
commit0d548ed62517ed1807d3c13f96772f33a9a3c1d1 (patch)
treeba0d2c73e9cea43e11525a5829010d83dff24f8c
parent804f661ab5d0e3b6ffdfd6a5b38959ac1b1690be (diff)
downloadslskd-0d548ed62517ed1807d3c13f96772f33a9a3c1d1.tar.gz
warning about ipv6
-rw-r--r--docs/config.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index 6ba5bd2a..1ab7daec 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -891,6 +891,9 @@ role=ReadOnly;cidr=0.0.0.0/0,::/0;<16 to 255 character string>
By default, the role associated with the 'primary' API key is `Administrator` (other API keys default to `ReadOnly`) and list of CIDRs is `0.0.0.0/0,::0` (same as other API keys).
#### Cautions
+
+When using CIDR filtering, you *must* supply both IPv4 and IPv6 ranges.
+
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.
Please also note that using API key authentication without HTTPS is **NOT RECOMMENDED**. API keys are sent in HTTP headers (and in the case of SignalR, in query parameters) and will be easily accessible to anyone eavesdropping on the network. This is a risk with JWTs as well, but JWTs expire and API keys don't. If you choose to use API keys over plain HTTP, seriously consider using CIDR filtering.