autorestic icon indicating copy to clipboard operation
autorestic copied to clipboard

Add option to crash `autorestic` when key is missing instead of generating a new key

Open dotboris opened this issue 7 months ago • 1 comments

Relates to #202

This PR adds the requireKey field to the backend config.

Normally, when autorestic check finds a backend without a key, it will generate a new key and update the config to add this key. This option prevents this behavior. When requireKey: true is set on a backend and no key is found, autorestic will crash instead of generating a key and updating the config.

This should help accidental problems from misconfiguration when managing auotrestic through configuration management tools.

dotboris avatar Jul 03 '24 00:07 dotboris