Commit Graph

8 Commits

Author SHA1 Message Date
Catherine 8c29ba3fe7 Implement -audit-server.
To use this function, configure git-pages with e.g.:

    [audit]
    collect = true
    notify-url = "http://localhost:3004/"

and run an audit server with e.g.:

    git-pages -audit-server tcp/:3004 python $(pwd)/process.py

The provided command line is executed after appending two arguments
(audit record ID and event type), and runs in a temporary directory
with the audit record extracted into it. The following files will
be present in this directory:
  * `$1-event.json` (always)
  * `$1-manifest.json` (if type is `CommitManifest`)
  * `$1-archive.tar` (if type is `CommitManifest`)

The script must complete successfully for the event processing to
finish. The notification will keep being re-sent (by the worker) with
exponential backoff until it does.
2025-12-05 03:19:32 +00:00
Catherine d1be93919f Make installable with go install. 2025-10-22 05:24:55 +00:00
Catherine d81676fea0 Miscellaneous minor configuration related fixes. 2025-09-22 01:31:41 +00:00
Catherine 8c964b1afd Ignore config.toml*. 2025-09-19 00:08:55 +00:00
bin 6f932df886 Initial Nix flake 2025-09-18 19:14:47 +00:00
Catherine 11145f407e Add a configuration file. 2025-09-15 06:06:52 +00:00
Catherine b9a26e528f Put sources under src/. 2025-09-15 04:51:51 +00:00
Catherine 53b6727af4 Initial commit. 2025-09-05 02:46:45 +00:00