AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Deploying Glean in Customer-Hosted Cloud (AWS/GCP): Enterprise Architecture, IAM Isolation, and Strict Data Residency Guide

Caitlin Millman · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

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:

  1. Blast Radius Containment: Eliminates privilege escalation vectors into adjacent production workloads, data warehouses, or core financial transaction systems.
  2. 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.
  3. Immutable Regional Boundary: The cloud region chosen at provisioning (e.g., us-east-1, eu-central-1, or asia-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:

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:

  1. Account Setup & Regional Selection: Create a new AWS account within AWS Organizations, attach an active billing account, and designate the target deployment region.
  2. 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.
  3. Mandatory Tag Policy Seeding: Provide organizational cost-center and governance tags (e.g., Environment:Production, DataClassification:Confidential) to Glean Solutions Engineering in the format tag1:value1--tag2:value2. These tags must be injected during bootstrapping; applying them retroactively is technically complex.
  4. 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 (518642952506 in us-east-1).
  5. CloudFormation Execution: Deploy the CloudFormation stack in the selected region. The customer enters the stack name (e.g., glean-bootstrap) and the assigned GleanInstanceName.
  6. 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:

  1. 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".
  2. 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.
  3. Bootstrap Service Account: Provision a dedicated Service Account with the Project Owner role and generate a private JSON service account key.
  4. 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.
  5. 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:


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 NameAssumed ByAuthentication MechanismOperational Scope & Permissions Boundary
glean-deployerGlean Central CI/CD SystemFederated 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-invokerGlean Workflow SchedulerFederated Web IdentityInvokes scheduled Lambda functions (cron_helper) to orchestrate recurring ML index optimization, graph pruning, and batch connector updates.
glean-viewerGlean Support EngineersAWS 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 EscalationBreak-Glass Cross-Account RoleTemporary, 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:


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):

  1. 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.
  2. Context Assembly: Relevant document passages, relationship graphs, and metadata are assembled into an augmented prompt context.
  3. 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
  1. 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.
  2. 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:

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:


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 DimensionGlean Hosted (Multi-Tenant SaaS)Customer-Hosted AWSCustomer-Hosted GCP
Data Residency BoundaryShared cloud tenancy within Glean cloud perimeter100% contained within customer AWS Account100% contained within customer GCP Project
Tenancy IsolationLogical tenant isolation at software layerPhysical cloud perimeter isolation (Dedicated VPC/K8s)Physical cloud perimeter isolation (Dedicated VPC/GKE)
Private Connector IngressRequires public reverse proxy or Glean On-Prem Connector agentNative AWS Transit Gateway (TGW) / PrivateLinkNative GCP Shared VPC / Cloud Interconnect
Primary LLM IntegrationGlean Universal Model Key (Auto routing)Amazon Bedrock (Claude/Nova) or Azure OpenAIGoogle Vertex AI (Gemini/Claude) or Azure OpenAI
Cross-Cloud InferenceHandled transparently by GleanStrictly prohibited for cloud-native modelsStrictly prohibited for cloud-native models
Runtime Security ToolingVendor managed (SOC 2, ISO 27001 reports provided)Customer deployable: Wiz, CrowdStrike, AWS GuardDutyCustomer 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 gatewaysCustomer cloud bill: compute, storage, GKE, BigQuery, egress
Maintenance & Patching100% automated by Glean SREAutomated by Glean CI/CD via glean-deployer IAM roleAutomated by Glean CI/CD via Service Account
Compliance ReadinessSOC 2 Type II, HIPAA, GDPRFINRA, SEC 17a-4, Swiss Banking Act, ITAR, FedRAMP alignmentEU 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

Stage 2: SCP and Pre-Flight Security Review

Stage 3: Bootstrap Stack Execution

Stage 4: Transit Networking and Connector Routing

Stage 5: BYOLLM and KMS Infrastructure Setup

Stage 6: Security Tooling Validation and Go-Live


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:

  1. 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.
  2. 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.
  3. 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.


References