Kroos can map and query your internal systems to answer employees, but only through access that is read-only, scoped, expiring, logged and revocable. Credentials never reach Kroos: it only gets a vault reference.
Two routes#
| Route | Verification | When to use |
|---|---|---|
| ROUA (recommended) | Verified: Kroos checks the audit report itself | New setups, or when you want independent verification |
| An equivalent method you already run | Owner-attested against required controls | You already have read-only roles, IAM, a PAM broker, data shares or scoped APIs |
ROUA#
ROUA (Read-Only User Account) is an open standard and free tool for creating standardized, expiring, audited read-only accounts for AI agents, demos and reviewers. Create the account with the ROUA tool, run its audit, and upload only the audit output:
curl -s -X POST https://kroos.ai/api/tenant/roua -H "authorization: Bearer kroos_sk_..." -H "content-type: application/json" \
-d '{"sourceName":"orders-db","engine":"postgresql","report":"PASS R1 no write privileges\nPASS T2 expiry set\n…"}'A source is usable while its latest audit passes and is under 7 days old (daily re-audit is recommended). Reports containing passwords or connection strings are refused. Links to the ROUA tool and guide are in Console → Employees.
Equivalent methods#
| Method | Examples | Live queries |
|---|---|---|
| Native read-only database role | PostgreSQL pg_read_all_data or SELECT grants, MySQL SELECT-only user, SQL Server db_datareader, MongoDB read, Oracle read-only user | Yes |
| Read replica or snapshot | RDS/Aurora replica or clone, Cloud SQL replica, Azure SQL geo-replica, nightly restore | Yes |
| Cloud IAM with short-lived credentials | AWS IAM role + RDS IAM auth, Google Cloud IAM + Cloud SQL IAM auth, Azure Entra ID managed identity + Reader | Yes |
| Privileged-access broker / dynamic secrets | HashiCorp Vault database secrets engine, CyberArk, Teleport, StrongDM, BeyondTrust, Delinea | Yes |
| Governed data share or secure views | Snowflake Secure Data Sharing, BigQuery authorized views, Databricks Unity Catalog / Delta Sharing, Redshift data sharing | Yes |
| Application API with read-only scopes | Salesforce read-only integration user, HubSpot private app, Zendesk/Jira read-only token, Microsoft Graph Read.All | Yes |
| Metadata-only export | information_schema, dbt manifest, catalog exports (DataHub, OpenMetadata, Collibra, Alation) | No (schema mapping only) |
| Replicated, masked sandbox | Fivetran or Airbyte into a masked schema, AWS DMS, Tonic/Delphix | Yes |
Controls#
Based on common least-privilege practice for non-human identities (NIST SP 800-53 AC-2/AC-6, CIS Controls 5–6, SOC 2 CC6).
| Control | Required |
|---|---|
| Read-only: can't insert, update, delete or change schema | Yes |
| Scoped to only what Kroos needs | Yes |
| Credentials expire in 90 days or less, or are issued just-in-time | Yes |
| A dedicated, non-shared identity used only by Kroos | Yes |
| Credentials stay in your vault; Kroos gets a reference | Yes |
| Every query or API call is logged on your side | Yes |
| Can be disabled immediately | Yes |
| Personal and secret fields masked, excluded or tokenized | Recommended |
| Reachable only from approved networks | Recommended |
| Statement timeouts, row or rate limits | Recommended |
Attest a method#
curl -s -X POST https://kroos.ai/api/tenant/access/attest -H "authorization: Bearer kroos_sk_..." -H "content-type: application/json" -d '{
"sourceName": "crm",
"method": "api_scoped",
"controls": { "read_only": true, "least_privilege": true, "time_bound": true, "unique_identity": true,
"credentials_in_vault": true, "audit_logging": true, "revocable": true,
"pii_protection": true, "network_restricted": false, "query_limits": true },
"evidence": "Salesforce integration user with a read-only profile; token rotates every 30 days.",
"attestedBy": "Ada Lovelace, Head of Data",
"days": 30
}'Method IDs: db_readonly_role, read_replica, cloud_iam, pam_broker, warehouse_share, api_scoped, metadata_export, replicated_sandbox. GET /api/tenant/access/methods returns the full catalog and your attestations.
- The attestation passes only if every required control is
true. - It lasts up to 90 days; re-attest before it expires.
- Evidence containing secrets is refused.
- Revoke with
POST /api/tenant/access/attestations/:id/revoke. - A fresh, passing ROUA audit for the same source takes precedence.
Explorer#
With access in place, the Explorer builds a reviewed map of your systems.
| Request | Purpose |
|---|---|
POST /api/tenant/explorer/schema | sourceName, export (information_schema.columns as CSV, TSV or JSON), optional department → a system map saved as a document pending review |
POST /api/tenant/explorer/query | sourceName, credentialRef (env:VAR on Kroos Node or aws-sm:<secret>), sql → read-only query, row-capped, personal and secret columns masked |
POST /api/tenant/explorer/check-sql | Check whether a query would be allowed |
GET /api/tenant/explorer/runs | History |
Live queries run on Kroos Node inside your network and need a database driver there. Every query passes a read-only parser, a row cap and the audit log, in addition to the database's own permissions.