What's next for sharing
The sharing capabilities on the way, from a realm sharing policy to checking a secret out with an approver and a new version written after use, and what to use until each one arrives.
PlannedAPI
These sharing capabilities are planned. None of them is available yet; each says what to use today.
Sharing policy
Section titled “Sharing policy”Realm-wide rules for how secrets are shared, beyond how long a one-time share lasts: a switch that turns one-time shares or grants off for the realm, and limits on who may receive them, such as only members of chosen groups. A realm administrator would set them once in Realm settings, and every vault would follow them; a share or grant outside the rules would be refused.
What to use today: the realm sets only the default and longest lifetimes of one-time shares
(shareDefaultTtl, shareMaxTtl). Anyone who may view a secret can grant or share it to anyone in the realm, so give
use rather than view where a secret shouldn’t travel further, and keep shareMaxTtl short.
Check out a secret
Section titled “Check out a secret”A user borrows a secret for a set time, giving a reason. The check-out is approved at once or waits for an approver, and lasts a lease; the user can check it in early, and their access ends when they do or when the lease runs out.
What to use today: a grant with an end time (validTo), given by the secret’s owner. See
Grants.
Rotate after use
Section titled “Rotate after use”After a secret is checked in, its lease runs out, or a grantee reads it, the realm writes a new version for its owner, so a value that was out of the owner’s hands is no longer the live one.
What to use today: the owner writes a new version after use; Check-and-set keeps that write from overwriting one made in between.