SOAR Integration operations
This page describes the implemented Pigeon Bridge Service Bus integration for customer-executed response actions. It is grounded in the current code and infrastructure, not the target generic webhook design.
Where this page does not identify recovery automation, recovery is manual. In particular, there is no implemented automatic DLQ replay, customer-queue repair, RBAC repair, or post-timeout reconciliation.
Runtime topology
| Flow | Implemented path | Operational owner |
|---|---|---|
| Outbound request | Conveyor → pigbr-ext-ingestion → Pigeon Bridge → customer outgoing queue | ION through successful enqueue; customer after enqueue |
| Inbound status | Poll timer → pigbr-int-ingestion → Pigeon Bridge → customer incoming queue → pigbr-ext-ingestion → Conveyor | Customer through successful enqueue; ION after polling |
| Correlation | Cosmos DB pigeon-bridge/customer_outbound, keyed by outbound message and workspace | ION |
| Connection data | Doppio customer, SOAR-enabled, and connection records | ION |
The implementation is in pigeon-bridge/; Conveyor timeout handling is in
conveyor/app/responseactions/. For message contracts and onboarding context,
see Pigeon Bridge
and the customer Service Bus guide.
Schedules and timeout
Environment schedules
The schedules are Azure Functions NCRONTAB expressions from
pigeon-bridge/infrastructure-shared/data.tf.
| Environment | Inbound customer polling | Internal DLQ metric capture |
|---|---|---|
Alpha (apa) | Every 5 minutes: 0 */5 * * * * | Every 30 minutes: 0 */30 * * * * |
Beta (bta) | Every 5 minutes: 0 */5 * * * * | Every 30 minutes: 0 */30 * * * * |
Gamma (gma) | Every 2 minutes: 0 */2 * * * * | Every 15 minutes: 0 */15 * * * * |
Production (prd) | Every minute: 0 */1 * * * * | Every 2 minutes: 0 */2 * * * * |
The polling timer obtains SOAR-enabled settings and live customers from Doppio,
then emits one PollCustomerConnection command per supported configured
connection. Deploy slots disable both timers in
pigeon-bridge/infrastructure-shared/func-messaging.tf.
Conveyor timeout
Conveyor schedules CheckCustomerExecutionTimeout 72 hours after customer
execution enters progress. The value is
ResponseActions__CustomerExecutionTimeoutHours = 72 in
conveyor/infrastructure-responseactions/main-func-svcbus.tf. If the action is
still pending when the command runs, Conveyor records execution as failed and
completes the response action with the timeout reason. If a final state already
exists, the timeout command is a no-op.
The timeout is not a Pigeon Bridge message TTL and does not cancel customer-side execution. A status received after timeout therefore requires manual reconciliation.
Messaging settings
ION internal topics and subscriptions
The settings below are provisioned by
pigeon-bridge/infrastructure-shared/main-svcbus.tf.
| Entity | TTL | Duplicate detection | Max delivery | Sessions |
|---|---|---|---|---|
pigbr-ext-ingestion topic | 14 days | Enabled, 15-minute history | Subscription: 3 | Required by subscriber |
pigbr-int-ingestion topic | 14 days | Enabled, 15-minute history | Subscription: 3 | Required by subscriber |
Both topics have ordering enabled and partitioning disabled. The subscriptions
are pigbr-sendresponseaction-v1-* and
pigbr-pollcustomerconnection-v1-*. Function host processing permits four
concurrent sessions, uses a 30-second session idle timeout, and configures
exponential client retries with five retries in
pigeon-bridge/app/src/Ontinue.Ion.Functions.PigeonBridgeMessaging/host.json.
Internal messages require signatures in Gamma and Production. Alpha and Beta accept unsigned internal messages but still validate a signature when one is present. Customer-facing messages are not signed; access is controlled through federated identity and Azure RBAC.
Customer queues
Customer queues are customer-owned and are not provisioned or monitored by the Pigeon Bridge Terraform. The documented recommended settings are duplicate detection enabled with a 15-minute window, one-minute lock duration, max delivery count 3, and 14-day TTL. Actual settings can differ and must be checked in the customer subscription.
Outbound MessageId equals the deterministic CloudEvent id, making retry
sends compatible with duplicate detection. The customer should use a unique
CloudEvent and transport message ID for each status update and echo the request
CloudEvent id in data.request_id.
Poll batch and drain behavior
Defaults come from
pigeon-bridge/app/src/Ontinue.Ion.Core.PigeonBridge/Config/InboundPollingConfig.cs:
- Receive up to 32 messages per batch.
- Drain one connection for up to 30 seconds per poll command.
- Wait up to 5 seconds for each receive call.
- Use
PeekLock; settle each message after dispatch. - Stop when a receive returns an empty batch, the drain deadline is reached, the operation is cancelled, or a Service Bus error ends the loop.
A transient customer Service Bus error ends the current drain and leaves work for the next scheduled poll. A non-transient or unexpected poll error is logged; the poll command itself can complete, so recovery is the next schedule after the underlying fault is repaired. One busy connection is bounded by the 30-second drain window rather than being drained without limit.
Settlement and recovery matrix
| Failure or condition | Implemented settlement | Implemented recovery | Operator action |
|---|---|---|---|
| Internal schema or signature failure | Dead-letter internal subscription message | Internal DLQ metric only | Correct producer/configuration, then manually replay or resubmit |
| Internal transient handler failure, including outbound send failure | Abandon; retry until subscription max delivery count 3, then DLQ | Service Bus retry; duplicate Cosmos insert is tolerated | Repair dependency; inspect customer queue before manual replay |
| Internal persistent exception | Complete after logging; no retry | None | Investigate logs and manually recreate intent if required |
| Customer inbound invalid JSON or missing CloudEvent type | Dead-letter customer incoming message | None | Customer corrects and resubmits with a new status-event ID |
| Customer inbound schema-invalid status | Dead-letter customer incoming message | None | Customer corrects schema and resubmits |
| Unsupported customer CloudEvent type | Complete | None | Correct customer producer; resubmit a supported type |
| Handler crash while processing customer status | Abandon customer message | Customer queue retries according to its own max delivery setting | Repair ION fault; inspect customer DLQ if retries exhaust |
Unknown request_id | Complete and emit ResponseAction.UnsolicitedStatusUpdate | None | Correlate request/customer/workspace manually; resubmit only if the original request exists |
| Status for an already completed outbound record | Update/republish and complete; emit ResponseAction.DuplicateStatusUpdate | Republish to Conveyor | Check for a customer retry loop; do not execute the action again |
| Status correlated after Conveyor’s 72-hour timeout | Pigeon Bridge can accept and publish it; Conveyor action is already terminal | No automatic reconciliation | Compare customer evidence with ION state and resolve operationally |
| Poll cannot reach customer queue | Poll command completes after logging the poll error | Next scheduled poll | Repair queue/network/RBAC; verify backlog drains afterward |
| Doppio connection-list failure for one customer | Skip that customer for the cycle | Next scheduled poll | Restore Doppio and verify later poll logs |
| Customer outgoing queue message is not consumed | Customer queue retention/DLQ behavior applies | None in ION | Customer investigates consumer and manually replays from its DLQ |
Observability
Implemented ION-side signals
Application Insights resource names follow appi-pigbr-{env}-chn-01. Use function
requests, traces, exceptions, dependencies, and these implementation-specific
signals:
| Signal | Meaning | Useful dimensions or context |
|---|---|---|
Custom metric DLQMessageCount | Dead-letter count for each Pigeon Bridge internal subscription | Topic, Subscription |
InboundPolling.UnsupportedConnectionType | Scheduler skipped a non-Service-Bus connection | connection_type, customer_short, connection_id |
ResponseAction.UnsolicitedStatusUpdate | No Cosmos outbound row matched request_id | customer_short, connection_id, ion_workspace_id, request_id, event_id |
ResponseAction.DuplicateStatusUpdate | Correlated outbound row was already complete | Same dimensions as unsolicited status |
| Poll completion trace | Per-connection processed message and batch counts | customer, connection, queue, count, batches |
| Send and processing traces | Outbound event ID/type, destination, inbound status and errors | Correlate CloudEvent ID, request ID, workspace, connection |
The DLQ timer discovers the two internal Service Bus-trigger subscriptions and records their counts. It does not inspect customer queue DLQs. The ORR lists broader Azure resource health and action-failure monitoring expectations; treat those as operational checks unless an alert is independently confirmed. See the SOAR ORR.
Customer versus ION visibility
| Visible to ION | Not directly visible to ION |
|---|---|
| Pigeon Bridge functions, internal topics/subscriptions and DLQs, Cosmos tracking rows, Doppio calls, Conveyor events and timeout | Customer queue depth, active messages, DLQ contents, actual queue settings, customer SOAR health, and action execution logs |
| Success or failure of ION’s send/receive attempt | Whether the customer consumer processed an outbound message after enqueue |
| Doppio’s stored connection and permission-compliance result | Current customer resource state when validation/compliance data is stale |
Customer-side evidence must be requested for queue depth, DLQ, consumer logs, and execution outcome. Doppio’s permission checks and the connection-validation endpoint are useful but are not substitutes for customer queue telemetry.
Runbooks
Outbound request is in an ION internal DLQ
- Identify the
pigbr-sendresponseaction-v1-*subscription from theDLQMessageCountdimensions and inspect the dead-letter reason andLastExMessage. - Correlate the command ID, response-action ID, workspace, and connection with Pigeon Bridge and Conveyor traces and the Cosmos outbound row.
- Determine whether the message was already sent to the customer outgoing queue. Ask the customer when ION evidence is inconclusive.
- Repair the root cause: Doppio data, Cosmos, signature/configuration, RBAC, queue existence, network access, or Service Bus availability.
- Manually replay only after checking the deterministic outbound ID will not cause an unsafe repeat. Customer automation must remain idempotent.
- Confirm the internal DLQ count clears and the action receives a valid status or is intentionally resolved. There is no automatic replay.
RBAC permission is lost
- Run connection validation and inspect Doppio compliance for incoming
Data Receiverand outgoingData Senderpermissions. - Confirm the Ontinue enterprise application still has admin consent and the expected assignments at queue or namespace scope.
- Have the customer restore RBAC; allow for Azure role propagation.
- Re-run validation. Then verify an outbound test send and that an inbound test status is drained on a later poll.
- Inspect both ION internal DLQs and customer DLQs. Replay manually where safe; no permission-repair or replay automation is implemented.
Incoming or outgoing queue is missing or disabled
- Use connection validation to identify the failing direction; the API probes
receive with
PeekMessageAsyncand send by creating a message batch. - Compare Doppio namespace and queue names with the customer resources.
- Have the customer restore the queue with the agreed settings, or correct the saved connection. Reapply RBAC and firewall allowlisting.
- Validate again and perform an end-to-end test.
- Reconcile retained/DLQ messages manually. Recreating a queue does not recover messages from the deleted queue.
Unknown, duplicate, or late status is observed
- Classify the signal:
- Unknown:
ResponseAction.UnsolicitedStatusUpdate; no tracking row matched. - Duplicate:
ResponseAction.DuplicateStatusUpdate; the tracking row was already complete and the event is republished. - Late: the request correlates, but Conveyor’s 72-hour timeout already made the response action terminal.
- Unknown:
- Compare
request_idwith the original outbound CloudEventid, not the status event’s ownid; also verify workspace and connection. - For unknown status, check for customer mapping mistakes, expired/lost tracking data, or a status for another environment. Ask the customer to correct and resubmit only when the original intent is proven.
- For duplicates, identify retry loops and ensure customer execution is idempotent.
- For late status, preserve customer execution evidence and manually reconcile it with the timed-out ION action. Do not silently change terminal state.
Message is in a customer DLQ
- Ask the customer for queue direction, message ID, dead-letter reason, delivery count, enqueue time, and payload with sensitive data handled under the applicable process.
- Outgoing DLQ: verify customer consumer health and schema support. Confirm the action has not already executed before replay.
- Incoming DLQ: use Pigeon Bridge logs to distinguish invalid body, missing or unsupported type, schema failure, and exhausted transient retries.
- Correct the producer/consumer or ION fault, then have the customer manually replay or resubmit.
- Verify correlation and final state in ION. ION cannot inspect or replay the customer DLQ directly.
Doppio is unavailable
- Check dependency failures for customer/settings/connection calls.
- Recognize impact: outbound requests can retry and eventually reach the internal DLQ; the polling timer cannot discover customers or connections, or skips a customer whose connection listing fails.
- Restore Doppio and verify the next scheduler cycle queues poll commands.
- Check the customer incoming queue backlog and both internal subscriptions.
- Manually replay internal DLQ messages after confirming outbound safety. No Doppio-outage backlog replay is implemented beyond the next normal poll.
Customer execution reaches timeout
- Confirm the response action remained pending for 72 hours and locate the scheduled timeout command and resulting failed execution state in Conveyor.
- Check Pigeon Bridge send logs and Cosmos tracking, then ask the customer for outgoing queue consumption, execution, incoming status, and DLQ evidence.
- Repair delivery or polling faults, but treat the Conveyor action as terminal.
- If the customer executed or later reports success, preserve evidence and reconcile manually according to incident-response procedure.
- Create a new authorized response action if another execution is required; never replay the old request solely to clear the timeout.