Skip to main content

Security architecture

Qry answers questions with data, so the questions that matter are whose permissions a query runs with, what the model is allowed to decide, and what happens when a check cannot be made. This page describes each, with its limits.

Every query runs as the person who asked​

A query started by a person — in a conversation, a notebook, a dashboard tile or an API call — goes through one secure service before it reaches the database. That service checks, in order:

  1. RBAC — the person's grants (direct and through groups) on the datasource, catalog, schema and table the query names. See RBAC.
  2. ABAC — attribute policies on tagged tables: row filters and column rules the query must respect. See ABAC.
  3. DAC — the per-module rules of SAP HANA datasources. See SAP modules.

If any check fails, the query does not run.

The model never chooses the user. The identity a tool acts with comes from the signed-in session, not from anything the model writes, so a prompt cannot make Qry act as someone else. Scheduled work runs with the scheduling person's current permissions and stops when they lose access.

Metadata fails closed. Search, the catalog and DataHub results are filtered through the same permission check; when a permission cannot be read, nothing is shown rather than everything.

The limit​

Qry checks the tables a statement names against the person's grants. It does not decide from the SQL whether a statement only reads, so the rights of the database account Qry connects with are the ceiling. Connect Qry with read-only accounts wherever people only need to read.

Credentials and secrets​

  • Datasource credentials are stored encrypted. The encryption key is derived from the installation's secret, which whoever installs Qry must set — the Helm chart has no default and will not render without one.
  • Notebook secrets are injected into the execution session as environment variables, never written into cells; PySpark cell output is scrubbed of them before it is stored.

Identity​

  • Single sign-on with Microsoft Entra ID (client secret or certificate) or Google.
  • Optional mapping of directory groups to Qry groups, refreshed at sign-in.
  • Personal tokens for messaging and the command line; each identifies exactly one person.

Where things run​

Each organisation has its own Qry installation and its own database. Models are reached through the organisation's own provider account (Anthropic, Azure AI Foundry, Google Vertex AI, OpenAI) or an endpoint it hosts. Python and notebook code runs in isolated Kubernetes pods in a separate namespace, with CPU, memory and time limits.

The software itself​

  • Containers run as an unprivileged user, with every Linux capability dropped and privilege escalation disabled.
  • Every release is scanned for vulnerabilities; a critical one with a fix available blocks the release.
  • Images are signed with Sigstore Cosign and published with an SPDX software bill of materials.
  • API responses carry no-store caching and content-type protection headers; HTTPS deployments add HSTS.