For Chief Information Security Officers (CISOs), Principal Cloud Architects, and compliance directors in financial services, healthcare, defense, and heavily regulated multinationals, deploying enterprise AI search presents a fundamental dilemma. Modern generative enterprise search systems like Glean must index the organization's entire digital nervous system—ranging from source code repositories and patent filings to confidential board minutes, payroll records, and employee personally identifiable information (PII).
In multi-tenant SaaS deployments, indexing enterprise data requires synchronizing metadata, vector embeddings, and raw document chunks to vendor-managed cloud tenancies. For organizations governed by SEC Rule 17a-4, FINRA, HIPAA, GDPR Chapter V, Swiss Banking Act Article 47, or strict internal data sovereignty mandates, transferring enterprise intellectual property across third-party SaaS boundaries is a regulatory non-starter.
Glean resolves this architectural impasse through its Customer-Hosted Cloud deployment model (historically termed Cloud-Prem). In this model, Glean’s entire platform—including search indexing clusters, vector databases, the Enterprise Knowledge Graph, connectors, and caching layers—is deployed within an isolated, single-tenant cloud account or project owned and controlled entirely by the customer on Amazon Web Services (AWS) or Google Cloud Platform (GCP).
At 365Finds, our institutional position is definitive: For Tier-1 regulated enterprises and security-first organizations, Glean Customer-Hosted is the gold standard for enterprise AI search. It effectively eliminates multi-tenant co-location risks and satisfies strict data residency requirements, provided the enterprise is prepared to absorb the additional cloud infrastructure footprint ($3,000 to $10,000+ per month in compute and storage) and operational discipline required to manage cloud-native networking, role-assumption trust policies, and Bring Your Own Large Language Model (BYOLLM) configurations.
This comprehensive guide details the network topology, IAM privilege boundaries, bootstrapping procedures, runtime auditing mechanisms, and LLM inference integrations required to successfully execute and pass security review for a Customer-Hosted Glean deployment on AWS or GCP.
1. Architectural Blueprint and Tenancy Isolation
Unlike lightweight AI search add-ons that run simple container scripts, customer-hosted Glean is an enterprise-grade distributed system. It encapsulates Amazon Elastic Kubernetes Service (EKS) or Google Kubernetes Engine (GKE), distributed OpenSearch / vector indexing tiers, relational metadata storage, asynchronous data streaming engines (Apache Flink), and orchestration microservices.
Tenancy Boundary: Empty Account / Project Requirement
Glean mandates deployment into a dedicated, freshly created cloud account (AWS Account) or isolated project (GCP Project). This isolation serves three architectural objectives:
- Blast Radius Containment: Eliminates privilege escalation vectors into adjacent production workloads, data warehouses, or core financial transaction systems.
- Frictionless Compliance Auditing: Enables independent security tooling (AWS GuardDuty, AWS Security Hub, GCP Security Command Center) and billing attribution without tagging collisions or mixed-state audit logs.
- Immutable Regional Boundary: The cloud region chosen at provisioning (e.g.,
us-east-1,eu-central-1, orasia-northeast1) houses 100% of persisted data, embeddings, and indices. Moving an established tenant to another geographic region requires a complete infrastructure teardown and re-index.
Network Topology: Private Connectivity and Transit Networks
Enterprise knowledge is rarely confined to public SaaS endpoints; it resides across on-premises SharePoint farms, self-hosted Jira/GitLab servers, Confluence Data Centers, and file servers sitting deep inside private corporate subnets.
To enable crawling without exposing internal data sources to the public internet, Glean employs a transit network design:
- Core Glean VPC: Configured by default with a
10.1.0.0/16CIDR block holding the search cluster, ingestion workers, and vector datastores. - Transit Subnet / Shared Transit Gateway (TGW): The enterprise provisions an isolated
/26non-overlapping RFC 1918 CIDR block. Glean establishes cross-account attachment to an AWS Transit Gateway (TGW) via AWS Resource Access Manager (RAM) or connects via GCP Shared VPC / VPC Network Peering. - Local PrivateLink & VPC Endpoints: All interactions between Glean microservices and cloud provider services (Amazon S3, Amazon ECR, AWS KMS, AWS Secrets Manager, Bedrock, or GCP Cloud Storage) transit private VPC interface and gateway endpoints. Data never traverses the public internet.
flowchart TB
subgraph Enterprise_Network ["Enterprise Private Network (On-Premises / Corporate VPC)"]
CorporateWorkloads["Private Connectors: Jira Data Center, GitLab, On-Prem SharePoint, SMB Shares"]
TGW["AWS Transit Gateway / GCP Shared VPC"]
CorporateWorkloads <--> TGW
end
subgraph Glean_Customer_Account ["Customer-Hosted Cloud Perimeter (Dedicated AWS Account / GCP Project)"]
subgraph Transit_Network ["Transit VPC (/26 Dedicated CIDR)"]
TGW_Attachment["TGW Attachment / Network Gateway Router"]
end
subgraph Glean_VPC ["Glean Main VPC (10.1.0.0/16)"]
Ingestion["Data Ingestion & Permission Sync Workers"]
K8s_Cluster["Container Engine (EKS / GKE)"]
Search_Graph["Enterprise Knowledge Graph & Vector Engine"]
Ingestion --> K8s_Cluster
K8s_Cluster --> Search_Graph
end
subgraph Cloud_Native_Storage ["Encrypted Cloud Storage (CMK / Default KMS)"]
S3_GCS["S3 / GCS Buckets (Public Access Blocked, EBS Encrypted)"]
end
subgraph Local_LLM_Inference ["Zero Data Retention Inference"]
LLM_Engine["AWS Bedrock / GCP Vertex AI (Private VPC Endpoint)"]
end
end
TGW <--> TGW_Attachment
TGW_Attachment <--> Glean_VPC
Search_Graph <--> Cloud_Native_Storage
K8s_Cluster <--> Local_LLM_Inference
2. Infrastructure Bootstrapping: AWS vs. GCP
Provisioning customer-hosted Glean relies on declarative orchestration. Glean provides foundational bootstrapping artifacts that establish baseline connectivity, after which Glean's central deployment pipeline builds out the application stack.
Deployment Process on AWS
On AWS, bootstrapping is executed via a Glean-provided CloudFormation template (glean-cloudformation-template.yaml). The deployment follows a six-phase workflow:
- Account Setup & Regional Selection: Create a new AWS account within AWS Organizations, attach an active billing account, and designate the target deployment region.
- Organization SCP Verification: Run the Glean Service Control Policy (SCP) Checker script. Many enterprises enforce global SCPs that disable specific IAM actions (such as
iam:CreateRole,iam:PassRole) or block unlisted AWS regions. The SCP checker detects policy conflicts prior to stack instantiation. - Mandatory Tag Policy Seeding: Provide organizational cost-center and governance tags (e.g.,
Environment:Production,DataClassification:Confidential) to Glean Solutions Engineering in the formattag1:value1--tag2:value2. These tags must be injected during bootstrapping; applying them retroactively is technically complex. - Access Registration with Glean Central: Share the AWS Account ID, Account Name, and selected region with Glean. Glean authorizes the customer account to pull container images and AMIs from Glean’s central repository (
518642952506inus-east-1). - CloudFormation Execution: Deploy the CloudFormation stack in the selected region. The customer enters the stack name (e.g.,
glean-bootstrap) and the assignedGleanInstanceName. - Automated Tenant Build: The bootstrap template creates the initial IAM roles and triggers a notification to Glean’s central orchestration engine. Glean automates the deployment of the EKS cluster, worker nodes, transit networking, and application microservices.
Deployment Process on GCP
On Google Cloud Platform, the bootstrapping mechanism utilizes Google Cloud Resource Manager and Service Account delegation:
- Project Creation under Organization: Create a dedicated project with standard naming (e.g.,
glean-{company}-prod). The project must be created under the enterprise’s Google Workspace organization node; Glean’s build pipeline rejects projects created under "No Organization". - Billing & API Enabling: Link the cloud billing account and verify quota allocations for Google Compute Engine (GCE), Google Kubernetes Engine (GKE), and Cloud Spanner/Storage.
- Bootstrap Service Account: Provision a dedicated Service Account with the
Project Ownerrole and generate a private JSON service account key. - Hand-off to Glean: Securely transmit the GCP Project ID, Project Number, primary Zone (e.g.,
us-east1-b), and the Service Account JSON key to Glean Solutions Engineering. - Automated Infrastructure Build: Glean leverages Terraform and Cloud Deployment Manager to automatically instantiate VPC subnets, GKE nodepools, BigQuery tables, Cloud Storage buckets, and security controls.
Hard Security Baseline Configurations
During initial bootstrapping on both platforms, Glean enforces strict infrastructure guardrails:
- Default Storage Encryption: AWS EBS volume encryption and GCP Persistent Disk customer encryption are enabled globally across all disks.
- Account-Wide S3 / GCS Public Access Block: An immutable account-level block prevents any S3 or GCS bucket from exposing public endpoints or ACL permissions.
- Hardened Compute AMIs: EKS worker nodes utilize AWS-managed Bottlerocket AMIs or Glean-hardened Ubuntu LTS minimal AMIs, stripped of unnecessary utilities, compilers, and listening daemon processes.
3. Operational Boundary and IAM Least-Privilege Trust
A primary concern during enterprise vendor risk assessments is: Can Glean engineers access our confidential corporate data?
In a Customer-Hosted deployment, the separation between Glean's maintenance operations and customer data access is governed by cryptographic IAM role assumption. Glean does not issue, generate, or accept static IAM access keys (AKIA...). All operational interactions occur through short-lived, audited role switching.
| IAM Role Name | Assumed By | Authentication Mechanism | Operational Scope & Permissions Boundary |
|---|---|---|---|
glean-deployer | Glean Central CI/CD System | Federated Google OIDC (Web Identity) | Non-human automation role. Triggers deploy_build Lambda functions, executes infrastructure upgrades, inspects ELB/ACM status for TLS renewal. No interactive console access. |
cron-helper-invoker | Glean Workflow Scheduler | Federated Web Identity | Invokes scheduled Lambda functions (cron_helper) to orchestrate recurring ML index optimization, graph pruning, and batch connector updates. |
glean-viewer | Glean Support Engineers | AWS AssumeRole from Glean Account (518642952506) | Read-only inspection of CloudWatch metrics, EC2 states, EKS cluster health, and ELB status. Cannot read OpenSearch indices, relational DB contents, or S3 documents. |
GleanAdmin (Optional) | Glean Tier-3 Escalation | Break-Glass Cross-Account Role | Temporary, elevated maintenance role required only for kernel patching or catastrophic cluster failures. Can be locked behind customer-managed approval workflows. |
The Google OIDC Cross-Account Trust Mechanism
For AWS deployments, Glean utilizes OpenID Connect (OIDC) identity federation rather than static IAM users. The trust policy for glean-deployer explicitly restricts assumption to Glean’s central Google service account:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "accounts.google.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"accounts.google.com:aud": "GLEAN_CENTRAL_OAUTH_CLIENT_ID"
}
}
}
]
}
This ensures that neither individual Glean contractors nor rogue internal users can assume deployment authority; only verified Glean CI/CD build runners executing authenticated deployment manifests can trigger stack modifications.
Security Tooling, Runtime Sensors, and Vulnerability Visibility
Because the customer owns the cloud account, internal security operations teams retain full sovereignty over threat detection and runtime telemetry:
- Agentless CSPM: Enterprise Cloud Security Posture Management platforms (Wiz, Prisma Cloud, Orca) integrate natively via standard read-only IAM audit roles.
- Runtime Host Sensors: Glean natively supports deploying CrowdStrike Falcon and Wiz runtime sensors directly onto the underlying Linux compute instances across AWS and GCP.
- Bi-Weekly Vulnerability Transparency: Glean delivers bi-weekly application releases. With every release, Glean exports an authoritative vulnerability report (in both interactive HTML and structured CSV formats) directly into the customer's dedicated
release-notesS3/GCS bucket. This report maps all container images against Common Vulnerabilities and Exposures (CVEs), distinguishing false positives from prioritized upstream remediations.
4. LLM Inference Architecture: BYOLLM and Zero Data Retention
When a knowledge worker enters a search prompt or executes a Glean Assistant workflow, Glean performs retrieval-augmented generation (RAG):
- Access-Aware Retrieval: Glean queries the single-tenant Enterprise Graph, enforcing real-time document-level Access Control Lists (ACLs) derived from Okta/IdP and native source permissions.
- Context Assembly: Relevant document passages, relationship graphs, and metadata are assembled into an augmented prompt context.
- Model Inference: The prompt is dispatched to a Large Language Model for synthesis and answer formatting.
The handling of this third step defines whether data residency is truly preserved.
The Critical Model Key Distinction
┌────────────────────────────────────────────────────────────────────────┐
│ LLM Key Architectural Models │
└────────────────────────────────────────────────────────────────────────┘
Option A: Glean Universal Model Key (Glean-Managed)
[Glean VPC] ─── Encrypted TLS ───> [Glean-Contracted LLM Endpoints]
• Contractual Zero Data Retention (ZDR)
• Automated model routing (Auto Mode)
• Egress leaves customer cloud perimeter
Option B: Customer Key / BYOLLM (Enterprise Data Residency Mandate)
[Glean VPC] ─── PrivateLink ─────> [Customer-Owned Bedrock / Vertex AI]
• 100% Data Residency in customer cloud
• Customer-controlled KMS encryption keys
• Zero data leaves cloud boundary / region
- Glean Universal Model Key (Glean-Managed): Glean manages model endpoints across multiple providers (OpenAI, Anthropic, Azure). While protected by enterprise Zero Data Retention (ZDR) agreements, inference traffic leaves the customer's cloud boundary to reach the provider API.
- Customer Key (Bring Your Own LLM / BYOK): The customer provisions model endpoints inside their own cloud provider account (Amazon Bedrock on AWS, Google Vertex AI on GCP, or Azure OpenAI). Glean calls these endpoints directly using customer credentials or IAM roles.
The Cross-Cloud Egress Trap
A frequent architectural error made during preliminary planning is assuming that a customer-hosted instance on AWS can route inference prompts to Google Vertex AI, or that a GCP-hosted Glean instance can connect to Amazon Bedrock.
Glean explicitly enforces strict cloud pairing for cloud-hosted BYOLLM providers:
- Customer-Hosted AWS: Supports Amazon Bedrock (Claude 3.5 Sonnet, Claude 3 Opus, Amazon Nova) via AWS PrivateLink and IAM role assumption (
BedrockInvokeModelRole). Vertex AI is not supported. - Customer-Hosted GCP: Supports Google Vertex AI (Gemini 1.5 Pro, Claude on Vertex) via native Google Cloud APIs. Amazon Bedrock is not supported.
- Third-Party Direct APIs (OpenAI, Azure OpenAI, Direct Anthropic): Supported on both AWS and GCP customer-hosted instances via HTTPS egress, provided corporate security policies permit external API calls.
365Finds Implementation Rule: If strict data residency dictates that enterprise data must never leave AWS, you must deploy Glean on AWS and leverage Amazon Bedrock via PrivateLink. Attempting to bridge AWS Glean to Google Vertex AI introduces cross-cloud latency, complex egress billing, and instantly breaks the regulatory perimeter by shipping sensitive prompt chunks across hyperscalers.
Zero Data Retention (ZDR) Guarantees
In a validated BYOLLM configuration using Amazon Bedrock or Google Vertex AI:
- No Training on Enterprise Data: Prompts and generated completions are never logged by the model vendor to fine-tune foundational models.
- Ephemeral Processing: Prompts are processed strictly in volatile memory. No request or response payloads are written to non-volatile disk logs by the hyperscaler.
- Customer-Managed Encryption (CMEK): Payloads during transit are encrypted with Customer Managed Keys in AWS KMS or GCP Cloud KMS, ensuring end-to-end cryptographic control.
5. Comparative Evaluation: Customer-Hosted vs. Glean SaaS
To assist enterprise leadership in making an informed commercial and operational decision, 365Finds has benchmarked the structural differences between Glean’s standard SaaS deployment and the Customer-Hosted Cloud model:
| Evaluation Dimension | Glean Hosted (Multi-Tenant SaaS) | Customer-Hosted AWS | Customer-Hosted GCP |
|---|---|---|---|
| Data Residency Boundary | Shared cloud tenancy within Glean cloud perimeter | 100% contained within customer AWS Account | 100% contained within customer GCP Project |
| Tenancy Isolation | Logical tenant isolation at software layer | Physical cloud perimeter isolation (Dedicated VPC/K8s) | Physical cloud perimeter isolation (Dedicated VPC/GKE) |
| Private Connector Ingress | Requires public reverse proxy or Glean On-Prem Connector agent | Native AWS Transit Gateway (TGW) / PrivateLink | Native GCP Shared VPC / Cloud Interconnect |
| Primary LLM Integration | Glean Universal Model Key (Auto routing) | Amazon Bedrock (Claude/Nova) or Azure OpenAI | Google Vertex AI (Gemini/Claude) or Azure OpenAI |
| Cross-Cloud Inference | Handled transparently by Glean | Strictly prohibited for cloud-native models | Strictly prohibited for cloud-native models |
| Runtime Security Tooling | Vendor managed (SOC 2, ISO 27001 reports provided) | Customer deployable: Wiz, CrowdStrike, AWS GuardDuty | Customer deployable: Wiz, CrowdStrike, Security Command Center |
| Infrastructure Cost (AWS/GCP) | $0 (Included in per-user SaaS license fee) | Customer cloud bill: compute, OpenSearch, EKS, NAT gateways | Customer cloud bill: compute, storage, GKE, BigQuery, egress |
| Maintenance & Patching | 100% automated by Glean SRE | Automated by Glean CI/CD via glean-deployer IAM role | Automated by Glean CI/CD via Service Account |
| Compliance Readiness | SOC 2 Type II, HIPAA, GDPR | FINRA, SEC 17a-4, Swiss Banking Act, ITAR, FedRAMP alignment | EU Data Sovereignty, HIPAA, FINRA, GDPR Chapter V |
6. Practical Implementation Guide: 6-Stage Rollout Checklist
For cloud engineering and security teams tasked with delivering a Customer-Hosted deployment, follow this sequenced implementation roadmap:
flowchart LR
S1["1. Cloud Account & Organization Isolation"] --> S2["2. SCP & Region Verification"]
S2 --> S3["3. Bootstrap Stack Execution"]
S3 --> S4["4. Transit Network & Connector Peering"]
S4 --> S5["5. BYOLLM & KMS Infrastructure"]
S5 --> S6["6. Security Validation & Go-Live"]
Stage 1: Cloud Account & Organization Isolation
- Create a dedicated, clean AWS Account or GCP Project linked to the corporate master billing account.
- Verify GCP project is anchored directly under the corporate Google Workspace Organization node (not "No Organization").
- Define global resource tags (
Environment,Department,CostCenter,DataClassification) and communicate them to Glean Solutions Engineering.
Stage 2: SCP and Pre-Flight Security Review
- Execute the Glean SCP Checker script against the dedicated AWS account to identify policy restrictions on IAM actions (
iam:CreateRole,iam:PassRole,iam:AttachRolePolicy). - Confirm availability of required cloud compute instances (e.g., memory-optimized node types) and local Bedrock/Vertex AI model availability in the chosen deployment region.
- Lock the target deployment region. Ensure all technical stakeholders understand that this decision is architecturally immutable post-deployment.
Stage 3: Bootstrap Stack Execution
- Receive authorization confirmation from Glean that the customer account ID has been added to Glean's central ECR/image registry (
518642952506). - Deploy
glean-cloudformation-template.yamlin AWS or provision the bootstrap Service Account in GCP. - Verify creation of
glean-deployer,cron-helper-invoker, andglean-viewerIAM roles. Verify trust policy conditions match Glean’s Google OIDC client ID.
Stage 4: Transit Networking and Connector Routing
- Reserve a private
/26non-overlapping RFC 1918 CIDR range for transit networking. - Share corporate AWS Transit Gateway with the Glean account principal (
arn:aws:iam::{glean-account-id}:root) via AWS RAM. - Accept TGW attachment in the Glean transit VPC, configure routing table entries pointing to internal connector subnets, and restrict security groups.
- Verify bidirectional reachability from Glean worker subnets to internal SharePoint, Jira, and GitLab endpoints.
Stage 5: BYOLLM and KMS Infrastructure Setup
- In AWS, enable Amazon Bedrock model access (Anthropic Claude 3.5 Sonnet / Haiku / Nova) in the target region.
- Provision the
BedrockInvokeModelRoleIAM role allowing Glean worker nodes to invoke Bedrock APIs over internal VPC endpoints. - If using Customer-Managed Keys (CMK), verify KMS key policies allow necessary encryption/decryption operations for EKS EBS storage and S3 buckets.
Stage 6: Security Tooling Validation and Go-Live
- Deploy Wiz or CrowdStrike Falcon runtime sensors across compute instances if mandated by organizational policy.
- Verify AWS CloudTrail or GCP Cloud Audit Logs capture all role assumption events from
glean-deployerandglean-viewer. - Ingest the initial bi-weekly vulnerability report from the
release-notesS3/GCS bucket and cross-reference with internal vulnerability scanners. - Hand over administrative access to enterprise application owners to configure Single Sign-On (SAML/OIDC with Okta/Entra ID) and initiate connector indexing.
7. 365Finds Institutional Judgment and Commercial Recommendation
Deploying enterprise AI is fundamentally an exercise in risk balancing. Multi-tenant SaaS search products offer rapid time-to-value and zero cloud infrastructure management, but they force compliance officers to accept external data replication, shared vector infrastructure, and potential exposure during vendor-side cross-tenant vulnerabilities.
For organizations managing mission-critical IP, healthcare records, or non-public financial information, 365Finds recommends Customer-Hosted Glean as the benchmark architecture.
Critical Commercial Takeaways:
- Budget for Cloud Infrastructure TCO: Customer-Hosted Glean is not a zero-cost infrastructure footprint. In addition to Glean’s software subscription, expect your cloud infrastructure bill (EKS/GKE nodes, OpenSearch clusters, vector storage, NAT traffic, and backup snapshots) to run between $35,000 and $120,000 annually, depending on document volume, user concurrency, and crawl frequency.
- Commit to Cloud Consistency: Align your deployment cloud with your primary identity and collaborative repository. If your data ecosystem is centered around AWS (Amazon S3, Confluence on AWS, internal code in AWS VPCs), deploy Glean on AWS with Amazon Bedrock. If your organization is built on Google Workspace, BigQuery, and GCP services, deploy Glean on GCP with Vertex AI. Avoid hybrid workarounds that attempt to bridge cross-cloud LLM inference.
- Audit the Boundary, Not the Code: Because Glean continuously delivers algorithmic improvements and security patches through
glean-deployer, enterprises should resist the urge to lock down the platform into a static, unpatchable "air-gapped" silo. Treat the deployment as a managed black box within your walled garden: enforce strict egress controls, monitor all IAM role switching via CloudTrail, install runtime EDR sensors, and review the bi-weekly CVE reports.
When engineered correctly according to this framework, Customer-Hosted Glean provides the optimal enterprise compromise: the state-of-the-art search relevance and generative intelligence of modern AI, anchored entirely within the immutable legal and operational security perimeter of your own cloud.