context.auth.type
|
string
|
The type of authentication used
|
-
condition field in Cluster, Produce, and Consume policies
-
resource_names field in ACL policies
|
context.auth.type == 'anonymous'
|
context.auth.principal.name
|
string
|
The name of the principal for this connection
|
-
condition field in Cluster, Produce, and Consume policies
-
resource_names field in ACL policies
|
context.auth.principal.name == 'user1'
|
context.auth.token.claims v1.1+
|
map<string, any>
|
Only populated for sasl_oauth_bearer authentication. Contains all claims from the JWT token. Claims can be strings, numbers, booleans, arrays, or nested JSON objects.
|
-
condition field in Cluster, Produce, and Consume policies
-
resource_names field in ACL policies
|
'test-claim' in context.auth.token.claims
|
context.topic.name
|
string
|
The name of the topic of the record
|
-
condition field in Produce and Consume policies
|
context.topic.name == 'my-ns.my-topic'
|
record.headers
|
map<string, string>
|
The headers of the record
|
-
condition field in Produce and Consume policies
|
record.headers['skip-record'] == 'true'
|
record.value.content
|
map<string, string>
|
The value of the record. Deep fields can be accessed using json object notation
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.content['sub.other'] == 3
|
record.value.validated
|
boolean
|
Whether record validation succeeded or not
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.validated == true
|
record.value.schema.id v1.2+
|
uint
|
Registry-assigned schema ID. Populated when the record value is validated by a Confluent schema registry.
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.id == 42
|
record.value.schema.version v1.2+
|
uint
|
Registry-assigned schema version, when returned by the registry.
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.version == 3
|
record.value.schema.format v1.2+
|
string
|
"avro" or "json".
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.format == 'avro'
|
record.value.schema.avro.name v1.2+
|
string
|
Avro record name (Avro only).
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.avro.name == 'User'
|
record.value.schema.avro.namespace v1.2+
|
string
|
Avro record namespace (Avro only, when declared on the schema).
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.avro.namespace == 'com.example'
|
record.value.schema.json.title v1.2+
|
string
|
JSON Schema title (JSON only, when declared on the schema).
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.json.title == 'Order'
|
record.value.schema.json.id v1.2+
|
string
|
JSON Schema $id (JSON only, when declared on the schema).
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.value.schema.json.id == 'https://example.com/schemas/order.json'
|
record.key.schema.* v1.2+
|
same as record.value.schema.*
|
Same shape as record.value.schema.*, populated when the record key has schema_validation configured. Sub-fields are absent when not applicable; use has() to test presence.
|
-
condition field in Produce and Consume policies used as children of Schema Validation
|
record.key.schema.format == 'json' && record.key.schema.json.title == 'UserKey'
|