B/AWS

Grand Aurora: Tenant Isolation

Art Deco · focused identity view

One issuer, two application accounts, and independent authorization at each cell. The pooled path binds a validated tenant to a transaction; the dedicated path also checks its cell allowlist.

1 · Prompt

Authored brief · fictional system

Expand Grand Aurora identity/isolation. Show staff login, shared Cognito issuer, separate JWT APIs and same-account VPC Links/internal ALBs, private application membership checks, pooled Aurora row policies, and separate enterprise data. Do not assume that discovery, a JWT alone, or a client tenant header authorizes record access.Read full promptClose full prompt
Expand Grand Aurora identity/isolation. Show staff login, shared Cognito issuer, separate JWT APIs and same-account VPC Links/internal ALBs, private application membership checks, pooled Aurora row policies, and separate enterprise data. Do not assume that discovery, a JWT alone, or a client tenant header authorizes record access.

2 · Diagram

Why is a valid login token insufficient to access another hotel’s records?

Whole diagram fitted. For larger labels, turn off “Fit whole diagram” and pan, or open the full-size SVG.

Grand Aurora: Tenant Isolation: Hotel staff, Federated sign-in, Shared JWT API, Shared VPC Link, Internal shared ALB, Membership and RLS, Shared tenant records, Enterprise JWT API, Dedicated VPC Link, Internal tenant ALB, Enterprise allowlist, Enterprise records. Relationships and limits are explained below.
Download SVGOpen full drawing ↗Open native render ↗

Mermaid source

Download .mmd

Semantic content and gallery-only boundary/flow annotations stay in this file. The drawing treatment is applied after layout.

architecture-beta
%% Focused companion: pooled and dedicated cells validate the same issuer but enforce different tenant allowlists.
%% @boundary identityAccount account
%% @boundary identityRegion region
%% @boundary pooled account
%% @boundary primary region
%% @boundary pooledVpc vpc
%% @boundary dedicated account
%% @boundary dedicatedRegion region
%% @boundary dedicatedVpc vpc
group identityAccount(cloud)[Account: Control plane]
group identityRegion(cloud)[Region: Primary] in identityAccount
group pooled(cloud)[Account: Pooled production]
group primary(cloud)[Region: Primary] in pooled
group pooledVpc(cloud)[VPC: Shared workloads] in primary
group dedicated(cloud)[Account: Enterprise hotel]
group dedicatedRegion(cloud)[Region: Primary] in dedicated
group dedicatedVpc(cloud)[VPC: Dedicated workloads] in dedicatedRegion
service staff(lucide:users)[Hotel staff]
service login(aws:cognito)[Federated sign-in] in identityRegion
service pooledApi(aws:api-gateway)[Shared JWT API] in primary
service pooledLink(aws:api-gateway)[Shared VPC Link] in primary
service pooledAlb(aws:elb)[Internal shared ALB] in pooledVpc
service pooledApp(aws:fargate)[Membership and RLS] in pooledVpc
service pooledDb(aws:aurora)[Shared tenant records] in pooledVpc
service dedicatedApi(aws:api-gateway)[Enterprise JWT API] in dedicatedRegion
service dedicatedLink(aws:api-gateway)[Dedicated VPC Link] in dedicatedRegion
service dedicatedAlb(aws:elb)[Internal tenant ALB] in dedicatedVpc
service dedicatedApp(aws:fargate)[Enterprise allowlist] in dedicatedVpc
service dedicatedDb(aws:aurora)[Enterprise records] in dedicatedVpc
%% @edge staff login identity | Browser authenticates with the federated user pool; MFA and federation must be configured.
staff:R --> L:login
%% @edge login pooledApi identity | Browser presents access token; API validates issuer, audience, expiry and required scopes using cached keys.
login:R --> L:pooledApi
%% @edge login dedicatedApi identity | Same issuer may serve dedicated tenants, but this API has its own audience and cell authorization policy.
login:B --> L:dedicatedApi
%% @edge pooledApi pooledLink request | Authorized HTTP integration uses a VPC Link in the same account and region as its load balancer.
pooledApi:R --> L:pooledLink
%% @edge pooledLink pooledAlb request | Private integration reaches the internal ALB; no direct public app endpoint.
pooledLink:R --> L:pooledAlb
%% @edge pooledAlb pooledApp request | App derives subject from verified identity and validates selected hotel membership.
pooledAlb:R --> L:pooledApp
%% @edge pooledApp pooledDb request | Server-validated tenant context is transaction-local; non-owner database role and forced RLS enforce row policies.
pooledApp:R --> L:pooledDb
%% @edge dedicatedApi dedicatedLink request | Dedicated cell has its own same-account private integration.
dedicatedApi:R --> L:dedicatedLink
%% @edge dedicatedLink dedicatedAlb request | Private load balancer stays inside the enterprise account.
dedicatedLink:R --> L:dedicatedAlb
%% @edge dedicatedAlb dedicatedApp request | App rejects valid tokens for tenants not assigned to this cell.
dedicatedAlb:R --> L:dedicatedApp
%% @edge dedicatedApp dedicatedDb request | Separate credentials and database; no pooled database route is authorized.
dedicatedApp:R --> L:dedicatedDb

Reproduce this collection from the Beautiflow repository:

bun scripts/build-boring-diagrams.ts

Measured evidence

Full evidence JSON
Native geometry
0 findings across 8 measured checks
Styled render integrity
0 element, plain-label, ID or reference findings
Authored annotations
8 boundaries · 11 relationship meanings
AWS configuration
Not validated

These checks do not establish visual quality, every decorative mark, browser glyph ink, edge-label boxes or deployed AWS correctness. Architecture has guarded transforms, not automatic polish.

Source SHA-256

b5819e6fb604b0a15053b00f5f2d23abfd228c681e778c43a765547ce927f7fb
Read all 11 relationships

Line patterns distinguish requests, credentials, events, replication, configuration/control and recovery. Hover a styled connector for its meaning. Native layout preserves routes but does not include these gallery annotations.

Authored flow meanings, not deployed AWS configuration evidence
FromToKindMeaning
Hotel staffFederated sign-inidentityBrowser authenticates with the federated user pool; MFA and federation must be configured.
Federated sign-inShared JWT APIidentityBrowser presents access token; API validates issuer, audience, expiry and required scopes using cached keys.
Federated sign-inEnterprise JWT APIidentitySame issuer may serve dedicated tenants, but this API has its own audience and cell authorization policy.
Shared JWT APIShared VPC LinkrequestAuthorized HTTP integration uses a VPC Link in the same account and region as its load balancer.
Shared VPC LinkInternal shared ALBrequestPrivate integration reaches the internal ALB; no direct public app endpoint.
Internal shared ALBMembership and RLSrequestApp derives subject from verified identity and validates selected hotel membership.
Membership and RLSShared tenant recordsrequestServer-validated tenant context is transaction-local; non-owner database role and forced RLS enforce row policies.
Enterprise JWT APIDedicated VPC LinkrequestDedicated cell has its own same-account private integration.
Dedicated VPC LinkInternal tenant ALBrequestPrivate load balancer stays inside the enterprise account.
Internal tenant ALBEnterprise allowlistrequestApp rejects valid tokens for tenants not assigned to this cell.
Enterprise allowlistEnterprise recordsrequestSeparate credentials and database; no pooled database route is authorized.
Architecture assumptions & omissions
  • Identity lines show browser-carried credentials, not Cognito initiating calls into the APIs. Each API validates issuer, audience, expiry and scopes. VPC Link integrations and internal ALBs remain in their own account/region.
  • The app derives the subject from verified identity, checks selected-hotel membership and assigned-cell policy, and sets tenant context locally within a transaction. A client-supplied tenant ID is a selection, not evidence of entitlement.
  • Pooled PostgreSQL isolation assumes non-owner/non-BYPASSRLS roles, forced row policies, safe transaction pooling and tests covering raw SQL, background workers and administrative paths. The picture does not prove those controls.
  • Separate enterprise credentials/database/account reduce shared-data-plane exposure; the app still rejects other tenants. Identity federation, revocation, privileged operations and complete networking are not implementation artifacts here. This is a focused authored view of the overview’s cell aggregates.