This commit adds a description of the
audit-backend of type `git-audit`. That
means, it describes its configuration and
features in the changelog and in
`README.md`.
It also adds a short description of the
associated reporting tool, i.e, of
`dump-things-report-gitaudit`.
This commit adds `audit_backends` to configuration
specifications. It also adds audit trails for every
record that is stored via the curator-interface.
For each record that is stored via the curator interface,
an audit entry is added to every audit-backend. The
audit entry contains:
1. timestamp when the record was added to the audit trail
2. the id of the token that was used to store the record
3. the changes that were made to the record (git diff format)
4. the content of the new record
The audit trail for a given PID can be printed by
using the command:
dump-things-report-gitaudit <git-audit-dir> <PID>
Due to the empty worktree, `git status` reports
even unchanged files as deleted. This lead to
unnecessary audit-commits. This commit fixes
the behavior.
This commit adds a method that reports all
changes that were applied to a record with
a specific ID.
The report is a dictionaries. The keys are
ISO timestamps, the values are tuples containing
the following entries:
0: the user id that did the change
2: the git diff of the change
3: the content of the record after the change