StrataLake
A StrataBI Platform Module
Powered by Shaleio
Tier: Premium MX · module id stratalake · type multi_page_app (an app StrataBI renders from its own pages) · requires StrataBI · recommended with StrataForge, StrataChat and StrataIndex; optionally the Redshift Connector
StrataLake is governed data connections for StrataBI: register a source once, validate what it can verifiably do, grant it to roles and people, and let them and Guildmaster run bounded read-only queries through it. Data stays where it is. Each connection has one fixed way its data is authorized, and says which.
It is an optional module. Installing it adds one DynamoDB table and three Lambda functions in your own account and gives them no data access until you name what they may reach.
What you get
Open Apps → StrataLake. Three tabs:
| Tab | Purpose |
|---|---|
| Query | The connections you may use and who decides what each returns. List a connection's tables and columns, check a query, run it, and read the result, which is yours alone and kept for a short time. Shows who you are signed in as. |
| Connections | For administrators: store a profile, register a connection, validate it against the provider, switch it on or off. |
| Access & Audit | Grant a connection's use, by operation, to StrataBI roles and people. See who signs in under which name, end a person's sessions, and read this month's jobs and audit events. |
A connection is usable only when it is registered, switched on, validated at its current version and granted to the person asking. A changed connection is unusable until it is validated again.
How a connection is authorized
A connection has exactly one mode, set by an administrator. There is no fallback from one mode to another, on any error.
| Mode | Who authorizes the data | State |
|---|---|---|
service_role | The module's own AWS role (IAM, or Lake Formation grants to that role), behind StrataLake's grants. Used for Athena. | Runs in an AWS account: a query through a connection returned the same rows as the same SQL run directly in Athena. |
provider_service | One service identity at the provider, behind StrataLake's grants. | Built for the Redshift Connector (its named queries only) and a mock provider. Tested against stand-ins only. |
aws_tip | AWS, per person. | Not available: switched off, and it cannot be enabled. See Per-person enforcement. |
provider_delegated | An external provider, per person. | A contract only. A connection that names it is refused. |
The two modes that can be used read as one identity for every user. That is an application gate in front of a shared credential, not per-user enforcement, and StrataLake says so wherever a connection is shown. What differs between two people is whether StrataLake lets them use the connection, not which rows the source returns.
A query, in order
- The arguments are validated. Unknown fields are refused.
- The caller is taken from where the invoking service writes it, never from arguments, SQL or anything a model wrote.
- The grants are read now. With no grant for this connection and this operation, the answer is the same as for a connection that does not exist.
- The connection must be on, and its current version must hold a passed validation.
- The SQL is parsed, not pattern-matched: one statement, a query only, no writes anywhere in it, and every table it reads is one the caller declared and the connection allows. Values travel as bound parameters.
- The source runs it under the connection's profile (for Athena, in that profile's one workgroup) and its limits: rows, bytes scanned, time and concurrent queries.
- The result is stored once, for the person who asked, with an expiry.
- The audit records who, which connection, which mode and the provider's query id. It holds no SQL text, no parameter values and no rows.
A refusal at any step is the answer. Nothing retries through another connection, mode or role.
{"connection_id": "finance-shared-athena",
"assets": ["sales.orders"],
"sql": "SELECT program, sum(amount) AS amount FROM sales.orders WHERE period = ? GROUP BY program",
"parameters": ["2026-Q3"],
"limit": 500,
"purpose": "quarterly spend by program"}A query plan names no role, account, workgroup, endpoint, secret or credential mode: those come from the connection's administrator-approved profile and from nowhere else. A plan reads one connection; there are no joins across sources.
Results
- A query and its result belong to one person. Anyone else asking for either is told it does not exist.
- A result is refused once the person's access, the connection or the grants have changed, or its time has passed. Any change to anyone's grant ends everyone's stored results and open queries; people run the query again. That is deliberately blunt.
- What a model may read is the connection's policy, not the caller's choice. By default (
browser_only) an assistant learns only that there is a result; a connection may instead allow a bounded sample. Rows go in full only to a StrataBI tile the person runs. - Nothing is cached across users, and Athena's own result reuse is switched off for every query.
- A cost estimate needs a price you configure. Without one, cost is reported as unknown, never as zero.
Ask Guildmaster
With StrataLake installed, StrataForge finds its read function by name and offers Guildmaster nine tools, in StrataForge, in StrataChat and at the terminal (strataforge lake). The tool definitions and their guidance come from StrataLake itself.
Guildmaster drafts; you review and run. When you should see a query first, or it may be costly, Guildmaster drafts it with lake_draft_query. The plan is checked as you, exactly as lake_validate_plan checks it, and kept for 24 hours as a draft that only you can open. Nothing runs. The answer gives the most the query can cost and a link: StrataLake opens with the Query tab filled in and checked, marked as drafted by Guildmaster, and runs it only when you do. When you ask Guildmaster to run a query, it submits it as you (lake_submit_query).
Results are references. On a browser_only connection, the default, Guildmaster learns that a result exists and how to reach it, never the rows. A finished query answers with a link that shows you the rows in the table below the app, on your page only. Links on Guildmaster's cards open StrataLake beside the chat: in StrataForge's StrataBI view, or in StrataChat's Preview tab.
The tools ship in the release candidate. A run with a model in the test account has not been recorded yet.
| Tool | Does |
|---|---|
lake_list_connections | The connections you may use, each with one sentence saying who decides what it returns. |
lake_discover | The tables in a connection. |
lake_describe | A table's columns, types, comments and partition keys. |
lake_validate_plan | Checks a query plan. Nothing is executed. |
lake_draft_query | Checks a plan as you and keeps it as a draft for you to review and run in StrataLake. Nothing is executed. |
lake_submit_query | Runs a plan as you, under the connection's fixed mode. |
lake_query_status | Where a query stands, and its usage. |
lake_fetch | The bounded result of a finished query. |
lake_cancel | Cancels your own query. |
An assistant can do what its person may do through these tools, and nothing administrative: profiles, connections, validation and grants are for people, on the module's pages.
Review your LLM providers, including Amazon Bedrock, for data flight and sufficient isolation for your organization's needs when implementing AI. Learn more: Data protection in Amazon Bedrock
Who is asking
A connection that reads as one role for everyone still has to know who is asking, for its own grants and its audit. StrataLake accepts that in one of two strengths:
| Actor name | Platform assertion | |
|---|---|---|
| What arrives | The signed-in user's StrataBI actor name, written by the service that invoked the function. | A short-lived statement signed with a KMS key that only the platform's own roles may sign with. |
| Who the person is | A name: lowercased and cut at 32 characters. | A principal: a hash of the verified issuer and subject of their sign-in. |
| Can two people share it | Yes. | No. |
| Can someone who can invoke the function forge it | Yes. | No. |
The assertion path depends on an identity handoff in StrataBI itself, which is off by default. In Shaleio's test account it is on: the app's calls arrive with a platform assertion, and a missing, malformed or forged one is refused. With it on, a grant can name a principal, and a grant made to a name stops applying to anyone the moment two people present that name, until an administrator says whose it is.
Per-person enforcement is not available
Having AWS decide, per person, which rows and columns a query returns is what the aws_tip mode is for. It is not available. The mode is scaffolded and switched off, none of it has run against AWS, and the code keeps it unusable: a connection in this mode cannot pass validation. Until then, StrataLake decides who may use a connection, and the source decides what that connection's one identity may read.
It will be called supported only after it has been shown in a real account that two people with different grants get different rows from one query, and a third is denied.
What your IT prepares
StrataLake creates no workgroup, no Lake Formation grant, no resource share, no trust, no KMS key and no network path. It names what your IT created, checks that it is what the profile says, and puts its own gate in front.
For an Athena connection that means:
- A workgroup for StrataLake alone, with "override client-side settings" on, an encrypted result location used by nothing else, and a per-query data-scanned cutoff. Validation fails without the first and the last.
- Data access for the module's read role: IAM read on the table locations, or Lake Formation grants to that role. Grant the databases and tables the connection is for, nothing more.
- The workgroup, database and result-location names in the installation's settings.
Data another account shares through Lake Formation is reached like a local table, through a resource link your IT creates. That has not been tested: it needs a second account.
Close the other routes
A connection governs its own path. While another role can read the same table, the table is not governed, and installing StrataLake does not change that. In a default deployment the same tables can also be reached by StrataBI's own roles, the StrataForge gateway's role, modules built from the query and cache templates, and StrataMail's report runner. Before describing a source as governed, restrict each of those in IAM or Lake Formation, give the governed workgroup a result location nobody else can read, and keep sensitive connections on browser_only with short result lifetimes.
Install
StrataLake installs like any other module. The release candidates in Shaleio's test account were installed and updated this way:
stratactl install stratalake
stratactl uninstall stratalakeWith every answer left at its default the installation has one table, three functions and no data access of any kind. Removing the module deletes them; StrataBI, other modules, your roles and your data are untouched.
Settings
| Setting | Default | Turn on when |
|---|---|---|
admin_actors | none (required) | Always: at least one StrataBI user, or nobody can configure anything. |
athena_workgroups, athena_databases, athena_results_arns | none | A connection reads through Athena under the module's own role. |
data_read_arns | none | That role reads table data by IAM, without Lake Formation. |
lake_formation | off | Lake Formation grants data access to that role. |
athena_price_per_tb_usd | blank | You want a cost estimate. Blank reports cost as unknown. |
enable_external_connectors, redshift_connector_function | off | StrataLake fronts the installed Redshift Connector, or you try the mock provider. |
assertion_key_arns | none | StrataBI's identity handoff is on: callers are then identified by a principal, not by a name. |
enable_identity_handoff, enable_aws_tip | off | Leave off. Unverified scaffolding for per-person enforcement; not for an environment people rely on. |
Changing a setting re-applies the module. It never touches StrataBI, another module, your roles or any data.
AWS services
Everything below runs in your AWS account. It is created by the install unless noted.
| Service | Used for | Required |
|---|---|---|
| Amazon DynamoDB | One table: connections, profiles, validations, grants, jobs and audit. | Yes |
| AWS Lambda | api: the tools and read tiles; reaches data only through a connection. admin: profiles, connections, validation and grants; tiles only, never a model. identity: receives a person's token from the platform when the handoff is on; it can seal one and cannot open one. | Yes |
| Amazon S3 | Result artifacts in StrataBI's temporary area, under each owner's own prefix. | Yes |
| Amazon Athena, AWS Glue | The workgroups and databases your connections name. Created by you, not by the install. | No |
| AWS KMS | Your keys for platform assertions and the sealed token store. Identity handoff only; created by you. | No |
| AWS IAM | One scoped role per function. | Yes |
| Amazon CloudWatch Logs | Runtime logs: one line per call and per result, never SQL, values or rows. | Yes |
It also uses pieces of your existing StrataBI install: the system S3 bucket, the module registry and the user-roles table (read only).
What is built, and what is not
| State | |
|---|---|
| Connection registry and validation (an enforced workgroup with a scan cutoff) | Runs in an AWS account. |
Athena under the module's role (service_role) | Runs in an AWS account: results matched the same SQL run directly in Athena. |
| Grants by connection and operation, to people | Runs in an AWS account. Grants to roles: tested locally. |
| The read-only SQL guard: one parsed statement, declared tables only | Runs in an AWS account. Bound parameters and run-time limits: tested locally. |
| Jobs and results that belong to the person who ran them | Runs in an AWS account. |
| Callers identified by a signed platform assertion; forged identity refused | Runs in an AWS account, with StrataBI's identity handoff on. |
| The app: Query, Connections, Access & Audit | Runs in an AWS account. Downloads, Stop on a long query and the Connections forms: tested locally. |
| What a model may read, set per connection | Built, tested locally. |
The lake_* tools, drafts (lake_draft_query) and result links for Guildmaster | In the release candidate. Not yet run with a model in the account. |
| The Redshift Connector, wrapped (named queries only) | Built. Tested against a stand-in for the connector. |
Per-person enforcement by AWS (aws_tip) | Not available: scaffolded, unverified, switched off. |
| Per-person enforcement by an external provider | A contract only. |
| Tables shared across accounts with Lake Formation | Reached like a local table. Untested. |
| Other sources, such as Snowflake or PostgreSQL | Not part of StrataLake. |
| Joins across sources | Refused: one connection per query. |
Related
StrataIndex · Redshift Connector · StrataForge · Guildmaster · Authentication & SSO · Roles & access control · Modules
Shaleio