# Federated connectivity
Two organisations each operate their own Agent Gateway. A federated connection links them over an encrypted DIDComm tunnel so surfaces on one gateway can route traffic to surfaces on the other, without either side exposing internal endpoints directly.

| Guide | What you will achieve |
| [Agent validation via a trust registry](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/agent-validation-via-trust-registry.md) | Configure Trust Check queries against a trust registry and write OPA policy rules that enforce access decisions based on trust verification outcomes. |
| [Connect two gateways](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/connect-gateways.md) | Establish a DIDComm tunnel between two Agent Gateway instances so surfaces can route traffic between them. |
| [Configure GW-to-GW authentication and routing](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/g2g-authentication-and-routing.md) | Validate source and target authentication flows across a live GW-to-GW MCP connection using scenario playbooks covering auth enforcement and secret injection. |
| [Agent validation via a trust registry](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/agent-validation-via-trust-registry.md) | Configure Trust Check queries against a trust registry and write OPA policy rules that enforce access decisions based on trust verification outcomes. |
| [Set up event notifications](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/set-up-event-notifications.md) | Deliver gateway event alerts to email, Slack, a webhook, or a streaming platform. |


## Pages in this section


- [Agent validation via Trust Registry](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/agent-validation-via-trust-registry.md): Configure Trust Check queries against trust registries and enforce access using Policy decisions on Trust Check outcomes.

- [Connect two gateways](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/connect-gateways.md): How to add a DIDComm mediator on each gateway, create a connection point invitation, import it on the receiving gateway, and approve the connection to establish an encrypted DIDComm tunnel.

- [Configure GW-to-GW authentication and routing](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/g2g-authentication-and-routing.md): Build secure Gateway-to-Gateway MCP workflows between two companies, with practical setup for source authentication, target authentication secret injection, request routing, validation, and troubleshooting.

- [Set up event notifications](/products/affinidi-trust-fabric/agent-gateway/how-to-guides/connections/set-up-event-notifications.md): Send alerts to email, Slack, a webhook, or a streaming platform when gateway events occur.


