What are Outbound Events?
Outbound Events (Signals) are real-time notifications sent to external systems when changes occur in your IndyKite environment.
Use Outbound Events when you need to:
- Synchronize data with external systems in real-time.
- Trigger workflows when specific data changes occur.
- Audit and log operations performed on your IKG.
- React to authorization or CIQ query executions.
Important: Only one Outbound Events configuration can exist per Project.
How do Outbound Events work?
The event flow consists of three stages:
- Configuration: Define which event types to subscribe to (routes) and where to send them (providers).
- Event Generation: When a matching operation occurs, IndyKite generates a message conforming to the CloudEvents standard.
- Event Publishing: The event is delivered to the configured provider(s).
After events are published, you are responsible for implementing any additional business logic for filtering and processing.
Delivery is at least once, for every route the event matches. A delivery is acknowledged only after the matching providers accepted the event and, in a project with an Audit Signing configuration, after the event was also handed to the tamper-proof chain; a failure in that second step redelivers the event to your providers, so a broker outage on the platform side can duplicate a delivery. Deduplicate on the id of the CloudEvents envelope if your consumer cannot tolerate repeats. When the send to one route fails, the event is sent again later to all the routes it matches, also to those that already received it, so a provider that accepted the event gets it a second time. To avoid these duplicates, prefer stop_processing on each route, so that an event goes to one route only. A switched-off route, or an event the provider rejects, causes no redelivery; see What happens to events while a provider is failed?. The same delivery decides what the tamper-proof chain holds: an event that no route matched, that the provider rejected, or that was produced while the project had no Event Sink, is neither delivered nor chained; the Audit Log guide has the rest.
What providers are supported?
IndyKite supports four event providers:
- Kafka (Confluent Cloud or self-hosted)
- Azure Event Grid
- Azure Service Bus
- Google Cloud Pub/Sub
You can configure multiple providers and route different event types to different destinations.
How do I configure routing?
An Outbound Events configuration has two main components:
- Providers: The destinations where events will be sent (Kafka topic, Azure Event Grid, Azure Service Bus, Google Cloud Pub/Sub).
- Routes: Rules that determine which events go to which providers.
How does route ordering work?
Routes are evaluated sequentially in order. An event can match multiple routes and be sent to multiple destinations.
- If an event matches multiple routes, it is sent to all matching destinations.
- Wildcard routes (e.g.,
indykite.audit.capture.*) catch all matching events. - Place specific routes before wildcard routes to ensure correct processing.
What does the stop_processing flag do?
The stop_processing flag controls whether to continue evaluating routes after a match:
stop_processing = true: Stop after this route matches. Event is not evaluated against further routes.stop_processing = false(default): Continue matching. Event may be sent to multiple destinations.
Prefer stop_processing = true on each route. When the send to one route fails, the event is sent again later to all the routes it matches, also to the routes that already received it; an event that goes to one route only is not duplicated that way.
What event types can I filter?
Capture Events (Data Operations)
| Operation | Event Type | Filters Available |
| BatchUpsertNodes | indykite.audit.capture.upsert.node |
captureLabel, property key/value |
| BatchUpsertRelationships | indykite.audit.capture.upsert.relationship |
captureLabel, property key/value |
| BatchDeleteNodes | indykite.audit.capture.delete.node |
captureLabel, property key/value |
| BatchDeleteRelationships | indykite.audit.capture.delete.relationship |
captureLabel |
| BatchDeleteNodeProperties | indykite.audit.capture.delete.node.property |
— |
| BatchDeleteRelationshipProperties | indykite.audit.capture.delete.relationship.property |
— |
| BatchDeleteNodeTags | indykite.audit.capture.delete.node.tag |
captureLabel |
| BatchDeleteNodePropertyMetadata | indykite.audit.capture.delete.node.property.metadata |
— |
| All Capture Events | indykite.audit.capture.* |
Wildcard matches all |
Configuration Events
| Operation | Event Type |
| Create configuration | indykite.audit.config.create |
| Read configuration | indykite.audit.config.read |
| Update configuration | indykite.audit.config.update |
| Delete configuration | indykite.audit.config.delete |
List configurations (one event per list call, holding the IDs returned; also emitted by GET /access/v1/policies) |
indykite.audit.config.list |
| Assign permission | indykite.audit.config.permission.assign |
| Revoke permission | indykite.audit.config.permission.revoke |
| All Config Events | indykite.audit.config.* |
Each configuration event carries the affected object in its data payload: id, type and containersPath on a create, update or delete (a read carries type and containersPath plus the id it was asked for, or, for a read by name, name with its locationId and locationType; nothing more); the stored object as detail on a create; before and after on an update; before on a delete, the state right before deletion, empty when it could not be read. A list event carries locationId, the optional locationType, containersPath and listed, an array of { "type", "ids" } pairs, one per listed configuration type; a listing that returned nothing has an empty ids. Secrets never appear in these payloads: a credential's state is reduced to its kid, expireTime, keyFormat and originalKid; the key material itself is never in an event.
Authorization and CIQ Events
| Operation | Event Type |
| Token Introspect | indykite.audit.credentials.token.introspected |
AuthZEN Evaluation (POST /access/v1/evaluation) |
indykite.audit.authorization.evaluation |
AuthZEN Evaluations (POST /access/v1/evaluations) |
indykite.audit.authorization.evaluations |
AuthZEN Subject Search (POST /access/v1/search/subject) |
indykite.audit.authorization.searchsubject |
AuthZEN Resource Search (POST /access/v1/search/resource) |
indykite.audit.authorization.searchresource |
AuthZEN Action Search (POST /access/v1/search/action) |
indykite.audit.authorization.searchaction |
| All Authorization Events | indykite.audit.authorization.* |
| CIQ Execute | indykite.audit.ciq.execute |
What are CDC events?
Change Data Capture (CDC) events deliver the actual content of a change alongside the audit event. Instead of just signaling that a node was updated, the sink receives the full before and after state of the change, following the Neo4j CDC Output Schema.
What is in a CDC payload?
- Event Type:
nodeorrelationship. - Operation:
create,update, ordelete. - Labels: The labels of the node or relationship involved.
- Before and After states: The property values before and after the change.
CDC events carry their own event types, combining the entity with the operation: indykite.audit.cdc.node.create, indykite.audit.cdc.node.update, indykite.audit.cdc.node.delete, and the same three under indykite.audit.cdc.relationship.*. Filter them in routes like any other event type, for example with the indykite.audit.cdc.* wildcard.
For example, a CDC event for an updated Person node shows that the email property changed from old@example.com to new@example.com, enabling a consuming system to correlate and act on the specific delta.
A route can filter CDC node events on the node's labels: the platform attaches them as label0, label1, ... in alphabetical order, one key per label, so a key_value_pairs entry such as label0 = "Person" matches nodes whose first label is Person. Capture events use the captureLabel key instead, as listed in the Capture Events table above.
How do I enable CDC events?
CDC events are controlled per event sink via the include_cdc_events boolean field at the top level of the Event Sink configuration, next to providers and routes; it applies to every provider of the sink:
include_cdc_events = true: CDC events are emitted to the sink.include_cdc_events = falseor unset (default): CDC events are not emitted.
How do I configure Outbound Events?
Example 1: Send all Capture events to Kafka
Goal: Send an event to a Kafka topic each time a node or relationship is captured (upsert or delete).
Using Terraform
Documentation: indykite_event_sink resource
resource "indykite_event_sink" "outbound_events" {
name = "outbound-events"
display_name = "Outbound Events"
project_id = "gid:AAAAAmluZHlraURlgAABDwAAAAA" # your project GID
include_cdc_events = false
providers {
provider_name = "confluent-provider"
kafka {
brokers = ["pkc-xxxxx.region.gcp.confluent.cloud:9092"]
topic = "topic_signal"
username = "<your-api-key>"
password = "<your-api-secret>"
}
}
routes {
provider_id = "confluent-provider" route_display_name = "Capture Events"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.capture.*"
}
}
}
Using REST API
Endpoint: POST /event-sinks
{
"project_id": "YOUR_PROJECT_GID",
"name": "outbound-events",
"display_name": "Outbound Events",
"description": "Capture events to Kafka",
"include_cdc_events": false,
"providers": {
"confluent-provider": {
"kafka": {
"brokers": ["pkc-xxxxx.region.gcp.confluent.cloud:9092"],
"topic": "topic_signal",
"username": "<your-api-key>",
"password": "<your-api-secret>",
"disable_tls": false,
"tls_skip_verify": false
}
}
},
"routes": [
{
"provider_id": "confluent-provider", "display_name": "Capture Events",
"stop_processing": true,
"event_type_key_values_filter": {
"event_type": "indykite.audit.capture.*"
}
}
]
}
Example 2: Filter events by node label and property
Goal: Send events only when a Person node with an email property is upserted.
Using Terraform
routes {
provider_id = "kafka-provider" route_display_name = "Person Email Events"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.capture.upsert.node"
key_value_pairs {
key = "captureLabel"
value = "Person"
}
key_value_pairs {
key = "email"
value = "*"
}
}
}
Using REST API
{
"provider_id": "kafka-provider", "display_name": "Person Email Events",
"stop_processing": true,
"event_type_key_values_filter": {
"event_type": "indykite.audit.capture.upsert.node",
"context_key_value": [
{
"key": "captureLabel",
"value": "Person"
},
{
"key": "email",
"value": "*"
}
]
}
}
Example 3: Route to multiple providers
Goal: Route different event types to different providers:
- Person node captures → Kafka
- CIQ executions → Azure Event Grid
- Config changes → Azure Service Bus
Using Terraform
resource "indykite_event_sink" "multi_provider" {
name = "multi-provider-events"
display_name = "Multi Provider Events"
project_id = "gid:AAAAAmluZHlraURlgAABDwAAAAA" # your project GID
include_cdc_events = false
providers {
provider_name = "kafka-provider"
kafka {
brokers = ["broker1:9092", "broker2:9092"]
topic = "capture-events"
username = "<your-api-key>"
password = "<your-api-secret>"
}
}
providers {
provider_name = "azure-grid-provider"
azure_event_grid {
topic_endpoint = "https://your-topic.eventgrid.azure.net/api/events"
access_key = "<your-access-key>"
}
}
providers {
provider_name = "azure-bus-provider"
azure_service_bus {
connection_string = "Endpoint=sb://your-namespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<your-key>"
queue_or_topic_name = "config-events"
}
}
routes {
provider_id = "kafka-provider" route_display_name = "Person Captures"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.capture.upsert.node"
key_value_pairs {
key = "captureLabel"
value = "Person"
}
}
}
routes {
provider_id = "azure-grid-provider" route_display_name = "CIQ Executions"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.ciq.execute"
}
}
routes {
provider_id = "azure-bus-provider" route_display_name = "Config Changes"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.config.*"
}
}
}
Example 4: Send events to Google Cloud Pub/Sub
Goal: Publish events to a Google Cloud Pub/Sub topic using a GCP service account.
The pubsub provider requires three fields:
project_id: The GCP project ID that owns the topic (6–30 characters).topic_name: The Pub/Sub topic name (3–255 characters).credentials_json: The full JSON of a GCP service account key with permission to publish to the topic (e.g.roles/pubsub.publisher).
Using Terraform
resource "indykite_event_sink" "pubsub_events" {
name = "pubsub-outbound-events"
display_name = "Pub/Sub Outbound Events"
project_id = "gid:AAAAAmluZHlraURlgAABDwAAAAA" # your project GID
include_cdc_events = false
providers {
provider_name = "pubsub-provider"
pubsub {
project_id = "my-gcp-project"
topic_name = "my-pubsub-topic"
credentials_json = var.pubsub_credentials_json # the service account key file, passed as a sensitive variable
}
}
routes {
provider_id = "pubsub-provider" route_display_name = "Capture Events"
stop_processing = true
keys_values_filter {
event_type = "indykite.audit.capture.*"
}
}
}
variable "pubsub_credentials_json" {
type = string
sensitive = true
}
Using REST API
{
"project_id": "YOUR_PROJECT_GID",
"name": "pubsub-outbound-events",
"display_name": "Pub/Sub Outbound Events",
"description": "Capture events to Google Cloud Pub/Sub",
"include_cdc_events": false,
"providers": {
"pubsub-provider": {
"pubsub": {
"project_id": "my-gcp-project",
"topic_name": "my-pubsub-topic",
"credentials_json": "{\"type\":\"service_account\",...}"
}
}
},
"routes": [
{
"provider_id": "pubsub-provider", "display_name": "Capture Events",
"stop_processing": true,
"event_type_key_values_filter": {
"event_type": "indykite.audit.capture.*"
}
}
]
}
Security note: The credentials_json value is a sensitive secret. Store it outside of version control (for example, in Terraform Cloud variables, Vault, or a CI secret store) and load it at apply time.
How do I filter by multiple labels?
To match nodes with multiple labels, add multiple captureLabel key-value pairs:
{
"key": "captureLabel",
"value": "Person"
},
{
"key": "captureLabel",
"value": "Human"
}
For this filter to match, the captured node must have:
"type": "Person""tags": ["Human"]
What are Kafka brokers?
A Kafka Broker is a server that receives, stores, and distributes messages between producers and consumers.
Why specify multiple brokers?
The primary reason is resilience. If the first broker is unavailable, the client tries the next one in the array.
Best practice: Include at least two brokers to ensure connectivity even if one broker is down.
"brokers": ["broker1.confluent.cloud:9092", "broker2.confluent.cloud:9092"]
How do TLS settings work?
What does disable_tls do?
Setting disable_tls = true connects to Kafka without encryption (plain TCP).
| Setting | TLS Enabled (default) | TLS Disabled |
| Data encryption | Encrypted in transit | Unencrypted (vulnerable to interception) |
| Authentication | Certificate-based verification | None (unless using SASL) |
| Performance | Slight overhead | Slightly faster |
| Security | Production-ready | Development only |
What does tls_skip_verify do?
Setting tls_skip_verify = true skips certificate validation while still encrypting data.
| Setting | Verify Enabled (default) | Verify Skipped |
| Data encryption | Encrypted | Encrypted |
| Server authentication | Certificate validated | Certificate accepted without validation |
| MITM protection | Protected | Vulnerable |
| Use case | Production | Development with self-signed certs |
Recommendation: Only disable TLS or skip verification in development environments or highly secure private networks.
How do I manage an event sink over its lifecycle?
A project has at most one event sink: a second POST /configs/v1/event-sinks is refused with 409 and event sink already exists in project, so adding a destination means updating the sink's providers and routes. The rules shared by every Config API resource are in the Config API conventions guide; what is specific to event sinks:
| Operation | Specific to event sinks |
|---|---|
GET /configs/v1/event-sinks?project_id=… | Without full_fetch=true the item's providers and routes are empty. |
GET /configs/v1/event-sinks/{id} | By GID, or by name with ?project_id=. Every secret comes back as an empty string: Azure Event Grid access_key, Service Bus connection_string, Kafka password, Pub/Sub credentials_json. A provider that has failed carries its read-only last_error. |
PUT /configs/v1/event-sinks/{id} | A full replacement of providers and routes, both required: send every provider with its secret again, since a read never returns them, and every route. include_cdc_events left out means false. name and project_id cannot change. The destinations are checked before anything is stored (save-time errors). Send the etag as If-Match to get 412 rather than overwrite a concurrent change. |
DELETE /configs/v1/event-sinks/{id} | Returns the deleted id; events produced from then on are not delivered anywhere. The audit trail of the project is unaffected: it does not depend on the sink. |
There is no switch to pause one route or one provider: remove it from the update, or point the route's filter at an event type that never occurs, and put it back later.
Verification
After configuring Outbound Events:
- Perform an operation that matches your route (e.g., capture a node).
- Check your provider (Kafka topic, Azure Event Grid, Azure Service Bus, Google Cloud Pub/Sub) for the event message.
- Verify the message conforms to the CloudEvents standard.

Checking a provider's health: last_error
Creating or updating an event sink does not test the connection synchronously; POST /configs/v1/event-sinks answers 201 as soon as the body is valid. The platform checks each provider afterwards, and records the outcome on the provider object. Read it back with GET /configs/v1/event-sinks/{id} (or the list endpoint with full_fetch=true): every provider block, whether kafka, azure_event_grid, azure_service_bus, or pubsub, carries an optional last_error field.
{
"providers": {
"kafka-provider": {
"kafka": {
"brokers": [
"broker-1.example.com:9092"
],
"topic": "indykite-events",
"username": "user1",
"disable_tls": false,
"tls_skip_verify": false,
"last_error": "the endpoint could not be reached. Failure 1 of 10, next retry after <time>."
}
}
}
}
The field is absent while the provider is healthy. When present it starts with one of four fixed messages; the underlying network or transport detail is deliberately not exposed. For a failure the platform retries, the message is followed by where the retries stand:
. Failure 3 of 10, next retry after <time>.: the platform will try again by itself.<time>is a UTC timestamp in RFC 3339 form.. Failure 10 of 10, retries stopped. Save the configuration to try again.: the platform has given up until the sink is updated.
A message without either ending is a rejection the platform does not retry. The whole value is at most 1024 characters.
The four messages:
| last_error | Meaning and fix | Retried by the platform |
the endpoint could not be reached |
DNS, dial, TLS, or timeout failure on the way to the broker or endpoint. Check the host and port, that the endpoint is reachable from the public internet, and the TLS settings (disable_tls, tls_skip_verify for Kafka). |
Yes. Not when the host resolves to a private, loopback or link-local address: that does not change by itself. |
invalid access key or topic endpoint |
The endpoint answered but rejected the credentials or the target: wrong access_key or topic_endpoint (Event Grid), wrong connection_string or queue_or_topic_name (Service Bus), wrong username / password or topic (Kafka), wrong credentials_json or topic_name (Pub/Sub). |
No. Correct the settings and update the sink. |
the endpoint reported a server error |
The endpoint itself failed. Check the provider's own status; the platform retries. | Yes. |
the connection to the endpoint failed |
The connection could not be set up for a reason none of the other messages describes, such as a setting the provider's client refuses. Check the provider settings. | No. Correct the settings and update the sink. |
last_error is not only the outcome of the check after a create or an update. A provider that was delivering gets it too, with the same messages, when its sends keep failing or the endpoint starts refusing them; see the next two sections.
Is a failed provider retried?
Yes, for a failure that can go away by itself (the "Yes" rows above). The platform connects to a provider in rounds of 3 connection attempts, and a round that fails is what last_error reports and counts:
| After | What the platform does |
| The first failed round | Tries again 10 to 25 minutes later. |
| Each further failed round | Waits twice as long as before, up to 4 hours between two rounds. |
| The 10th failed round | Stops. The provider is not tried again until the sink is updated. |
| A rejection (the "No" rows above) | Stops at once, without counting rounds. The provider is not tried again until the sink is updated. |
| A round that succeeds | Removes last_error and starts delivering again. |
A provider that was delivering and whose sends start to fail is handled before anything is recorded:
| When | What the platform does |
| Sends fail for a reason that can go away by itself (the endpoint cannot be reached, times out or reports a server error) | Keeps trying, with pauses that grow, and connects to the provider again after each pause. Nothing is recorded, and one send that succeeds ends it. |
| Sends still fail after 43 to 85 minutes, with no send that succeeded in between | Records the failure in last_error as a failed round, with the same Failure n of 10 ending and retry time, and continues with the rounds of the table above. |
| The endpoint refuses a send for the provider itself, such as a deleted topic or a revoked key | Checks the provider at once. When the provider refuses the check, or passes it and then refuses a send again, last_error gets a rejection: the provider is not tried again until the sink is updated. |
What happens to events while a provider is failed?
- While a connection round is running, an event for a route on that provider is not lost: it is delivered again once the round has ended, to all the routes it matches. A route that had already delivered it gets it a second time.
- Once a round has failed, every route pointing at the provider is switched off until the next round succeeds or the sink is updated. Events that match only such a route in that time are not delivered and not kept for later.
- A switched-off route with
stop_processingstill stops the routes after it. - While the sends to a provider that was delivering fail, and
last_erroris not recorded yet, an event for a route on that provider is not lost: it is delivered again, to all the routes it matches, until the provider recovers or is switched off. A route that had already delivered it gets it a second time. - A single event the endpoint refuses, such as one that is too large or that a filter of the destination refuses, is not sent again. The provider keeps delivering the other events, and nothing is recorded in
last_error.
So a long outage of a destination costs the events of that period on its routes. Watch last_error on the sinks you depend on, and fix a rejection quickly, since the platform does not retry it.
Any PUT /configs/v1/event-sinks/{id} clears last_error on all providers of the sink and triggers a fresh check with the new configuration. After correcting the settings, read the sink again a little later: an absent field means the check passed, a present one names the remaining problem. When the platform records or removes last_error by itself, the sink's etag does not change, so an If-Match you hold stays valid.
Destinations refused when saving the sink
Before storing a sink, POST /configs/v1/event-sinks and PUT /configs/v1/event-sinks/{id} check where each provider points. A destination the platform would never deliver to is refused at once with 422 rather than recorded later in last_error. The check reads only a host written as a literal address: loopback, link-local and private-range addresses are refused. A host name is not resolved at save time.
| Message | Provider and field |
kafka broker: destination is not permitted |
An entry of kafka.brokers is a literal private, loopback or link-local address. A broker given as a host name is checked again when the platform connects: if the name resolves to such an address, the connection is refused and the provider reports the endpoint could not be reached in last_error. |
azure event grid topic endpoint: destination is not permitted |
azure_event_grid.topic_endpoint points at a literal private, loopback or link-local address. |
azure event grid topic endpoint: not an absolute URL |
azure_event_grid.topic_endpoint has no scheme or no host. |
azure event grid topic endpoint: unsupported URL scheme: must be https |
azure_event_grid.topic_endpoint uses http. The access key travels in a header, and the platform only reaches external destinations over HTTPS, so the endpoint has to be https. |
azure service bus endpoint: destination is not permitted |
The Endpoint= part of azure_service_bus.connection_string names a literal private, loopback or link-local address. |
Next Steps
- Terraform examples: Terraform Configurations
- REST API reference: Event Sink API
- Full examples: Developer Hub Resources
- The CloudEvents envelope your provider receives and the payload fields of every event type: Audit Event Formats guide