One endpoint, many provider accounts
The gateway speaks S3 on your server. Each bucket it serves is bound to a vault, and each vault lives on local disks or in a bucket you rent. Clients only ever see your endpoint, so the provider behind it becomes a setting instead of a dependency.
Routing is decided by an administrator, not a client: granting a key a profile needs admin.upstream.provision plus rights on the provider credential.
Upstream profiles
A profile names a provider credential and how buckets under it behave: encryption, sync strategy and conflict policy. A client picks one where S3 carries a region: LocationConstraint=<profile> on CreateBucket, or region = <profile> when signing.
Chosen per request
The request's constraint wins, then the signing region, then the key's own profile, then the server default, which applies only to keys opted in with --upstream server-default. LocationConstraint=local forces a local vault, and real AWS region names select nothing.
Credential routing
Each gateway key has its own profile and an allowlist (--allow-upstream). One key can reach several provider accounts and no others: any other profile answers 403, never a quiet fallback to local storage. A profile references a vh api-key, never its secret.



