mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 12:35:13 +00:00
fix(api): redact error replies, lock segment url lookups, refuse unresolvable proxy hosts and recheck job proxies at start
This commit is contained in:
@@ -362,10 +362,14 @@ pick a proxy for the client's region and for a service geofence. The client repo
|
||||
region; a client that reports none is not blocked.
|
||||
|
||||
Without `server_proxy`, the server refuses a proxy URI whose host is not a public address:
|
||||
loopback, private, link-local and other special-purpose addresses, and `localhost`. This also
|
||||
applies to a server on a LAN, so a client proxy on that LAN needs `server_proxy` or an admin key.
|
||||
The server checks the proxy values the job uses, including a `proxy` default from the server's
|
||||
own config.
|
||||
loopback, private, link-local and other special-purpose addresses, and `localhost`. It also
|
||||
refuses a host name that does not resolve. This also applies to a server on a LAN, so a client
|
||||
proxy on that LAN needs `server_proxy` or an admin key. The server checks the proxy values the
|
||||
job uses, including a `proxy` default from the server's own config, when you submit the job and
|
||||
again when the job starts. A job whose proxy host does not resolve at that time fails with
|
||||
`INVALID_PROXY`; submit it again. The checks read the DNS answer at that time only, so a host
|
||||
name that a client controls can still answer another address when the server connects. Give
|
||||
`server_proxy` only to API keys you trust with your network.
|
||||
|
||||
```yaml
|
||||
serve:
|
||||
|
||||
Reference in New Issue
Block a user