cupcakearmy / autorestic

Config driven, easy backup cli for restic.
https://autorestic.vercel.app/
Apache License 2.0
1.27k stars 71 forks source link

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

Closed dotboris closed 1 month ago

dotboris commented 3 months ago

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.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autorestic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 0:45am
cupcakearmy commented 1 month ago

thanks for this! nice PR :)