Skip to main content

Module forget

Module forget 

Source
Expand description

unv entry forget: purge the old values of one entry from the vault’s own history.

What is purged, and what is not:

  • the entry’s version_history (its old values), which lives in vault_history;
  • the stored content of every config-history snapshot that recorded the entry as exposed. The snapshot row stays, with its hash and chain link, marked forgotten, so the chain still verifies and the timeline still shows that a file existed (the masked text is kept);
  • a pending rotation value for a finished run of the entry.

The entry’s current value is not touched: forgetting is for values already replaced, and a live credential is rotated or deleted instead. vault_saves and vault_changes hold hashes only, so there is nothing in them to purge. An audit row entry.forget records that it happened and how much was removed, never a value.

Report::unreachable lists what this cannot touch, because it is not in the vault database.

Structs§

Report

Functions§

forget_entry