Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Network and outbound rules

    Permit required routes and refuse external AI requests.

    On this page

    Build the route list

    List source, destination and purpose for user access, identity, connectors, model runtimes, audit, backups and event delivery. Allow only the routes required by the selected deployment. External AI services are outside the model boundary and receive no question or context.

    1. Keep model endpoints inaccessible from the public ingress.
    2. Permit connector destinations individually; do not allow an entire outbound network by default.
    3. Place the event receiver inside the route policy before registering it.

    Test a refusal

    Send a check for an external AI destination with the outbound check operation, or press Check outbound request in the Boundary view. Confirm outbound_denied, that nothing was sent and that the audit log holds a refused entry with the user, the destination and the rule. Do not weaken the boundary to clear the refusal.

    Recheck changes

    Repeat route tests after changing a connector, receiver or network rule. In isolated mode, test sign-in, retrieval, indexing and backups with outbound routes disabled. Record the result with the installation configuration.

    curl

    curl "$RDC_BASE_URL/private-ai/v1/admin/audit?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/private-ai/v1/admin/audit?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/private-ai/v1/admin/audit?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/private-ai/v1/admin/audit?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/private-ai/v1/admin/audit?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "items": [
        {
          "id": "audit-6",
          "time": "2026-11-23T05:48:00Z",
          "user": "andrei-pop",
          "action": "ask",
          "destination": "model-secondary",
          "decision": "refused",
          "rule": "model_unavailable"
        },
        {
          "id": "audit-5",
          "time": "2026-11-22T16:20:00Z",
          "user": "vlad-munteanu",
          "action": "index-again",
          "destination": "doc-scan",
          "decision": "allowed",
          "rule": "admin_role"
        },
        {
          "id": "audit-4",
          "time": "2026-11-22T14:05:00Z",
          "user": "andrei-pop",
          "action": "ask",
          "destination": "model-primary",
          "decision": "refused",
          "rule": "forbidden"
        },
        {
          "id": "audit-3",
          "time": "2026-11-22T11:32:00Z",
          "user": "vlad-munteanu",
          "action": "load-model",
          "destination": "model-primary",
          "decision": "allowed",
          "rule": "admin_role"
        },
        {
          "id": "audit-2",
          "time": "2026-11-22T09:10:00Z",
          "user": "workspace-integration",
          "action": "outbound-request",
          "destination": "external-ai-services",
          "decision": "refused",
          "rule": "outbound_denied"
        },
        {
          "id": "audit-1",
          "time": "2026-11-22T08:14:00Z",
          "user": "mihai-stan",
          "action": "ask",
          "destination": "model-primary",
          "decision": "allowed",
          "rule": "space_permission"
        }
      ],
      "nextCursor": null
    }