# Access and data handling

Understand the shared audience, stored data and live source boundaries.

Canonical page: https://ontlgy.io/docs/operate/access/

ontlgy's self-hosted installation is a shared context system. Select data appropriate for everyone granted access to that installation.

## Who can see the index?

Administrators configure sources and users. Members connect their own agents using personal API keys. Personal keys do not provide per-repository or per-document isolation within the shared index.

For Confluence, restricted pages are excluded, but otherwise eligible pages in selected spaces are shared with installation key holders. For Notion, administrators explicitly approve roots and descendants for that shared audience. Neither integration mirrors each user's individual source permissions.

## What is stored?

- **Postgres:** installation configuration, encrypted credentials, users, jobs and operational state.
- **Neo4j:** indexed code structure, repository guidance, document metadata and optional discovery records.
- **Clone volume:** repository clones used by the worker.
- **External page bodies:** fetched transiently for authorized live reads or enrichment; not persisted as a body corpus.

Bounded stubs, extracts and instruction bodies are still content. Avoid interpreting “no page-body storage” as “no sensitive context can enter the index.”

## Credentials and transport

Use HTTPS for shared access, protect the host and `.env`, and give source accounts the minimum suitable access. Encrypted credentials depend on the installation secret key. Host administrators with the database and key can recover them.

Revoke lost API keys and rotate source credentials through the supported UI. Keep backups protected to the same level as the running installation.

## Source changes

Stored discovery can lag permission changes until revalidation. Live document reads recheck current access and selected scope. Deselecting a source scope removes its indexed context after cleanup; it does not delete upstream source documents.

See [Confluence](https://ontlgy.io/docs/sources/confluence/) and [Notion](https://ontlgy.io/docs/sources/notion/) for their specific freshness limits.
