Skip to content
Vaulthalla LogoVaulthalla

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

vh upstream
CommandArgumentsAliasesEffectSummary
Provider administration on an upstream API key.
<api_key>inventory, bucket-listreadList the account's buckets with what Vaulthalla knows about them (managed, adopted, unmanaged, protected).
<api_key> <bucket>lockwriteLock a bucket: Vaulthalla will never probe, adopt, bind, configure, sync, empty or delete it.
<api_key> <bucket>unlockdestructiveRemove a bucket lock (admin.upstream.unprotect).
<api_key> <bucket>describereadShow a bucket's region, versioning, object lock, lifecycle and event rules (Vaulthalla's and other applications').
<api_key> <bucket>destructiveSet or clear Vaulthalla's lifecycle rule on a managed or adopted bucket; other rules are kept.
<api_key> <bucket>admissionreadRead-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>writeGive a managed or adopted bucket that no vault uses back: Vaulthalla removes its own rules and stops managing it.
<api_key> <bucket>destructiveDelete a bucket Vaulthalla created and every object version in it.
Event-driven sync of S3 vaults.
readThe upstream control-plane audit log, newest first.

vh upstream admin

vh upstream admin
CommandArgumentsAliasesEffectSummary
<api_key>onwriteTurn on provider administration (AWS S3, Cloudflare R2, Backblaze B2) for an upstream API key.
<api_key>offwriteTurn provider administration off (refused while an event subscription runs through the key).
<api_key>info, showreadShow 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.

vh upstream admin enable
OptionAliasesTypeDefaultSummary
flagCloudflare R2: ask for the account API token (Queues Edit + Workers R2 Storage Edit) at a hidden prompt and store it sealed.
flagRemove the stored Cloudflare API token.

vh upstream admin disable

vh upstream admin disable <api_key>

vh upstream admin status

vh upstream admin status <api_key> [--probe] [--json]

--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 admin status
OptionAliasesTypeDefaultSummary
flagCheck the credential against the provider again.
-jflagOutput in JSON format.

vh upstream buckets

vh upstream buckets <api_key> [--state managed|adopted|unmanaged|protected] [--filter <text>] [--limit <n>] [--page-token <token>] [--json]
vh upstream buckets
OptionAliasesTypeDefaultSummary
managed or adopted or unmanaged or protectedOnly buckets in this state.
textOnly bucket names containing this text.
n1000At most this many buckets.
tokenContinue a listing.
-jflagOutput in JSON format.

vh upstream protect

vh upstream protect <api_key> <bucket> --reason <text>
vh upstream protect
OptionAliasesTypeDefaultRequiredSummary
textYesWhy the bucket is protected (shown to everyone who sees it).

vh upstream unprotect

vh upstream unprotect <api_key> <bucket> [--yes]
vh upstream unprotect
OptionAliasesTypeDefaultSummary
flagDon't ask: confirm the action (for scripts).

vh upstream inspect

vh upstream inspect <api_key> <bucket> [--json]
vh upstream inspect
OptionAliasesTypeDefaultSummary
-jflagOutput in JSON format.

vh upstream lifecycle

vh upstream lifecycle <api_key> <bucket> [options]
vh upstream lifecycle
OptionAliasesTypeDefaultSummary
nAbort incomplete multipart uploads after N days.
nDelete current objects N days after creation (destructive).
nAWS: delete old object versions after N days (destructive).
prefixApply the rule to keys with this prefix only.
flagRemove Vaulthalla's lifecycle rule.
flagDon't ask: confirm the action (for scripts).
-jflagOutput in JSON format.

vh upstream adopt-check

vh upstream adopt-check <api_key> <bucket> [--max-objects <n>] [--sample <n>] [--json]
vh upstream adopt-check
OptionAliasesTypeDefaultSummary
n10000List at most N keys.
n16Read metadata of at most N sample objects.
-jflagOutput 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]
vh upstream cleanup
OptionAliasesTypeDefaultSummary
tokenRun the cleanup a preflight planned.
flagDelete the objects but keep the (empty) bucket.
flagOnly print the preflight.
-jflagOutput in JSON format.

vh upstream events

vh upstream events
CommandArgumentsAliasesEffectSummary
<vault>onwriteSubscribe an S3 vault's bucket for event-driven sync (AWS S3 → SQS, Cloudflare R2 → Queues).
<vault>offwriteRemove the vault's event subscription (Vaulthalla's rule, and the queue when unused).
<vault>writeRe-create whatever is missing for the vault's subscription and re-arm it.
<vault>inforeadEvent 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]
vh upstream events enable
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
prefixOnly keys with this prefix.
import or ignoreimportObjects other tools uploaded (no Vaulthalla metadata): import or ignore.

vh upstream events disable

vh upstream events disable <vault> [--owner id|name]
vh upstream events disable
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).

vh upstream events repair

vh upstream events repair <vault> [--owner id|name]
vh upstream events repair
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).

vh upstream events status

vh upstream events status <vault> [--owner id|name] [--json]
vh upstream events status
OptionAliasesTypeDefaultSummary
-oid or nameUser ID or username of the vault owner (required if using a name).
-jflagOutput in JSON format.

vh upstream audit

vh upstream audit [--bucket <name>] [--limit <n>] [--json]
vh upstream audit
OptionAliasesTypeDefaultSummary
nameOnly entries for this bucket.
n100At most N entries.
-jflagOutput in JSON format.