Request a demo
Docs

How InsightAIShield is put together

The pieces, the order to set them up in, a policy and an SDK call, the switches that matter, the roles, and the API behind every screen.

Overview

One engine, many enforcement points, one record

A Python (FastAPI) API, a React app and PostgreSQL for InsightAIShield’s own records (schema shield). Connectors read your sources; enforcement points hand each statement or prompt to the policy engine; every decision lands in the activity record that baselines, reviews, SIEM export and compliance evidence read.

  1. 1

    Add a source

    Host, database and user, with the credential as a secret reference (env://, aws-sm://, aws-kms://). Test the connection, then harvest and classify.

    Estate
  2. 2

    Write the policies

    Start from the discovery scout’s drafts or the policy author. Simulate, replay on recorded activity, run in monitor mode, then propose.

    A second lead activates
  3. 3

    Choose enforcement

    Point clients at the PostgreSQL or MySQL proxy, route apps and agents through the gateway or SDK, or ingest audit logs in monitor mode.

    Enforcement
  4. 4

    Connect identity and SIEM

    Map LDAP or OIDC groups and attributes to policies; add SIEM destinations; invite leads, analysts and administrators.

    Identity & SIEM
A policy

Grants and rules, as YAML

Immutable once versioned; exported and imported as YAML; evaluated location, store, field. Anything no policy allows is blocked.

code: pci_cardholder_data
name: Cardholder data
applies_to: {groups: [cards-ops, fraud-analysts, etl, dba]}
sources: [cards_mysql, lake]
mode: enforce                       # or monitor: effects recorded, never applied
grants:
  - {scope: location, target: cards_mysql, permissions: [read]}
rules:
  - {type: MASK, target: "class:card_number", params: {mode: keep_last, keep: 4, char: "*"}}
  - {type: BLOCK_FIELD, target: "class:card_cvv"}
  - {type: SQL_COMMAND, target: cards_mysql, params: {deny: [DELETE, DROP, TRUNCATE, UPDATE, ALTER]}}
  - {type: DISALLOW_JOIN, target: cards_mysql.cards.card, params: {with: [cards_mysql.cards.dispute]}}
The SDK

For apps and AI agents

The Python client sends SQL to the query gateway, prompts and responses to the AI gateway, and tool calls for a check before they run. It never holds a policy or a key: the server decides every call, and a refusal raises Blocked with the server’s reason.

from insightshield_sdk import Shield, Blocked

shield = Shield("https://shield.example.com", token="…")       # or api_key="…" (an agent acting as itself)
res = shield.query("core_banking", "select account_number, balance from accounts where customer_id = 100042")
res.rows, res.columns, res.decision, res.sql                       # masked / tokenized as the policies say
safe = shield.guard_prompt(prompt, model="us.anthropic.claude-sonnet-4-5")   # the masked prompt, or Blocked
shield.check_tool("query_gateway", source="core_banking", sql="…")  # before an MCP tool runs
Configuration

The settings that matter

Set in the environment of the API.

VariableWhat it sets
INSIGHT_DATABASE_URL, INSIGHT_DATABASE_SCHEMAThe PostgreSQL connection for InsightAIShield’s own records, and its schema (shield)
SHIELD_AGENTS_LLM, SHIELD_COPILOT_LLMWhether the agents and the copilot use a language model; 0 runs their deterministic fallbacks, as in the demo
SHIELD_AGENTS_MAX_LEVELThe tenant’s autonomy ceiling; confirming, activating, revoking, sending and deciding stay at L2 whatever it says
SHIELD_TOKEN_KEYWhere a token key’s reference resolves in the demo (env://SHIELD_TOKEN_KEY); in production a secret store or KMS reference
SHIELD_DETOKENIZE_LIMIT, SHIELD_DETOKENIZE_PERIOD_MINUTESThe detokenize allowance per person: 1,000 tokens per 60 minutes by default
SHIELD_SIEM_LIVELets released SIEM batches really leave, in production; otherwise every release is a dry run
SHIELD_PROXY_AUTOSTARTWhether the wire proxies start with the API
Roles

Who can do what

Through the identity service or your SSO.

RoleIn the demoWhat they do
Analyst (member)Avery BrooksWorks anomalies and incidents, answers prepared decisions, asks the copilot, requests detokenization
Data-security lead (curator)Jordan EllisWrites and proposes policies, confirms classifications, runs reviews and signs off evidence; approves what another lead proposed, never their own
AdministratorSam RiveraEverything a lead does, and administers the tenant; in the demo, the second pair of eyes on Jordan’s proposals
API

Every screen is an API call

Under /api/shield, with OpenAPI at /docs. A selection:

AreaEndpoints
Estate & discoveryGET /sources GET /sensitive-map POST /columns/{guid}/confirm
PoliciesGET /policies POST /policies/{code}/versions/{v}/replay POST /policies/{code}/versions/{v}/approve GET /policies/export.yaml
EnforcementPOST /gateway/query POST /monitor/{code}/ingest POST /enforcement/{code}/start
TokenizationGET /vault GET /formats POST /keys/{code}/rotate POST /detokenize
AI gatewayPOST /ai/scan POST /ai/tool-check GET /ai/events
DetectGET /activity POST /anomalies/scan GET /baselines/{principal} GET /access/findings
ReportGET /compliance/{framework}/export.pdf GET /siem/preview GET /posture

Plan a deployment with us

Connecting sources and choosing enforcement points is a deployment step we do with you, in your cloud.

Request a demo