Skip to content
Secrets StoreMarkdown

Sharing

Open one secret to a colleague or a team until a time you choose, or hand one version over through a link that works once.

AvailableAPI

Sharing opens one secret at a time, never a whole vault. A grant gives a user or a group lasting access to one secret, ending by itself if you choose. A one-time share hands over one version through a link that works once. Everything else in the vault stays closed, and no one can share a secret they may not view.

CapabilityWhat it gives you
Grantsview or use on one secret, for a user or a group, until a set time (with limits)
Shared with youEvery secret granted to you or your groups, across every vault, in one list
Taking a grant backOne grant, or every grant to a leaver in every vault at once
One-time sharesA link to one version that works once, then expires
You needUse
A colleague reads one secret for a whilea grant with a validTo
A whole team owns the secretsthe group’s own vault: see Vaults
Someone needs a value once, such as a first passworda one-time share
Someone may need your secrets if you can’t actemergency access

A grant and a share are both sealed for whoever receives them. A grant’s copy of the secret is sealed to the grantee’s own key and sealed again at every write; a share is sealed under a key that exists only in its link. See Who can read a secret for every way in.

A secret’s owner can grant it to anyone in the realm, and anyone who may view it can share it with anyone in the realm. The realm sets only how long one-time shares last.

Find everything shared with you (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl https://foobar.cvyuh.com/api/v0/vault/managed/v1/shared \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

A realm sharing policy, checking a secret out for a set time with an approver, and a new version written after use: see What’s next for sharing.