https://github.com/ossobv/etcdgit
STALE PROJECT - Keep track of etcd history using a Git repository
https://github.com/ossobv/etcdgit
audit-trail etcd history
Last synced: 4 months ago
JSON representation
STALE PROJECT - Keep track of etcd history using a Git repository
- Host: GitHub
- URL: https://github.com/ossobv/etcdgit
- Owner: ossobv
- License: gpl-3.0
- Created: 2019-10-17T09:40:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T10:32:16.000Z (almost 6 years ago)
- Last Synced: 2025-06-05T16:47:13.009Z (4 months ago)
- Topics: audit-trail, etcd, history
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
etcdgit :: Keep track of your etcd history using a Git repository
=================================================================*This is largely untested. See also its DNS and mail counterparts*
`dnsgit`_ *and* `mailgit`_.When you're using *Kubernetes* (k8s), you may want to know what changes
are done by k8s itself, and by the administrative users. *etcdgit* will
do a daily snapshot and commit it. This allows you to scan through the
changes and find causes.**On a daily basis, etcdgit (re)creates a filesystem structure based on
the current etcd contents and commits that state to a local Git
repository.**Any undo operation still has to be performed manually, but at least
you'll know what to undo.*NOTE: We may want to add exclude rules. And we may want to add some
kind of auto-squash to keep the repository size down.*.. _dnsgit: https://github.com/ossobv/dnsgit
.. _mailgit: https://github.com/ossobv/mailgitExample setup
-------------Optional configuration overrides go into ``/etc/default/etcdgit``. See
the top of ``etcdgit``... code-block:: console
# install -T -o755 etcdgit /usr/local/bin/etcdgit
# mkdir /srv/etcdgit
# cd /srv/etcdgit# git init; touch README.rst; git add README.rst; git commit -m Initial
# etcdgit update-all
Run that last one -- ``etcdgit update-all`` -- from a daily cron job.
This will initialize and update the local repository and keep track of
changes.For instance, a change may look like this:
FIXME
License
-------mailgit is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your
option) any later version.