cfg-guard
Guard config edits with flock and a content-hash precondition; observe Linux file changes through inotify and /proc.
What it is
Guard config edits with flock and a content-hash precondition; observe Linux file changes through inotify and /proc. Python standard library; offline selfcheck.
Замок и свидетель для конфигов, которые правят много рук: flock плюс compare-and-swap по хэшу содержимого не дают затереть чужую правку, а inotify и /proc называют того, кто пишет мимо замка. Только stdlib.
Install
pip install cfg-guard
Python. Standard library first: the tool reads the data you point it at and sends nothing anywhere.
Repository
https://gitlab.com/ameobius-ai/cfg-guard — source, issue tracker and documentation.
More projects: ameobius-ai.gitlab.io/tools.