]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commit - state.go
nsscash: store and check hash of deployed files
authorSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2019 06:25:09 +0000 (08:25 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 13 Jun 2019 06:25:09 +0000 (08:25 +0200)
commit6383e468f1d5b281159cd46d800204a1aa718cd2
tree2b1ba1e6edaa6d5e07f74d6de3dd4b3ae0b2ef9c
parentb8abeed6c7bddb9d9770f3be93dc41400354783b
nsscash: store and check hash of deployed files

The goal is to detect manual modifications of the deployed files. As we
store only the last modification in the state file and don't check the
deployed file itself, modifications go unnoticed.

An alternative would be to check the last modification time of the
deployed files. But a hash is safer as possible corruptions to the file
are detected as well.
README
file.go
state.go