Safeguard Docs
Credentials Vault

Concepts

Personal and shared stores, entry types, handles, vault references, reveal and history, the few ideas the Credentials Vault is built on.

Concepts

Stores

Every entry lives in one of two stores. You choose the store when you add the entry, and it does not change afterwards.

StoreWho can list and reveal itWho can change or delete itCan scans use it?
PersonalOnly you. Nobody else in your workspace can see that the entry exists, and no Safeguard administrator can reveal it.You. When someone leaves, a Safeguard administrator can delete their personal entries but never read them.No
SharedEvery signed-in member of the workspaceEvery member of the workspaceYes, by its handle

A credential that a team needs after one person leaves belongs in Shared. A personal entry cannot be handed over to a colleague, by design.

Entries

An entry has:

  • Name, required.
  • Type: Login, API key, Database, Server, Card, Secure note or Other. The type is a label that helps people find things; it does not change how the secret is stored.
  • Username, Address (a URL), Notes and Tags, all optional and not secret.
  • Secret, the value that is encrypted. It is required when you add an entry. When you edit an entry, leaving the secret blank keeps the stored one.
  • Handle for automated scans, shared entries only. See below.

Handles and vault references

A handle is a stable name for a shared entry, for example staging-login. Scans and the CLI refer to the entry as:

sgvault://staging-login

Add #username or #password to read one field, for example sgvault://staging-login#username. Without a fragment the secret is read.

A handle is better than a database id: if someone deletes the entry and adds it again with the same handle, every scan that uses it keeps working, and ids cannot be guessed from it. A field holds a reference only when the whole value is the reference; anything else is used exactly as typed.

Reveal

The vault never shows a secret in a list. To see one you choose Reveal, which:

  • is refused unless the store allows you to read the entry,
  • writes a record of who asked and when before the value is returned, so an unrecorded reveal cannot happen,
  • shows the value in the page only, never in the address bar or browser storage, and hides it after a minute, when you choose Hide, when you switch store or when you leave the page.

History

Each entry keeps its history: when it was created, changed, revealed, read by a scan, imported and deleted, by whom, and whether the attempt was allowed. Refused attempts are recorded too. History never contains the secret. A personal entry's history is visible only to its owner, because when and where a personal credential was used is itself private.

Deleting

Deleting an entry removes it from the store and from every list. Anything that used it, such as a scan that names its handle, stops working. The entry's history is kept.

On this page