fix(api): redact error replies, lock segment url lookups, refuse unresolvable proxy hosts and recheck job proxies at start

This commit is contained in:
imSp4rky
2026-11-28 21:33:00 -07:00
parent 7713f8df3f
commit 0a791ad6e8
15 changed files with 348 additions and 20 deletions
+8 -4
View File
@@ -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: