aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-03 08:05:26 -0500
committerGitHub <noreply@github.com>2022-10-03 08:05:26 -0500
commit272e4bde3a043d347278ee22c3e7ffb9ec3af2f7 (patch)
tree9cda1b672507763b4878a7891dc96051170d27d3 /docs
parent454c0d5cfd230d27077557c954169ef22e7ffcea (diff)
parente316feb33b3a644ae2fd3d89ff850e1c87b0463a (diff)
downloadslskd-272e4bde3a043d347278ee22c3e7ffb9ec3af2f7.tar.gz
Merge pull request #675 from slskd/auth-note
Add warning about API key security over plain HTTP
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 a4bcfc5c..969e2ca7 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -568,6 +568,8 @@ A common use case for CIDR filtering might be to restrict API access to clients
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.
+
| Command-Line | Environment Variable | Description |
| ---------------- | -------------------- | --------------------------------------------------- |
| `-X\|--no-auth` | `NO_AUTH` | Determines whether authentication is to be disabled |