vh upstream
Reference for vh upstream - provider administration of AWS S3, Cloudflare R2 and Backblaze B2 accounts, bucket locks, lifecycle, adoption, cleanup and event-driven sync.
An AWS S3, Cloudflare R2 or Backblaze B2 credential (vh api-key) can also administer its account's
buckets once provider administration is enabled on it. See Managed Upstream Buckets for
what each provider supports and the permissions involved, and Event-Driven Sync for events.
1vh upstream admin enable <api-key> [--provider-token | --clear-provider-token]2vh upstream buckets <api-key> [--state managed|adopted|unmanaged|protected] [--filter <text>] [--limit <n>]3vh upstream adopt-check <api-key> <bucket> [--max-objects <n>] [--sample <n>]4vh upstream protect <api-key> <bucket> --reason <text>5vh upstream cleanup <api-key> <bucket> [--preflight] [--confirm-token <token>] [--keep-bucket]6vh upstream events enable|disable|repair <vault>
Creating a vault together with a new bucket, or adopting an existing one, is vh vault create --bucket-mode create
or adopt; see vh vault create.
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
| Provider administration on an upstream API key. | ||||
<api_key> | inventory, bucket-list | read | List the account's buckets with what Vaulthalla knows about them (managed, adopted, unmanaged, protected). | |
<api_key> <bucket> | lock | write | Lock a bucket: Vaulthalla will never probe, adopt, bind, configure, sync, empty or delete it. | |
<api_key> <bucket> | unlock | destructive | Remove a bucket lock (admin.upstream.unprotect). | |
<api_key> <bucket> | describe | read | Show a bucket's region, versioning, object lock, lifecycle and event rules (Vaulthalla's and other applications'). | |
<api_key> <bucket> | destructive | Set or clear Vaulthalla's lifecycle rule on a managed or adopted bucket; other rules are kept. | ||
<api_key> <bucket> | admission | read | Read-only admission check of an existing bucket before adopting it into a vault: object counts, encryption of a sample, versioning, object lock, blockers. | |
<api_key> <bucket> | write | Give a managed or adopted bucket that no vault uses back: Vaulthalla removes its own rules and stops managing it. | ||
<api_key> <bucket> | destructive | Delete a bucket Vaulthalla created and every object version in it. | ||
| Event-driven sync of S3 vaults. | ||||
| read | The upstream control-plane audit log, newest first. |
vh upstream admin
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<api_key> | on | write | Turn on provider administration (AWS S3, Cloudflare R2, Backblaze B2) for an upstream API key. | |
<api_key> | off | write | Turn provider administration off (refused while an event subscription runs through the key). | |
<api_key> | info, show | read | Show administration status and the credential's capabilities. |
vh upstream admin enable
vh upstream admin enable <api_key> [--provider-token] [--clear-provider-token]--provider-token is for Cloudflare R2 only.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Cloudflare R2: ask for the account API token (Queues Edit + Workers R2 Storage Edit) at a hidden prompt and store it sealed. | |||
flag | Remove the stored Cloudflare API token. |
vh upstream admin disable
vh upstream admin disable <api_key>vh upstream admin status
--probe checks what the credential can do without changing anything and marks each capability available or missing.
For a Backblaze B2 key, lifecycle, versioning and the two events capabilities are always missing: B2's
S3-compatible API has no lifecycle or event-notification calls and its buckets are always versioned, so
upstream lifecycle and event-driven sync are refused for B2 with that reason.
vh upstream buckets
vh upstream buckets <api_key> [--state managed|adopted|unmanaged|protected] [--filter <text>] [--limit <n>] [--page-token <token>] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
managed or adopted or unmanaged or protected | Only buckets in this state. | |||
text | Only bucket names containing this text. | |||
n | 1000 | At most this many buckets. | ||
token | Continue a listing. | |||
-j | flag | Output in JSON format. |
vh upstream protect
vh upstream protect <api_key> <bucket> --reason <text>| Option | Aliases | Type | Default | Required | Summary |
|---|---|---|---|---|---|
text | Yes | Why the bucket is protected (shown to everyone who sees it). |
vh upstream unprotect
vh upstream unprotect <api_key> <bucket> [--yes]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
flag | Don't ask: confirm the action (for scripts). |
vh upstream inspect
vh upstream inspect <api_key> <bucket> [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-j | flag | Output in JSON format. |
vh upstream lifecycle
vh upstream lifecycle <api_key> <bucket> [options]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
n | Abort incomplete multipart uploads after N days. | |||
n | Delete current objects N days after creation (destructive). | |||
n | AWS: delete old object versions after N days (destructive). | |||
prefix | Apply the rule to keys with this prefix only. | |||
flag | Remove Vaulthalla's lifecycle rule. | |||
flag | Don't ask: confirm the action (for scripts). | |||
-j | flag | Output in JSON format. |
vh upstream adopt-check
vh upstream adopt-check <api_key> <bucket> [--max-objects <n>] [--sample <n>] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
n | 10000 | List at most N keys. | ||
n | 16 | Read metadata of at most N sample objects. | ||
-j | flag | Output in JSON format. |
vh upstream detach
vh upstream detach <api_key> <bucket>vh upstream cleanup
vh upstream cleanup <api_key> <bucket> [--confirm-token <token>] [--keep-bucket] [--preflight] [--json]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
token | Run the cleanup a preflight planned. | |||
flag | Delete the objects but keep the (empty) bucket. | |||
flag | Only print the preflight. | |||
-j | flag | Output in JSON format. |
vh upstream events
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> | on | write | Subscribe an S3 vault's bucket for event-driven sync (AWS S3 → SQS, Cloudflare R2 → Queues). | |
<vault> | off | write | Remove the vault's event subscription (Vaulthalla's rule, and the queue when unused). | |
<vault> | write | Re-create whatever is missing for the vault's subscription and re-arm it. | ||
<vault> | info | read | Event subscription, queue health and inbox counts for one vault, or for every S3 vault you may view when no vault is given. |
vh upstream events enable
vh upstream events enable <vault> [--owner id|name] [--prefix <prefix>] [--foreign-objects import|ignore]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). | ||
prefix | Only keys with this prefix. | |||
import or ignore | import | Objects other tools uploaded (no Vaulthalla metadata): import or ignore. |
vh upstream events disable
vh upstream events disable <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). |
vh upstream events repair
vh upstream events repair <vault> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
-o | id or name | User ID or username of the vault owner (required if using a name). |
