Connecting an enterprise AI assistant to internal knowledge sounds straightforward until an employee queries salary bands and the model helpfully cites an executive HR document. In enterprise deployments, Retrieval-Augmented Generation (RAG) is not primarily a modeling challenge—it is an access control challenge.
When deploying Cohere Coral alongside Atlassian Confluence, administrators face a critical structural decision: do you pipe queries directly to Confluence using per-user OAuth tokens, or do you pre-index the entire wiki into an enterprise vector store with synchronized Access Control Lists (ACLs)?
At 365Finds, our evaluation is unequivocal. If your Confluence workspace holds confidential product roadmaps, M&A memos, or payroll policies, you should never deploy a naive centralized vector crawler using a super-admin token. 365Finds recommends either strict user-delegated OAuth 2.0 retrieval or an ingestion pipeline with automated webhook-driven permission pruning. Below is the technical breakdown and configuration guide for internal wiki administrators.
Two Integration Architectures: Federated Query vs. Pre-Indexed Ingestion
Cohere Coral interacts with external data repositories through Cohere's connector framework. When integrating Confluence, administrators must choose between two distinct patterns.
Federated Mode (Zero ACL Drift):
User Query -> Cohere Coral -> Confluence Connector (User OAuth Token) -> Confluence CQL Search -> Cohere Rerank -> Cohere Coral (Inline Citations)
Centralized Ingestion Mode (High Speed / Semantic):
Confluence Webhooks -> Ingestion Worker -> Cohere Embed -> Vector DB (Chunks + ACLs)
User Query -> Cohere Coral -> Filtered Vector Search ($in: user_groups) -> Cohere Rerank -> Cohere Coral (Inline Citations)
1. User-Delegated Federated Search (OAuth 2.0 3LO)
In this pattern, Cohere Coral does not maintain an independent vectorized copy of your wiki. Instead, when an employee asks a question, the connector translates the prompt into Confluence Query Language (CQL) and queries the Confluence REST API directly using that specific user's OAuth access token.
- Security Advantage: Confluence natively enforces permissions at query time. If a user does not have view access to a restricted space or page, Atlassian's search engine omits it from the result set. 365Finds considers this the safest baseline because permission leakage is architecturally impossible.
- The Operational Trade-off: Confluence CQL relies heavily on lexical keyword matching rather than dense vector semantics. Furthermore, Confluence Cloud REST API rate limits and search latencies can introduce round-trip delays of 600ms to 1.5s before Cohere Coral begins drafting a response.
2. Centralized Ingestion with Metadata ACL Filtering
In this pattern, a background ingestion pipeline crawls Confluence spaces, splits documents into semantic chunks, generates vector embeddings using Cohere Embed, and stores the chunks in a vector database alongside access metadata (space IDs, allowed user IDs, and allowed Confluence groups).
- Performance Advantage: Sub-second semantic search across hundreds of thousands of pages, independent of Confluence API rate limits.
- The Critical Vulnerability: Confluence features a hierarchical permission model where restrictions cascade down page trees. If an administrator restricts a parent page, child pages inherit that restriction. If your vector database synchronizer does not subscribe to Atlassian webhooks to update ACL metadata in real time, Cohere Coral will retrieve unauthorized text snippets and expose them in cited answers.
Step-by-Step Configuration Guide
Step 1: Create an Atlassian OAuth 2.0 Integration App
Whether deploying Cohere Coral via Cohere's managed enterprise environment or a private VPC toolkit instance, you need an integration app in the Atlassian Developer Console.
- Navigate to the Atlassian Developer Console and create a new OAuth 2.0 (3LO) integration.
- In the Permissions tab, add the following Confluence Cloud REST API scopes:
read:confluence-content.summary(Read page titles, bodies, and hierarchy)read:confluence-space.summary(Read workspace and space metadata)search:confluence(Execute CQL search queries)offline_access(Obtain refresh tokens for persistent background sessions)
- Set the Callback URL to your Cohere Coral connector authentication callback endpoint:
https://<your-coral-domain>/auth/callback/confluence - Record your
Client IDandClient Secret.
Step 2: Register the Confluence Connector in Cohere
Cohere provides connector interfaces via the Cohere Toolkit and Cohere REST API. To register the Confluence connector, define the connector metadata and authentication scheme:
POST /v1/connectors
Authorization: Bearer <COHERE_ADMIN_API_KEY>
Content-Type: application/json
{
"name": "enterprise-confluence",
"description": "Internal technical wikis, architecture specs, and workspace documentation",
"url": "https://api.internal.yourcompany.com/connectors/confluence/search",
"oauth": {
"client_id": "YOUR_ATLASSIAN_CLIENT_ID",
"client_secret": "YOUR_ATLASSIAN_CLIENT_SECRET"
},
"active": true,
"continue_on_failure": false
}
When users query Cohere Coral, Coral passes their delegated user token in the request headers to the connector search endpoint:
Authorization: Bearer <USER_DELEGATED_ACCESS_TOKEN>
Step 3: Implement CQL Translation and Document Extraction
The connector service acts as the bridge between Cohere Coral's retrieval requests and Confluence's /wiki/rest/api/search endpoint.
import os
import requests
def search_confluence(query_text, user_token, space_keys=None):
base_url = os.getenv("CONFLUENCE_BASE_URL") # e.g. https://company.atlassian.net/wiki
# Construct CQL expression
cql = f'text ~ "{query_text}" AND type = "page"'
if space_keys:
spaces_str = ", ".join([f'"{k}"' for k in space_keys])
cql += f' AND space in ({spaces_str})'
endpoint = f"{base_url}/rest/api/search"
headers = {
"Authorization": f"Bearer {user_token}",
"Accept": "application/json"
}
params = {
"cql": cql,
"limit": 10,
"expand": "content.body.storage,content.version,content.space"
}
response = requests.get(endpoint, headers=headers, params=params)
response.raise_for_status()
results = response.json().get("results", [])
documents = []
for item in results:
content = item.get("content", {})
page_id = content.get("id")
title = content.get("title")
space_key = content.get("space", {}).get("key")
body_text = content.get("body", {}).get("storage", {}).get("value", "")
# Build canonical web URL for citation click-through
web_url = f"{base_url}/spaces/{space_key}/pages/{page_id}"
documents.append({
"id": f"confluence-{page_id}",
"title": title,
"text": body_text,
"url": web_url
})
return documents
Step 4: Configure Grounding and Verifiable Citations
Cohere Coral relies on Cohere's Command model family and its native citation generation engine. Rather than producing opaque footnotes, Cohere generates character-level span mappings between the generated response text and the input document objects.
To ensure citations link cleanly to internal Confluence pages:
- Preserve Canonical Web URLs: Ensure the
urlfield in the connector response points to the user-facing web link (/spaces/{key}/pages/{id}) rather than the REST API endpoint (/rest/api/content/{id}). - Clean HTML Markup: Confluence storage format is XHTML-based. Strip macro tags, CSS blocks, and raw XML wrappers before returning text chunks. Leaving messy HTML entities degrades Cohere's citation span precision.
- Deploy Cohere Rerank: Confluence's default CQL ranking is crude. Passing the retrieved Confluence pages through Cohere Rerank (
rerank-v3.5) before model generation ensures that the most authoritative page sections are cited first, cutting down hallucination rates.
Permission Synchronization: Handling Restrictions and Webhooks
For enterprises choosing centralized vector indexing, permission drift is the single greatest security threat. 365Finds highlights three mandatory safeguards:
| Ingestion Challenge | Real-World Risk | Recommended Architectural Mitigation |
|---|---|---|
| Inherited Page Restrictions | Child pages become restricted when parent pages are locked; vector chunks remain readable. | Listen to Atlassian page_updated and page_moved webhooks; recursively recalculate ACL trees. |
| Group Membership Changes | An employee leaves a department, but their cached identity token still queries restricted spaces. | Enforce short-lived token lifetimes (15 minutes) and validate active group claims at the API gateway. |
| Space Deletion or Archival | Archived or deleted spaces remain queryable in stale vector stores. | Implement immediate hard-deletion triggers on space_deleted and space_archived events. |
365Finds Research Verdict
At 365Finds, we believe Cohere Coral offers one of the most mature enterprise RAG implementations available, specifically because its citation engine is built into the generation layer rather than tacked on via heuristic prompting.
However, enterprise administrators must not take shortcuts with Confluence permissions. For high-security environments, our verdict is clear: prioritize user-delegated OAuth 2.0 federated querying backed by Cohere Rerank. While federated CQL has higher latency than a pre-indexed vector store, it completely eliminates data leakage liability by letting Atlassian enforce workspace permissions at query execution time. If you must pre-index for scale, make webhook-driven ACL synchronization a prerequisite before allowing any general employee access.