aboutsummaryrefslogtreecommitdiffstats
path: root/docs/config.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/config.md')
-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.