Applies to v1.3.18

AISI — security and governance

AISI reads documents where they already are and writes searchable text into an index you own. It never stores documents itself: there is no upload, and every indexed part points back to its original. This page covers who may do what, how AISI handles credentials and network access, who can read an index, what is held for review, and what is recorded.


1. Roles

AISI has three roles of its own, assigned in Users like any other area's. Configuring and operating AISI are kept apart, as they are for ESRA, and neither role includes the other. Someone who restarts a stuck sync need not be able to point it at another server. Someone who configures a sync need not be the person who approves a mass deletion.

Role May
AISI Read (AISI_READ) see every AISI screen, read-only
AISI Manage configuration (AISI_MANAGE) create, change, test, enable and delete storage connections, indexes and syncs; provision or verify, rebuild and reindex an index; remove from the index a document kept from a deleted sync
AISI Operate (AISI_OPERATE) Collect now, Resync, pause and resume a sync, cancel a snapshot, approve or discard a held deletion, retry or reindex a document, release a quarantined one
  • Both writing roles include reading. Each also lets its holder pick secrets and model profiles by name, without any Security or AI settings role.
  • Tenant administrators hold all three. A tenant read-only user can see AISI.
  • ESRA users. An ESRA data manager can name an AISI index when creating an ESRA source from it, and sees nothing else of AISI.

Tenants. Everything AISI holds belongs to one tenant. A tenant's users see only their tenant's connections, indexes, syncs and documents, and another tenant's are answered exactly as if they did not exist. A platform administrator working across tenants names the tenant when creating something. Writing into another tenant's AISI configuration needs that role granted globally.

Switching AISI off. AISI__ENABLED=false on the Portal API and the Jobs Worker removes AISI entirely: its screens are hidden, every AISI endpoint answers 404, and no AISI job runs. Nothing stored is deleted.


2. Credentials

AISI never asks for a password, key or token directly. A storage connection or an index binds secrets from the Secret Store by name, one per credential it needs:

Connects to Secrets it binds
OneDrive / SharePoint a client secret, or a certificate and its password
Google Drive a service account's key file
S3 and S3-compatible storage an access key id and a secret access key; a webhook token for MinIO push
SFTP a password, a private key, or both; a passphrase for the key
FTP / FTPS a password
An index's database or cluster a writer, which AISI writes with, and a reader, which an ESRA source created from the index reads with
  • The values never reach the Portal. The API, the audit trail and the logs name a secret by its descriptor and slot, never by value, and Test never echoes one.
  • A secret must belong to the same tenant. Binding another tenant's secret is refused with the same message as binding one that does not exist, so the refusal reveals nothing about other tenants.
  • Rotation needs nothing in AISI. Secrets are read on each use and never cached, so a value rotated in the Secret Store is used from the next connection on. A secret that is deleted or can no longer be read makes the connection fail with SECRET_UNRESOLVED, which names the slot and never the value.
  • Settings and secrets save together. Editing a connection saves its settings and its secrets in one request: either both change or neither does. A secret the new settings no longer use is unbound.
  • Bind least privilege. AISI only ever reads storage: grant the account read access to what it indexes and nothing else. The writer secret of an index needs to create and write the index's own tables or indexes — or, when a DBA creates them from AISI's schema script, only to read and write them. The reader needs only to read them: ESRA's connection test reports a reader that can write. The privileges per engine are in database permissions.

3. Network access

Every connection AISI opens is checked against the tenant's Outbound Allowlist (Security → Outbound Allowlist) first, before anything is sent: storage, sign-in and token services, file download hosts, and the databases and clusters indexes live in. A host that is not on the list is refused with HOST_NOT_ALLOWED. The message names the host, so you know exactly which entry to add, and the worker logs it at Warning.

Storage Hosts to approve
OneDrive / SharePoint (global cloud) login.microsoftonline.com, graph.microsoft.com, {tenant}.sharepoint.com, {tenant}-my.sharepoint.com; for OneDrive personal, the *.files.1drv.com host a refused download names
Google Drive oauth2.googleapis.com, www.googleapis.com
S3 the endpoint, and the SQS endpoint for a sync in Queue mode
SFTP, FTP the server
An index its database server, or every host of its cluster (each MongoDB host)
  • Local names are refused. localhost, *.localhost and *.local are refused before the allowlist is consulted, always in Production.
  • Private addresses need a platform administrator. A private, loopback or link-local address can be allowlisted only by a platform administrator, and OUTBOUNDSECURITY__ALLOWPRIVATENETWORKHOSTS=false forbids them for the whole deployment.
  • Plain FTP is off by default. It sends the password unencrypted, so it is refused, as HOST_NOT_ALLOWED, unless AISI__FTP__ALLOWPLAINFTP is set. The Portal labels such a connection with a warning.
  • A server's identity can be pinned. An SFTP host key or an FTPS certificate can be pinned on the connection. A server presenting another is refused, and the Portal shows what it presented so that you can compare it out of band before trusting it.
  • A Google key file cannot redirect AISI. The token address written in the key file is never used.

No local folders

No connection reads a folder on the platform's own disks, mounted network shares included. A storage the platform reads is always reached over a network protocol, under the controls above: credentials bound from the tenant's own secrets, a host on the tenant's outbound allowlist, and a pinned server identity where the protocol has one. A folder mounted on the platform's hosts would bypass all of them and be within reach of every tenant.


4. Who can read an index

AISI indexes storage that groups of people share. It does not read or record who may open each document at the storage, and it does not filter what it indexes by who will search it.

The index is the access boundary. Anyone who can reach an ESRA capability over an index can read every document in it. So index together only what the same people may read: a policy library in one index, HR files in another, not both in one.

Who reaches an index is then decided in ESRA, on the source created from it and the capabilities and exposures over that source:

  • Access to the capability. Its exposure's clients and its tool access policy decide who may call it at all.
  • Record conditions. The source's Result governance can return only the records whose fields match the caller's claims, such as the folder a document's path starts with. ESRA — security and governance describes them.
  • Already-filtered data. A source can also be defined over data that holds only what its readers may see.

5. Content held for review

Text read from a document is untrusted: a document can contain instructions addressed to a language model. AISI scans everything it extracts, OCR included, before indexing it.

  • A finding quarantines the document. It is not indexed, and the catalog records the classification PROMPT_INJECTION_DETECTED. The record keeps only the names and positions of the patterns found, never the text.
  • Releasing it is a recorded decision. In AISI → Documents, Release from quarantine (AISI Operate) indexes it anyway, and the document's summary panel and page show who released it and when, under Released by. The release covers that content only: if the file changes, it is scanned and judged again.
  • Model output is scanned too. A summary or generated title in which instructions are found is dropped and is never indexed. Metadata values a model returned are scanned as well, and one that fails is left empty.

6. Audit

Every change made in the Portal is recorded in the platform audit trail, with the user, the tenant, the subject and details that never include a secret value or document content.

Category Records
aisi-admin configuration: connection.create, .update, .update-credentials, .enable, .disable, .test, .delete; index.create, .update, .update-credentials, .update-processing, .update-metadata, .enable, .disable, .test, .provision (a verification too), .rebuild, .reindex, .reclassify (with the fields, source, scope and documents queued), .reclassify-cancel, .delete (with deleteRows: whether the rows it wrote are deleted); sync.create, .update, .delete (with removeDocuments: whether its documents are removed or kept)
aisi-operations operator actions: sync.collect-now, sync.resync, sync.pause, sync.resume, deletions.approve, deletions.discard, snapshot.cancel, document.retry, document.reindex, document.release, document.remove (an orphan removed from its index), documents.retry-bulk
aisi-sync what the worker did on its own, as aisi-worker: snapshot.started, .completed, .canceled; deletions.held; connection.auth-failed, connection.syncs-paused; subscription.created, .renewed, .removed, .degraded

A connection's records name the slots of its secrets, never their values.

Logs. AISI never logs document content, metadata values a model returned, credentials or connection strings, at any level. File names of quarantined documents appear only at Debug.


7. Push notifications

The one AISI address reachable without signing in is the webhook receiver that Microsoft, Google and MinIO call when push notifications are enabled. Each sync has its own unguessable address and secret. The secret is stored only as a hash, every refusal is the same empty 404, and nothing a caller sends is stored. AISI — push and queue notifications describes what to expose and what not to.