Skip to content
Vaulthalla LogoVaulthalla

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

vh s3-gateway
CommandArgumentsAliasesEffectSummary
readShow S3 gateway runtime status.
writeEnable the S3 gateway in config and restart its runtime service.
writeDisable the S3 gateway in config and restart its runtime service.
credentials, credentialManage inbound S3 gateway credentials.
bucketsManage S3 gateway bucket bindings.
upstream-profile, upstream-profilesManage upstream profiles: what a CreateBucket through the gateway creates.
budgetsManage S3 gateway per-key and per-key/vault price budgets.

vh s3-gateway status

vh s3-gateway status

vh s3-gateway enable

vh s3-gateway enable

vh s3-gateway disable

vh s3-gateway disable

vh s3-gateway creds

vh s3-gateway creds
CommandArgumentsAliasesEffectSummary
<name>new, addwriteCreate 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.
lsreadList the gateway credentials you may see, with their scope and expiry.
<access_key_or_name>delete, rmdestructiveRevoke a gateway credential: requests signed with it are refused from now on.
<access_key_or_name>View or change S3 gateway credential policy.
rolesManage per-vault role assignments and overrides for a credential.

vh s3-gateway creds create

vh s3-gateway creds create <name> [options]
vh s3-gateway creds create
OptionAliasesTypeDefaultSummary
-uuserPrincipal user name or ID.
scopeScope: user-access, global, or vault-allowlist.
vaultVault ID or name allowed by the credential; repeat for multiple vaults.
durationCredential lifetime, such as 30d or 12h.
textCredential description.
--default-vault-role, --roleroleDefault vault role for vault-allowlist credentials.
vaultVault ID or name the default role applies to.
flagAllow List operations for scoped vaults.
flagAllow Read operations for scoped vaults.
flagAllow Write operations for scoped vaults.
flagAllow Delete operations for scoped vaults.
flagAllow bucket admin operations for scoped vaults.
flagCount local/cache hits against gateway key budgets.
-jflagOutput in JSON format.

vh s3-gateway creds list

vh s3-gateway creds list [--user <user>] [--json]
vh s3-gateway creds list
OptionAliasesTypeDefaultSummary
-uuserFilter by user name or ID.
-jflagOutput in JSON format.

vh s3-gateway creds revoke

vh s3-gateway creds revoke <access_key_or_name> [--user <user>]
vh s3-gateway creds revoke
OptionAliasesTypeDefaultSummary
-uuserUser 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).

vh s3-gateway creds scope
CommandArgumentsAliasesEffectSummary
readShow a credential's final policy: its scope, principal, vaults, default role and upstream profile.
writeChange 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>writeCompatibility shorthand: add one vault to a credential's allowlist with boolean operation flags, still subject to the principal's permissions.
<vault>destructiveRemove one vault from a credential's allowlist.

vh s3-gateway creds scope show

vh s3-gateway creds scope <access_key_or_name> show [--json]
vh s3-gateway creds scope show
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh s3-gateway creds scope set

vh s3-gateway creds scope <access_key_or_name> set [options]
vh s3-gateway creds scope set
OptionAliasesTypeDefaultSummary
scopeScope: user-access, global, or vault-allowlist.
-uuserRetarget principal user name or ID.
durationCredential lifetime, such as 30d or 12h.
textCredential description.
--default-vault-role, --roleroleDefault vault role for vault-allowlist credentials.
vaultVault ID or name the default role applies to.
profileWhat this credential's CreateBucket creates: an upstream profile's name, 'server-default' (the server's default profile), or 'local' (a local vault).
choiceWhether a profile's changed sync settings also apply to the buckets this credential created: on, off, or inherit (the server's setting).
profileA 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.
flagCount local/cache hits against gateway key budgets.
flagDo not count local/cache hits against gateway key budgets.

vh s3-gateway creds scope allow-vault

vh s3-gateway creds scope allow-vault <vault> [--list] [--read] [--write] [--delete] [--admin]
vh s3-gateway creds scope allow-vault
OptionAliasesTypeDefaultSummary
flagAllow List operations.
flagAllow Read operations.
flagAllow Write operations.
flagAllow Delete operations.
flagAllow bucket admin operations.

vh s3-gateway creds scope revoke-vault

vh s3-gateway creds scope revoke-vault <vault>

vh s3-gateway creds role

vh s3-gateway creds role
CommandArgumentsAliasesEffectSummary
<credential>lsreadList a credential's per-vault role assignments.
<credential>writeAssign a vault role to the credential on one vault.
<credential>destructiveRemove the credential's role assignment on one vault.
overridesManage path overrides on a credential's per-vault role.

vh s3-gateway creds role list

vh s3-gateway creds role list <credential> [--json]
vh s3-gateway creds role list
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh s3-gateway creds role assign

vh s3-gateway creds role assign <credential> --vault <vault> --role <role> [--json]
vh s3-gateway creds role assign
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.
roleYesVault role name or ID.
-jflagNoOutput in JSON format.

vh s3-gateway creds role revoke

vh s3-gateway creds role revoke <credential> --vault <vault>
vh s3-gateway creds role revoke
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.

vh s3-gateway creds role override

vh s3-gateway creds role override
CommandArgumentsAliasesEffectSummary
<credential>lsreadList path overrides for the credential on one vault.
<credential>writeAdd a path override (allow or deny one permission under a glob).
<credential>rmdestructiveRemove a path override by ID.

vh s3-gateway creds role override list

vh s3-gateway creds role override list <credential> --vault <vault> [--json]
vh s3-gateway creds role override list
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.
-jflagNoOutput in JSON format.

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]
vh s3-gateway creds role override add
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.
--permpermissionYesPermission (qualified name, short name, or ID).
--pathglobYesGlob the override applies to.
effectNoallow or deny.
--allow-effectflagNoAllow (same as --effect allow).
--deny-effectflagNoDeny (same as --effect deny).
-jflagNoOutput in JSON format.

vh s3-gateway creds role override remove

vh s3-gateway creds role override remove <credential> --vault <vault> [--override-id <override_id>]
vh s3-gateway creds role override remove
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.
--idoverride_idNoOverride ID (or pass it as the second positional); --id is an alias.

vh s3-gateway bucket

vh s3-gateway bucket
CommandArgumentsAliasesEffectSummary
lsreadList the gateway's bucket bindings.
<bucket>writeExpose an existing vault through the gateway as a bucket of this name.
<bucket>destructiveRemove a bucket binding.
<bucket>writeCreate a local encrypted vault and bind it as a bucket of this name.
<bucket>writeCreate an API-exclusive cache bucket backed by an upstream S3 or R2 bucket, encrypted before upload unless --no-encrypt.
<bucket>writeFill 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]
vh s3-gateway bucket list
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh s3-gateway bucket bind

vh s3-gateway bucket bind <bucket> --vault <vault> [--owner <user>] [--mode <mode>] [--api-exclusive]
vh s3-gateway bucket bind
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name to expose.
userNoVault owner when --vault is a name.
modeNoBucket mode: local, remote_cache, or remote_proxy.
flagNoMark 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-local <bucket> [--owner <user>] [--quota <size>]
vh s3-gateway bucket create-local
OptionAliasesTypeDefaultSummary
userOwner name or ID.
sizeVault quota size.

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]
vh s3-gateway bucket create-remote-cache
OptionAliasesTypeDefaultRequiredSummary
api-keyYesExisting upstream S3/R2 API key name or ID.
bucketYesUpstream S3/R2 bucket name.
flagNoEncrypt objects before upstream upload.
flagNoDo not encrypt objects before upstream upload.
flagNoAccept the encryption waiver when the upstream bucket already holds data.
flagNoAccept the waiver for storing upstream data unencrypted over existing data.

vh s3-gateway bucket backfill

vh s3-gateway bucket backfill <bucket> [--calculate-etags]
vh s3-gateway bucket backfill
OptionAliasesTypeDefaultSummary
flagRead 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.

vh s3-gateway upstream
CommandArgumentsAliasesEffectSummary
lsreadList the upstream profiles and the server's default profile.
<profile>inforeadShow one upstream profile and the credentials that use it.
<name>new, addwriteCreate 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, editwriteChange an upstream profile.
<profile>remove, rmdestructiveDelete an upstream profile no credential uses.

vh s3-gateway upstream list

vh s3-gateway upstream list [--json]
vh s3-gateway upstream list
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh s3-gateway upstream show

vh s3-gateway upstream show <profile> [--json]
vh s3-gateway upstream show
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh s3-gateway upstream create

vh s3-gateway upstream create <name> --api-key <api-key> [options]
vh s3-gateway upstream create
OptionAliasesTypeDefaultRequiredSummary
api-keyYesUpstream API key name or ID, enabled for provider administration.
--strategystrategyNoSync strategy of the vaults: cache, sync or mirror.
--conflictpolicyNoConflict policy: keep_local, keep_remote, keep_newest or ask.
prefixNoPrefix of the upstream bucket's name (the upstream bucket is <prefix>); empty for none.
textNoProfile description.
off or <N>d or indefiniteNoWhat 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.
flagNoEncrypt objects before they are uploaded (the default).
flagNoStore objects upstream as they are, readable straight from the provider.
flagNoAccept that the profile's buckets keep (and bill for) old versions.
-jflagNoOutput in JSON format.

vh s3-gateway upstream update

vh s3-gateway upstream update <profile> [options]
vh s3-gateway upstream update
OptionAliasesTypeDefaultSummary
--strategystrategySync strategy of the vaults: cache, sync or mirror.
--conflictpolicyConflict policy: keep_local, keep_remote, keep_newest or ask.
prefixPrefix of the upstream bucket's name (the upstream bucket is <prefix>); empty for none.
textProfile description.
off or <N>d or indefiniteWhat 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-keyAnother upstream API key name or ID (new buckets only).
flagEncrypt objects before they are uploaded (the default).
flagStore objects upstream as they are, readable straight from the provider.
flagAccept that the profile's buckets keep (and bill for) old versions.
-jflagOutput in JSON format.

vh s3-gateway upstream delete

vh s3-gateway upstream delete <profile>

vh s3-gateway budget

vh s3-gateway budget
CommandArgumentsAliasesEffectSummary
<access_key_or_name>writeSet the admin-managed monthly price budget of one gateway credential.
<access_key_or_name>writeSet the monthly price budget of one gateway credential on one vault.
lsreadList gateway price budget policies, for every credential you may see or for one (--key).
<access_key_or_name>writeDisable a credential's per-key price budget policy.
<access_key_or_name>writeDisable a credential's price budget policy on one vault.
readList recent gateway budget ledger rows: what requests were charged to which policy.
readShow 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]
vh s3-gateway budget set-key
OptionAliasesTypeDefaultRequiredSummary
amountYesMonthly cost cap.
modeNoBudget mode: report, warn, or enforce.
currencyNoCurrency code.
flagNoAllow unverified provider pricing catalogs.
flagNoAllow 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]
vh s3-gateway budget set-key-vault
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.
amountYesMonthly cost cap.
modeNoBudget mode: report, warn, or enforce.
currencyNoCurrency code.
flagNoAllow unverified provider pricing catalogs.
flagNoAllow stale provider pricing catalogs.

vh s3-gateway budget list

vh s3-gateway budget list [--key <access-key-or-name>] [--vault <vault>] [--json]
vh s3-gateway budget list
OptionAliasesTypeDefaultSummary
access-key-or-nameAccess key ID or credential name.
vaultVault ID or name.
-jflagOutput in JSON format.

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>
vh s3-gateway budget disable-key-vault
OptionAliasesTypeDefaultRequiredSummary
vaultYesVault ID or name.

vh s3-gateway budget ledger

vh s3-gateway budget ledger [--key <access-key-or-name>] [--vault <vault>] [--limit <N>] [--json]
vh s3-gateway budget ledger
OptionAliasesTypeDefaultSummary
access-key-or-nameAccess key ID or credential name.
vaultVault ID or name.
NMaximum rows.
-jflagOutput in JSON format.

vh s3-gateway budget status

vh s3-gateway budget status [--key <access-key-or-name>] [--vault <vault>] [--limit <N>] [--json]
vh s3-gateway budget status
OptionAliasesTypeDefaultSummary
access-key-or-nameAccess key ID or credential name.
vaultVault ID or name.
NMaximum ledger rows.
-jflagOutput in JSON format.