vh s3-gateway
Reference for vh s3-gateway - enable the S3-compatible gateway and manage its credentials, scopes, per-vault roles, buckets, upstream profiles and budgets.
vh s3-gateway (alias vh s3gw) manages the S3-compatible gateway: whether it runs, the inbound credentials S3
clients sign with, the buckets it exposes, the upstream profiles a CreateBucket uses and per-key budgets. See
S3 Gateway and Credentials And Scopes.
1vh s3-gateway enable2vh s3-gateway creds create laptop --scope user-access --json3vh s3-gateway creds create backup --scope vault-allowlist --default-role reader --selected-vault archive --json4vh s3-gateway creds role assign backup --vault archive --role contributor5vh s3-gateway bucket create-local archive6vh s3-gateway upstream create vl-b2 --api-key b2-main --no-encrypt --sync-strategy mirror --on-sync-conflict keep_local7vh s3-gateway creds scope backup set --upstream vl-b28vh s3-gateway budget set-key backup --monthly 5 --mode enforce --currency USD
Gateway authorization is RBAC-native. user_access inherits the principal user's Vaulthalla RBAC. vault_allowlist
uses selected vaults plus a key-level default vault role and optional per-vault exceptions. global requires an admin
principal and a key-level default vault role. Boolean credential scope flags and creds scope allow-vault remain
compatibility shorthand only.
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
| read | Show S3 gateway runtime status. | |||
| write | Enable the S3 gateway in config and restart its runtime service. | |||
| write | Disable the S3 gateway in config and restart its runtime service. | |||
credentials, credential | Manage inbound S3 gateway credentials. | |||
buckets | Manage S3 gateway bucket bindings. | |||
upstream-profile, upstream-profiles | Manage upstream profiles: what a CreateBucket through the gateway creates. | |||
budgets | Manage S3 gateway per-key and per-key/vault price budgets. |
vh s3-gateway status
vh s3-gateway statusvh s3-gateway enable
vh s3-gateway enablevh s3-gateway disable
vh s3-gateway disablevh s3-gateway creds
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<name> | new, add | write | Create an inbound gateway credential (an access key and its secret, printed once) for a user: user-access follows that user's own permissions, vault-allowlist limits it to selected vaults with a default vault role, global needs an admin principal. | |
ls | read | List the gateway credentials you may see, with their scope and expiry. | ||
<access_key_or_name> | delete, rm | destructive | Revoke a gateway credential: requests signed with it are refused from now on. | |
<access_key_or_name> | View or change S3 gateway credential policy. | |||
roles | Manage per-vault role assignments and overrides for a credential. |
vh s3-gateway creds create
vh s3-gateway creds create <name> [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-u | user | Principal user name or ID. | ||
scope | Scope: user-access, global, or vault-allowlist. | |||
vault | Vault ID or name allowed by the credential; repeat for multiple vaults. | |||
duration | Credential lifetime, such as 30d or 12h. | |||
text | Credential description. | |||
--default-vault-role, --role | role | Default vault role for vault-allowlist credentials. | ||
vault | Vault ID or name the default role applies to. | |||
flag | Allow List operations for scoped vaults. | |||
flag | Allow Read operations for scoped vaults. | |||
flag | Allow Write operations for scoped vaults. | |||
flag | Allow Delete operations for scoped vaults. | |||
flag | Allow bucket admin operations for scoped vaults. | |||
flag | Count local/cache hits against gateway key budgets. | |||
-j | flag | Output in JSON format. |
vh s3-gateway creds list
vh s3-gateway creds revoke
vh s3-gateway creds revoke <access_key_or_name> [--user <user>]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-u | user | User name or ID when revoking by name. |
vh s3-gateway creds scope
vh s3-gateway creds scope <access_key_or_name>The credential comes before the subcommand: vh s3-gateway creds scope <credential> show|set|allow-vault|revoke-vault.
set --upstream <profile>|server-default|local chooses what a CreateBucket with this credential creates, and show
reads it back (with --json, under upstream).
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
| read | Show a credential's final policy: its scope, principal, vaults, default role and upstream profile. | |||
| write | Change a credential's policy: its scope, principal, lifetime, default vault role, the upstream profile its CreateBucket uses and whether local and cache hits count against its budget. | |||
<vault> | write | Compatibility shorthand: add one vault to a credential's allowlist with boolean operation flags, still subject to the principal's permissions. | ||
<vault> | destructive | Remove one vault from a credential's allowlist. |
vh s3-gateway creds scope show
vh s3-gateway creds scope <access_key_or_name> show [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh s3-gateway creds scope set
vh s3-gateway creds scope <access_key_or_name> set [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
scope | Scope: user-access, global, or vault-allowlist. | |||
-u | user | Retarget principal user name or ID. | ||
duration | Credential lifetime, such as 30d or 12h. | |||
text | Credential description. | |||
--default-vault-role, --role | role | Default vault role for vault-allowlist credentials. | ||
vault | Vault ID or name the default role applies to. | |||
profile | What this credential's CreateBucket creates: an upstream profile's name, 'server-default' (the server's default profile), or 'local' (a local vault). | |||
choice | Whether a profile's changed sync settings also apply to the buckets this credential created: on, off, or inherit (the server's setting). | |||
profile | A profile a request made with this credential may select by sending its name as the region, besides the credential's own; repeat for several. Replaces the list; 'none' clears it. | |||
flag | Count local/cache hits against gateway key budgets. | |||
flag | Do not count local/cache hits against gateway key budgets. |
vh s3-gateway creds scope allow-vault
vh s3-gateway creds scope revoke-vault
vh s3-gateway creds scope revoke-vault <vault>vh s3-gateway creds role
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<credential> | ls | read | List a credential's per-vault role assignments. | |
<credential> | write | Assign a vault role to the credential on one vault. | ||
<credential> | destructive | Remove the credential's role assignment on one vault. | ||
overrides | Manage path overrides on a credential's per-vault role. |
vh s3-gateway creds role list
vh s3-gateway creds role list <credential> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh s3-gateway creds role assign
vh s3-gateway creds role revoke
vh s3-gateway creds role revoke <credential> --vault <vault>| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name. |
vh s3-gateway creds role override
vh s3-gateway creds role override list
vh s3-gateway creds role override add
vh s3-gateway creds role override add <credential> --vault <vault> --permission <permission> --pattern <glob> [--effect <effect>] [--allow] [--deny] [--json]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name. | |||
--perm | permission | Yes | Permission (qualified name, short name, or ID). | ||
--path | glob | Yes | Glob the override applies to. | ||
effect | No | allow or deny. | |||
--allow-effect | flag | No | Allow (same as --effect allow). | ||
--deny-effect | flag | No | Deny (same as --effect deny). | ||
-j | flag | No | Output in JSON format. |
vh s3-gateway creds role override remove
vh s3-gateway creds role override remove <credential> --vault <vault> [--override-id <override_id>]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name. | |||
--id | override_id | No | Override ID (or pass it as the second positional); --id is an alias. |
vh s3-gateway bucket
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List the gateway's bucket bindings. | ||
<bucket> | write | Expose an existing vault through the gateway as a bucket of this name. | ||
<bucket> | destructive | Remove a bucket binding. | ||
<bucket> | write | Create a local encrypted vault and bind it as a bucket of this name. | ||
<bucket> | write | Create an API-exclusive cache bucket backed by an upstream S3 or R2 bucket, encrypted before upload unless --no-encrypt. | ||
<bucket> | write | Fill in the gateway's object metadata for a bucket's existing files, from local files or the remote index (--calculate-etags reads the bodies for MD5 ETags). |
vh s3-gateway bucket list
vh s3-gateway bucket list [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh s3-gateway bucket bind
vh s3-gateway bucket bind <bucket> --vault <vault> [--owner <user>] [--mode <mode>] [--api-exclusive]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name to expose. | |||
user | No | Vault owner when --vault is a name. | |||
mode | No | Bucket mode: local, remote_cache, or remote_proxy. | |||
flag | No | Mark binding API-exclusive. |
vh s3-gateway bucket unbind
vh s3-gateway bucket unbind <bucket>vh s3-gateway bucket create-local
vh s3-gateway bucket create-remote-cache
vh s3-gateway bucket create-remote-cache <bucket> --api-key <api-key> --upstream-bucket <bucket> [--encrypt] [--no-encrypt] [--accept-overwrite-waiver] [--accept-decryption-waiver]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
api-key | Yes | Existing upstream S3/R2 API key name or ID. | |||
bucket | Yes | Upstream S3/R2 bucket name. | |||
flag | No | Encrypt objects before upstream upload. | |||
flag | No | Do not encrypt objects before upstream upload. | |||
flag | No | Accept the encryption waiver when the upstream bucket already holds data. | |||
flag | No | Accept the waiver for storing upstream data unencrypted over existing data. |
vh s3-gateway bucket backfill
vh s3-gateway bucket backfill <bucket> [--calculate-etags]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Read local object bodies to calculate plaintext MD5 ETags. |
vh s3-gateway upstream
An upstream profile is what a CreateBucket through the gateway creates in a provider account. See
Upstream Profiles.
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
ls | read | List the upstream profiles and the server's default profile. | ||
<profile> | info | read | Show one upstream profile and the credentials that use it. | |
<name> | new, add | write | Create an upstream profile: the API key (with provider administration) and the S3 vault settings for the buckets a CreateBucket through the gateway creates. | |
<profile> | set, edit | write | Change an upstream profile. | |
<profile> | remove, rm | destructive | Delete an upstream profile no credential uses. |
vh s3-gateway upstream list
vh s3-gateway upstream list [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh s3-gateway upstream show
vh s3-gateway upstream show <profile> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh s3-gateway upstream create
vh s3-gateway upstream create <name> --api-key <api-key> [options]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
api-key | Yes | Upstream API key name or ID, enabled for provider administration. | |||
--strategy | strategy | No | Sync strategy of the vaults: cache, sync or mirror. | ||
--conflict | policy | No | Conflict policy: keep_local, keep_remote, keep_newest or ask. | ||
prefix | No | Prefix of the upstream bucket's name (the upstream bucket is <prefix>); empty for none. | |||
text | No | Profile description. | |||
off or <N>d or indefinite | No | What every bucket created through the profile keeps on the provider: off (the default: only the latest version), <N>d (old versions for N days) or indefinite. Anything but off is Backblaze B2 only; new buckets only. | |||
flag | No | Encrypt objects before they are uploaded (the default). | |||
flag | No | Store objects upstream as they are, readable straight from the provider. | |||
flag | No | Accept that the profile's buckets keep (and bill for) old versions. | |||
-j | flag | No | Output in JSON format. |
vh s3-gateway upstream update
vh s3-gateway upstream update <profile> [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
--strategy | strategy | Sync strategy of the vaults: cache, sync or mirror. | ||
--conflict | policy | Conflict policy: keep_local, keep_remote, keep_newest or ask. | ||
prefix | Prefix of the upstream bucket's name (the upstream bucket is <prefix>); empty for none. | |||
text | Profile description. | |||
off or <N>d or indefinite | What every bucket created through the profile keeps on the provider: off (the default: only the latest version), <N>d (old versions for N days) or indefinite. Anything but off is Backblaze B2 only; new buckets only. | |||
api-key | Another upstream API key name or ID (new buckets only). | |||
flag | Encrypt objects before they are uploaded (the default). | |||
flag | Store objects upstream as they are, readable straight from the provider. | |||
flag | Accept that the profile's buckets keep (and bill for) old versions. | |||
-j | flag | Output in JSON format. |
vh s3-gateway upstream delete
vh s3-gateway upstream delete <profile>vh s3-gateway budget
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<access_key_or_name> | write | Set the admin-managed monthly price budget of one gateway credential. | ||
<access_key_or_name> | write | Set the monthly price budget of one gateway credential on one vault. | ||
ls | read | List gateway price budget policies, for every credential you may see or for one (--key). | ||
<access_key_or_name> | write | Disable a credential's per-key price budget policy. | ||
<access_key_or_name> | write | Disable a credential's price budget policy on one vault. | ||
| read | List recent gateway budget ledger rows: what requests were charged to which policy. | |||
| read | Show gateway budget policies with their usage and ledger state. |
vh s3-gateway budget set-key
vh s3-gateway budget set-key <access_key_or_name> --monthly <amount> [--mode <mode>] [--currency <currency>] [--no-require-verified-catalog] [--allow-stale-catalog]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
amount | Yes | Monthly cost cap. | |||
mode | No | Budget mode: report, warn, or enforce. | |||
currency | No | Currency code. | |||
flag | No | Allow unverified provider pricing catalogs. | |||
flag | No | Allow stale provider pricing catalogs. |
vh s3-gateway budget set-key-vault
vh s3-gateway budget set-key-vault <access_key_or_name> --vault <vault> --monthly <amount> [--mode <mode>] [--currency <currency>] [--no-require-verified-catalog] [--allow-stale-catalog]| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name. | |||
amount | Yes | Monthly cost cap. | |||
mode | No | Budget mode: report, warn, or enforce. | |||
currency | No | Currency code. | |||
flag | No | Allow unverified provider pricing catalogs. | |||
flag | No | Allow stale provider pricing catalogs. |
vh s3-gateway budget list
vh s3-gateway budget disable-key
vh s3-gateway budget disable-key <access_key_or_name>vh s3-gateway budget disable-key-vault
vh s3-gateway budget disable-key-vault <access_key_or_name> --vault <vault>| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
vault | Yes | Vault ID or name. |
