Kafka Compliance: Audit Trail
The Audit Trail page, headed Audit Trail & Activity in AxonOps, reports administrative and access-control activity on a Kafka cluster, the configuration changes made outside AxonOps, and the governance gaps that indicate weak change control. The activity records are audit evidence, and the page reports unauthorised changes.
The page is divided into two groups:
- Activity counts events in the selected time range: changes made outside AxonOps, ACL change events, and the admin operations log.
- Access Control Gaps reports the cluster’s current state, independent of the time range: topics without a schema, topics without ACLs, empty consumer groups, and segregation-of-duties violations.
Two sources feed the Activity group. The ACL change events and admin operations log derive from the AxonOps audit log, which records actions taken through AxonOps itself. Changes made outside AxonOps derives from the configuration drift detector, which reads the cluster’s own configuration and reports changes that no AxonOps API call accounts for. The Access Control Gaps draw on other sources: the segregation-of-duties finding and topic ACL coverage derive from the cluster’s ACLs, and the schema and consumer-group gaps from the Schema Registry and the cluster’s consumer group list. All aggregation runs on the AxonOps server.
The two records of change answer different questions, and neither substitutes for the other. An empty audit log establishes that no change was made through AxonOps. The audit log cannot show whether the cluster was changed by another route such as kafka-acls.sh, the Kafka Admin API, or direct console access; the drift detector can, where it is enabled and reachable, subject to the conditions below and to the coverage limits of interval-based comparison. Because the drift detector compares configuration, it reports configuration changes; an out-of-band action that alters no configuration is outside its scope.
Each panel is a tile showing a count. Selecting a tile that has findings opens a dialog listing them, and entries in that list drill through to their subject. Selecting an ACL change or administrative operation opens Logs & Events filtered to the AxonOps audit log around the time of that entry; selecting a change made outside AxonOps opens Settings, Config Drift Detection, where that change can be located and opened to show its before-and-after difference; selecting a topic or consumer group name opens that object’s page. See Navigating from a signal to its data.
Changes made outside AxonOps
Section titled “Changes made outside AxonOps”The configuration changes the drift detector recorded over the selected time range that it could not attribute to an AxonOps API call. The list shows, for each change, the Date, the Resource type affected, and a Change summary of what changed. Selecting an entry opens Config Drift Detection, from which that change can be opened to show its before-and-after difference. That page keeps its own time range and result limit, so a change may need those adjusted before it appears there. This panel leads the page because an unattributed change is the finding an auditor acts on first. The panel re-reads the drift history every 60 seconds and whenever the time range changes.
AxonOps reports any non-zero count as a finding rather than an informational figure, and tints the tile accordingly: each entry is a change made straight against the cluster, bypassing the controls and the audit record that an AxonOps-mediated change would have produced. A zero count states that every configuration change the detector observed in the range was made through AxonOps, within the coverage the detector provides. The headline figure on the Compliance Overview Changes Outside AxonOps tile is this count.
The detector compares configuration at intervals rather than following a continuous log, so a change reverted within one interval, a reading that could not be taken, and configuration predating a resource type’s baseline all leave no entry. Audit coverage and limitations states the full set; a zero count should be read against it before it is treated as evidence.
That reading holds only for the resource types drift detection covers. Detection is enabled per resource type, covering six types: topics, ACLs, connectors, schemas, cluster (broker) configuration, and client quotas; see Config Drift Detection. A cluster with some types enabled and others disabled reports a count for the enabled ones alone; changes to a disabled type contribute nothing and are not distinguished from full coverage, because the panel reports drift detection as off only when every type is disabled.
Before relying on a zero
Section titled “Before relying on a zero”A zero count is evidence only when every type that should be covered is covered. Before citing it, confirm the following:
- On the Configuration tab of Config Drift Detection, the organisation Enabled switch and all six resource type toggles (Topics, ACLs, Connectors, Schemas, Cluster, Quotas) are on.
- Each type’s prerequisite is met: an authorizer for ACLs, the Schema Registry feature for schemas, a configured Kafka Connect cluster for connectors, and Apache Kafka 2.6 or later on every broker for quotas (see Availability).
- The Changes tab holds a
Snapshotentry for each resource type, which shows that the type has been read at least once. A resource type with no items on the cluster, such as no ACLs or no quotas, records noSnapshot, and the first item created in it outside AxonOps is absorbed into a new baseline rather than reported; see Coverage and limitations.
A type whose toggle is on but whose prerequisite is unmet records nothing, and the panel does not distinguish it from a type with no changes.
Result limit
Section titled “Result limit”AxonOps fetches at most 200 changes made outside AxonOps for a range. Where the cap is reached, the count is shown with a trailing + and the list states that only the most recent changes in the range were returned; narrowing the time range yields an exact count.
When no count is reported
Section titled “When no count is reported”Three conditions prevent the panel from reporting a count. In each, the tile shows a dash in place of a figure and names the condition; the dialog gives the detail:
| Condition | Reported as |
|---|---|
| The signed-in user is not an administrator | Admin access required. “Configuration drift history is restricted to admin users. Ask an administrator to review it for you.” |
| Drift detection is not configured on the AxonOps server, the organisation Enabled switch is off, or every resource type on the cluster is disabled | Drift detection is off. “Changes made outside AxonOps are not being recorded for this cluster.”, with an Enable drift detection link to Config Drift Detection |
| The drift history could not be read | Drift data unavailable, with the reason reported by the server |
ACL change events
Section titled “ACL change events”A record of ACL create and delete operations made through AxonOps. Each entry shows the Time, the Action, the acting AxonOps User, and the Summary text the audit log recorded for the operation. The affected principal is not extracted into a column of its own; where the audit summary names it, it appears there. The record establishes when access was granted or revoked through AxonOps and by whom.
Admin operations log
Section titled “Admin operations log”A record of every administrative operation made through AxonOps against the cluster, with the same Time, Action, User, and Summary columns as ACL change events. ACL operations appear here as well. The log supports change management and post-incident review.
Both audit panels are computed from the most recent audit events in the range, not from every event. The AxonOps server reads at most 200 audit events per request by default, and both counts and both lists are taken from those events. On a self-hosted deployment the limit is set by the max_results_events_query setting in the database section of the axon-server configuration, or the DATABASE_MAX_RESULT_EVENTS_PER_QUERY environment variable; raising it increases the cost of each query on the AxonOps server. On AxonOps Cloud the limit is managed by AxonOps. On a cluster with more audit activity in the range than the cap, both counts are lower bounds, and the panels do not indicate that the result was truncated. Narrowing the time range until the admin operations count falls below the cap gives exact figures.
Topics without schema
Section titled “Topics without schema”The topics that have no corresponding subject in the Schema Registry. A subject is the name a schema is registered under, and the check follows the topic-name convention, in which a topic’s schemas are registered as <topic>-key and <topic>-value; a topic is listed when neither subject exists. Internal topics are excluded. The tile shows the count against the total, for example 3 / 40 topics. A topic without a registered schema has no enforced message contract, which is a data-governance gap for regulated or shared data.
The Schema Registry is an optional component. Where AxonOps cannot reach a registry for the cluster, most often because none is configured, the tile shows a dash in place of a count, with the notice “No Schema Registry reachable for this cluster, so schema coverage cannot be checked.” rather than a count.
A cluster using a non-default subject naming strategy, such as RecordNameStrategy or TopicRecordNameStrategy for topics carrying multiple event types, registers schemas under names this convention does not match. Topics governed that way appear here despite having a schema.
Topics without ACLs
Section titled “Topics without ACLs”The topics that no topic ACL entry covers. A topic is covered by a literal ACL on its name, a prefixed ACL whose prefix it starts with, or a wildcard (*) topic ACL; ALLOW and DENY entries both count as coverage. Internal topics are excluded. The tile shows the count against the total, for example 5 / 40 topics.
The behaviour of an uncovered topic is governed by the authorizer’s allow.everyone.if.no.acl.found setting (default false in Apache Kafka 3.x and 4.x): when false, a topic without any ACL is unreachable to every principal except those listed in the broker’s super.users, which bypass ACL checks; when true, it is unrestricted. Either case warrants review against the intended access policy.
Where the cluster has no topic ACLs at all, the tile shows a dash in place of a count, with the notice “No topic ACLs are defined. Review the cluster’s authoriser configuration.” rather than listing every topic. This covers a cluster with no authorizer configured (authorizer.class.name unset), where allow.everyone.if.no.acl.found does not apply because there is no enforcement for it to govern, and a cluster that has an authorizer but no topic ACLs. The same notice appears when AxonOps could not read the cluster’s ACLs.
Empty consumer groups
Section titled “Empty consumer groups”The consumer groups in the Empty or Dead state, which have no active members. A consumer group is the set of consumers that share a group ID and divide a topic’s partitions between them; the broker keeps the group’s committed offsets after its members leave. The tile shows the count against the total, for example 2 / 18 groups; a cluster with no consumer groups shows 0 with the note “No consumer groups on this cluster.”, and so does a cluster whose consumer group list AxonOps could not read. Empty groups are informational and commonly indicate retired applications whose group state has not been removed. Kafka deletes an Empty group once its committed offsets expire, after offsets.retention.minutes (7 days by default since Apache Kafka 2.0), so a group can leave the list without any action. Dead is a transient state that a group passes through while it is removed.
Segregation-of-duties violations
Section titled “Segregation-of-duties violations”The principals that hold a combination of capabilities that should be separated. AxonOps derives three capabilities from each principal’s ALLOW ACLs: write, administrative, and ACL editing. A principal is reported when it holds write and administrative capabilities together (“writer + admin”), or administrative and ACL-editing capabilities together (“admin + ACL edit”); it need not hold all three. The list shows each principal with its capabilities and its conflicts.
The capabilities are derived as follows. Write is a WRITE grant on a topic or transactional ID. Administrative is a CREATE, DELETE, ALTER, or ALTER_CONFIGS grant on a topic, a CREATE or CLUSTER_ACTION grant on the cluster, or a DELETE grant on a group. AxonOps treats an ALTER or ALTER_CONFIGS grant on the cluster as ACL editing, which also counts as administrative, so either grant alone reports “admin + ACL edit”. In Kafka, creating or deleting ACLs requires ALTER on the cluster; ALTER_CONFIGS on the cluster governs broker configuration and does not permit ACL changes, so a principal holding only ALTER_CONFIGS on the cluster is reported as able to edit ACLs although it cannot. An ALL grant on a topic counts as write and administrative, and an ALL grant on the cluster as administrative and ACL editing, so each is reported as a conflict on its own. DENY entries are not taken into account, so a principal is reported on its ALLOW grants even where a DENY entry removes one of the capabilities.
Principals are evaluated by their exact name. Grants to the wildcard principal User:* are evaluated as a principal of their own; they are not added to the named principals they also apply to, so a conflict that arises only from combining a User:* grant with a named principal’s grant is not reported. Principals listed in the broker’s super.users hold every capability without needing ACLs and are never reported, because the finding is derived from ACLs alone. A principal that can both act on data and alter the controls over it defeats independent review. The headline figure on the Compliance Overview Segregation of Duties Violations tile is the count of such principals.
Because the finding is derived from the cluster’s ACLs, it is meaningful only where an authorizer is configured and its ACLs can be read. A cluster with no authorizer has no ACLs and so reports zero, which here is the inverse of a clean result: with no enforcement in place, every principal already holds unrestricted authority. A failure to read the ACLs also reports zero. A zero is therefore not a clean result on its own: it should be read together with the authorizer configuration, the super.users list, and any User:* grants.
Underlying mechanisms
Section titled “Underlying mechanisms”The ACL model behind these records is documented in the Kafka Authorization reference, and ACL management within AxonOps in Topic Access Control List (ACL).
Standards alignment
Section titled “Standards alignment”The signals on this page support the following ISO/IEC 27002:2022 controls: 5.3 Segregation of duties, 5.28 Collection of evidence, 8.15 Logging, 8.16 Monitoring activities, and 8.32 Change management.