diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-03 08:01:13 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-03 08:01:13 -0500 |
| commit | e316feb33b3a644ae2fd3d89ff850e1c87b0463a (patch) | |
| tree | 9cda1b672507763b4878a7891dc96051170d27d3 /docs | |
| parent | 454c0d5cfd230d27077557c954169ef22e7ffcea (diff) | |
| download | slskd-e316feb33b3a644ae2fd3d89ff850e1c87b0463a.tar.gz | |
add warning about API key security over plain HTTP
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/config.md | 2 |
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 | |
