Skip to main content

Audit

Introduction

This interceptor support to log information from api key request. User need to inject this interceptor and implement ApiKeyAuditLog interface for their audit.

The current list of Kafka API requests that this interceptor supports for audit is:

  • ProduceRequest (PRODUCE)
  • FetchRequest (FETCH)
  • CreateTopicRequest (CREATE_TOPICS)
  • DeleteTopicRequest (DELETE_TOPICS)
  • AlterConfigRequest (ALTER_CONFIGS)

Configuration

nametypedefaultdescription
topicString.*Topics that match this regex will have the interceptor applied
apiKeysSet[string]Set of kafka api keys to be audited
vclusterString.*vcluster that match this regex will have the interceptor applied
usernameString.*username that match this regex will have the interceptor applied
consumerGroupIdString.*consumerGroupId that match this regex will have the interceptor applied
topicPartitionsSet[Integer]Set of topic partitions to be audited

Example

{
"name": "myAuditInterceptorPlugin",
"pluginClass": "io.conduktor.gateway.interceptor.AuditPlugin",
"priority": 100,
"config": {
"topic": ".*",
"apiKeys": [
"PRODUCE",
"FETCH"
],
"vcluster": ".*",
"username": ".*",
"consumerGroupId": ".*",
"topicPartitions": [
1,
2
]
}
}