Watch
1
0
Fork
You've already forked jeap-audit
0
mirror of https://github.com/jeap-admin-ch/jeap-audit.git synced 2026-08-17 12:54:56 +00:00
Read-only mirror of https://github.com/jeap-admin-ch/jeap-audit — Bundesamt für Informatik und Telekommunikation. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/gfccq7 https://www.opensource.admin.ch/en/softwares/gfccq7
  • Java 99.8%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-13 09:44:40 +02:00
.mvn/wrapper JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
docs JEAP-7087: update documentation 2026-07-02 13:17:00 +02:00
jeap-audit-command-builder Version 10.11.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:58:52 +02:00
jeap-audit-command-builder-nojeapsecurity-test Version 10.11.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:58:52 +02:00
jeap-audit-command-consumer Version 10.11.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:58:52 +02:00
jeap-spring-boot-audit-starter-transactional-outbox Version 10.11.0: Update parent from 8.9.1 to 8.10.0 2026-08-13 07:58:52 +02:00
.gitignore JEAP-6289: init jEAP Audit Trail Starter 2025-11-06 17:32:41 +01:00
AGENTS.md JEAP-7087: update documentation 2026-07-02 13:17:00 +02:00
CHANGELOG.md Version 10.11.0: update jeap-messaging-outbox from 17.11.0 to 17.12.0 2026-08-13 09:44:40 +02:00
CONTRIBUTING.md JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
LICENSE JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
mvnw JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
pom.xml Version 10.11.0: update jeap-messaging-outbox from 17.11.0 to 17.12.0 2026-08-13 09:44:40 +02:00
publiccode.yml Update version/date in publiccode.yml 2026-08-13 08:01:48 +02:00
README.md JEAP-7087: update documentation 2026-07-02 13:17:00 +02:00
SECURITY.md JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
setPomVersions.sh JEAP-6289: jEAP Audit 2025-11-13 13:03:17 +01:00
THIRD-PARTY-LICENSES.md Updating THIRD-PARTY-LICENSES.md 2026-08-13 08:00:20 +02:00

jEAP Audit

jEAP Audit is a library for the standardized creation and delivery of audit records in Spring Boot services built on the jEAP framework. Distributed government systems need comprehensive audit trails for compliance, security and operational transparency, and jEAP Audit provides the building blocks to produce them consistently across microservices. It offers:

  • A fluent builder (CreateAuditRecordCommandBuilder) for the Avro CreateAuditRecordCommand
  • A Spring-managed factory (CreateAuditRecordCommandBuilderFactory) that fills the trigger from the jEAP security token (user) or from a consumed message (system)
  • Reliable, at-least-once delivery of audit commands through the jeap-messaging-outbox transactional outbox
  • Consumer support that converts a received CreateAuditRecordCommand into a plain Java AuditRecord model for downstream processing and centralized audit-log aggregation

The audit command is an Avro message type (create-audit-record-command) sent over Kafka. jEAP Audit builds on jeap-messaging for serialization, contracts and delivery.

Documentation

Start with Getting started, then follow the links below.

Topic File
Getting started (add a dependency, build & send a command) docs/getting-started.md
Architecture & audit-record model docs/architecture.md
Building the command (CreateAuditRecordCommandBuilder) docs/building-the-command.md
Sending via transactional outbox docs/transactional-outbox.md
Consuming audit commands docs/consuming-audit-commands.md
Configuration reference (jeap.audit.*) docs/configuration.md

Modules

Group id for all modules is ch.admin.bit.jeap; the version is managed by the jEAP Spring Boot parent. A consuming service depends on the module(s) matching its use case.

Module Purpose
jeap-audit-command-builder Fluent CreateAuditRecordCommandBuilder and Spring CreateAuditRecordCommandBuilderFactory
jeap-spring-boot-audit-starter-transactional-outbox Spring Boot starter registering CreateAuditRecordCommandTransactionOutboxSender to send via the outbox
jeap-audit-command-consumer AuditRecordFactory converting a CreateAuditRecordCommand into the plain AuditRecord model
jeap-audit-command-builder-nojeapsecurity-test Internal test module verifying the builder works without jEAP security on the classpath

Changes

This library is versioned using Semantic Versioning and all changes are documented in CHANGELOG.md following the format defined in Keep a Changelog.

Note

This repository is part the open source distribution of jEAP. See github.com/jeap-admin-ch/jeap for more information.

License

This repository is Open Source Software licensed under the Apache License 2.0.