How Versions Work
Versions are numbered per secret, starting atv1. A new version is created whenever the value, type, scope, or key name changes, or when the secret is deleted or rolled back. Saving a secret without changes does not create a version.
Each history entry records who made the change and when. The current value shows who last set it.
Secrets that existed before history was enabled start at
v1 and gain history with their next
change.Viewing History
CLI
WHEN and BY describe the change that replaced that version. For current, they describe who set the live value.
Values are masked by default. Pass --reveal to decrypt them locally. Relic asks for confirmation before printing plaintext to your terminal:
--json for scripting. Values are only included when --reveal is also set:
TUI
Select a secret and presst to open its history. Use j/k to move between versions. Values stay masked unless secrets are shown (v), which requires your master password.
Rolling Back
Rolling back makes a previous version the current value. The value it replaces is recorded as a newrestored entry, so a rollback can itself be undone.
CLI
--yes to skip the prompt.
To restore a deleted secret, look up its versions and roll back to one of them:
TUI
In the history view, select a version and pressr (or enter), then y to confirm. Restored values appear in the list right away.
Deleted secrets are not listed in the TUI. Use
relic rollback to restore them.secret.restored in the audit log.
Retention
Relic keeps the most recent previous versions of each secret and prunes older ones automatically when new versions are recorded. The limit depends on the project owner’s plan:
The current value doesn’t count toward the limit.
relic history shows the active limit.
Deleting an environment or folder permanently deletes the history of the secrets inside it. Deleting your account deletes the history of your projects.
Access
History has the same access rules as the secret itself:- Owners can view history and roll back.
- Active collaborators can view history. Shared projects are read-only, so only the owner can roll back.
- Revoked collaborators lose access immediately.
- Restricted or archived projects block history and rollback, just like their secrets.
- Service accounts and API keys can’t access history. History requires a signed-in user.