Skip to content
Secrets StoreMarkdown

Group keys

A group's secrets sealed under the group's own key, which opens only on a member's sign-in.

AvailableAPI

A group’s vault is sealed under a key that belongs to the group. Only a member’s sign-in reaches it, and only while they are a member. A realm administrator who isn’t in the group, acting as themselves, can’t read its secrets, and someone who leaves the group loses them from their next request.

  • Who: any member of the group. A realm administrator creates the group and manages its members, with RealmOwner or a privilege of your own that allows changing groups (see Delegated administration).
  • Where: the API. There are no screens yet.
  • First: the store is on, and the group exists with its members.

The group’s key is made the first time a member opens the group’s vault, to read or to write. That same first open publishes the group’s public key, so a grant to the group can be sealed to it: a grant to a group is one copy, opened by whichever member reads it.

Every open runs on the member’s own sign-in, and the realm’s audit trail records which member it was.

There’s nothing to set up. The first member to open the engineering group’s vault makes its key, for example by listing it (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl "https://foobar.cvyuh.com/api/v0/vault/managed/v1/group/engineering/metadata?list=true" \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

An empty vault answers 404 to a listing; the key is made all the same.

  • A member reads and writes every secret in the group’s vault, and gives grants on them.
  • Someone who isn’t a member is refused (403): who owns a group’s vault is no secret, so the store doesn’t pretend the path is missing.
  • A member who is removed is refused from their next request. What they already read stays with them.
AnswerWhenWhat to do
403The caller isn’t a member of the groupA realm administrator adds them to the group
404 on a grant to the groupNo member has opened the group’s vault yet, so it has no key to seal toA member opens the vault once, then grant again
404 on the groupNo group has that idCheck the group id
SymptomCauseFix
A grant to the group answers 404 though the group existsNo member has opened its vault yetA member lists the vault once, as above
A grant from the group’s vault stopped opening for its granteeThe member who last wrote the secret was deletedA member writes the secret again. See Grants

Each member’s read or write is an ACCESS record under that member, and each write is a change record on the secret under that member. The key itself writes no record when it is made. When the group is deleted, the destruction of its key is a DELETED change record. See Secrets audit trail.

  • A realm administrator can’t read a group’s key acting as themselves. They can see that it exists, and it is destroyed when the group is deleted. See Deleting an owner.
  • Removing a member doesn’t change the key. The member never held it, and is refused at their next request. Change any secret they used: removal can’t take back what they already read.
  • No grant to a group until a member opens its vault. Until then the group has no key to seal to.
  • Whoever manages a group’s members decides who shares its vault. Keep that right to people you would trust with the secrets.