Troubleshooting
What the Credentials Vault's messages and error codes mean, and how to fix the common problems with the vault page, scans that use a handle, the CLI and imports.
Troubleshooting
I cannot find Settings > Credentials Vault
Safeguard switches the page on per workspace. Ask your Safeguard contact or write to hi@safeguard.sh. Until then you can use the vault from the CLI: safeguard vault list, safeguard vault add and the other CLI commands work for every workspace.
Error codes
The vault answers failures with a short code. The app shows its own sentence for each; the CLI shows the code and a reason.
| Code | What it means | What to do |
|---|---|---|
VAULT_NOT_CONFIGURED | The deployment has no encryption key, so the vault refuses to store or read anything. | Contact Safeguard. |
UNAUTHENTICATED | You are not signed in, your session expired, or the request named a different workspace from your sign-in. | Sign in again (safeguard login for the CLI). |
NOT_FOUND | The entry does not exist, was deleted, or is in a store you cannot see. | Check the handle and the store (--scope personal or shared). |
FORBIDDEN | Your sign-in does not allow that action on that store, for example a session that carries no workspace. | Sign in to the right workspace. If the team needs a personal credential, its owner adds it to Shared. |
NAME_REQUIRED | An entry needs a name. | Add one. |
SECRET_REQUIRED | A new entry needs a secret. | Type or pipe the secret. |
BAD_SCOPE | The store must be PERSONAL or SHARED (personal or shared in the CLI). | Fix the scope. |
TOO_MANY_ITEMS | An import batch has more than 500 logins. | Use the CLI, which splits large exports into batches. |
VAULT_ERROR | Something failed on Safeguard's side. Nothing was changed. | Try again, then contact Safeguard. |
A scan says it cannot read the credential
- Check that the entry is in the Shared store and has a handle. Personal entries and entries without a handle cannot be read by a scan.
- Check the reference:
sgvault://<handle>, with nothing before or after it in the field. - Run
safeguard vault test <handle>to read it the way a scan on your machine would. It printsOKor the reason, never the value. - If the entry was deleted and added again, give the new entry the same handle.
"Stored under a key this deployment no longer holds"
The entry was encrypted under a key that has been retired. Edit the entry and type the secret again. The rest of the entry is unchanged.
An import skipped logins
A login whose site and username are already in your Personal store, or that is repeated in the file, is skipped by default. Run the import again with --on-duplicate update to replace the stored passwords. A login with no password, or with neither a site nor a name, is rejected and listed in the result.
Security model
How the Credentials Vault encrypts secrets, how it decides who may read them, what Safeguard staff can and cannot do, and the limits you should know before storing production credentials.
Credentials vault CLI reference
The safeguard vault and safeguard secrets commands, their options, and the /vault panel in the interactive terminal.