Skip to Content

Troubleshootingturno doctor --security

Backups hold configs with literal secrets

What turno doctor --security means by "<holding> backup<s> in <dir> hold configs with literal secrets (oldest <holdi...", and the fix.

View source

This page is for when turno doctor --security reports the finding below: what it means and how to fix it.

What you see

  !  <holding> backup<s> in <dir> hold configs with literal secrets (oldest <holding>); backups are pruned after 30 days
     fix: turno undo --prune --older-than 1d

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

Why it happens

Every write keeps a copy of the file it changes so turno undo can restore it. Those copies can hold the literal secrets that were in the files. Backups are pruned after 30 days, keeping the newest 10.

Fix

Run:

turno undo --prune --older-than 1d

turno doctor --security --fix does not run it for you, because it needs a decision or an answer from you.

Then run turno doctor --security again to see the row turn into ok.

The check lives in packages/turno/src/cli/security.ts.

On this page