Skip to content
Secrets StoreMarkdown

Sealed vault settings

Whether your users may keep sealed vaults, and how large a sealed vault and a sealed item may grow.

Available, with limitsAPI

Four of the realm’s secrets settings are for sealed vaults. Sealed vaults are on by default. You can turn them off for your realm today, or set how large they may grow, so the rules are in place before your users have a client to use them with.

What’s missing today: no client seals on your users’ devices yet, so these settings have nothing to act on until one ships.

  • Who: a realm administrator, with MODIFY on the realm’s settings, which RealmOwner gives. See Delegated administration.
  • Where: the API. There are no screens yet.
  • First: the store is on. See Realm settings.

The settings sit in the sealed section of the realm’s vaultSettings:

SettingWhat it doesDefaultRange
sealed.enabledWhether your users may keep sealed vaults. Off, every sealed call answers 409, and nothing already sealed is openedtrue
sealed.itemMaxBytesThe largest one sealed item may be, as written1 MiB1 byte to 16 MiB; a request carries at most 2 MiB today
sealed.vaultMaxItemsThe most live item versions one vault holds10001 to 100,000
sealed.vaultMaxBytesThe most one vault’s live item versions hold together100 MiB1 byte to 1 GiB

Sealed item shares will take the realm’s one-time share lifetimes, shareDefaultTtl and shareMaxTtl.

As a realm administrator, once the store is on, change the section, with the rev you read from the settings (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl -X PATCH https://foobar.cvyuh.com/api/v0/am/objects/v1/vaultSettings/vaultSettings \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION" \
-H "Content-Type: application/json" \
-H 'If-Match: "<rev>"' \
-d '{ "sealed": { "enabled": false } }'
AnswerWhenWhat to do
400A field outside the sealed section’s four, or a value out of rangeSend only these fields, under sealed
412The settings changed since you read their revRead again and retry
404The store isn’t on yetTurn it on first

Every default and range is in the table above. A request to the store carries at most 2 MiB, so an itemMaxBytes above that has no effect today.

Each change is an UPDATED or PATCHED change record on vaultSettings, with what changed, before and after. See Change history.

  • They wait for a client. These settings take effect for your users once a client that seals on their devices ships. See What’s next for sealed vaults.
  • Lowering a bound doesn’t remove anything. A vault already past a new bound keeps what it holds; its next write past the bound is refused.