← Back to Pull requests

GCP PSC for serverless #9618

Open
shainaraskas opened this pull request with 476 lines diff across 12 files
View on GitHub
shainaraskas shainaraskas commented on Nov 24, 2026 22:10 UTC
Author

Summary

Fixes https://github.com/elastic/docs-content-internal/issues/916

Key changes

Expands the GCP Private Service Connect guide to include Serverless. It adds tier requirements, Service Attachment URIs and private zone DNS names from the metadata API, endpoint and DNS setup, connection tests, and policy association steps.
Adds regional availability warnings to the GCP guide due to limited avail at launch: at the top of the page, in the considerations, in the limitations, and above the region list (let me know if this is overkill).
Updates the network security API quickref with the psc_endpoint filter type for Serverless and GCP region metadata.

Supporting changes

Updates Private connectivity so that AWS, Azure, and GCP apply to both ECH and Serverless. The provider table is now a list because the applicability column no longer distinguishes providers.
Changes "Serverless supports AWS and Azure only" so that it includes GCP in:
Network security
Differences from other Elasticsearch offerings
Serverless overview
Security → Managed security in Elastic Cloud in the ecloud-security snippet
Security → Communication and network security in the cluster-communication-network snippet
Security → Security features by deployment type in the cluster-comparison snippet

Cleanup changes

Makes the setup step tables consistent on the AWS, Azure, and GCP guides
Marks the Connectivity step (private connectivity or remote cluster) as ECH only using a tag
Puts the AWS, Azure, and Google Cloud metadata examples in the API quickref in tabs
Removes a duplicate find-endpoint include from the GCP connection test
missing ECH tags on the SSO workaround section (serverless SSO works fine) - changed in other spots in https://github.com/elastic/docs-content/pull/7499
missing record-keeping case for creating policies (GCP + AWS only)

Todo

Add more GCP regions when they are available

  • Remaining setup and page structure debt in https://github.com/elastic/docs-content-internal/issues/2247
  • Generative AI disclosure

    1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?

  • [X] Yes

  • No
  • Tool(s) and model(s) used: Claude Code, Claude Sonnet 5.5

    Diff: 476 lines (+348 / -128) across 12 files Reviewer: wajihaparvez Review duration: 10148m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.56) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 476 lines diff across 12 files
    0.56
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    90%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.369
    Real PR Conversation Timeline
    9 items
    github-actions[bot] github-actions[bot] commented on Nov 24, 2026 22:10 UTC
    Bot

    <!-- docs-pr-ai-menu:start -->

    Elastic Docs AI PR menu

    Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started. <!-- docs-pr-ai-menu:docs-review -->
  • Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

    <!-- docs-pr-ai-menu:end -->

    github-actions[bot] github-actions[bot] commented on Nov 24, 2026 22:25 UTC
    Bot

    ✅ Elastic Docs Style Checker (Vale)

    No issues found on modified lines!

    ---

    The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

    <!-- Sticky Pull Request Commentelastic-vale-results -->

    wajihaparvez wajihaparvez commented on code on Nov 26, 2026 20:41 UTC
    Code Review
    deploy-manage/security/private-connectivity-aws.md:1
    @@ -202,7 +202,7 @@ This limitation does not apply to [cross-region PrivateLink connections](#ec-aws
         :screenshot:
         :::
     
    -    The security group for the endpoint should, at minimum, allow for inbound connectivity from your instances' CIDR range on ports 443 and 9243. Security groups for the instances should allow for outbound connectivity to the endpoint on ports 443 and 9243. If you use this endpoint for remote cluster traffic to an {{ech}} deployment, also allow port `9443` or `9400`, depending on the security model you configure.
    +    The security group for the endpoint should, at minimum, allow for inbound connectivity from your instances' CIDR range on ports 443 and 9243. Security groups for the instances should allow for outbound connectivity to the endpoint on ports 443 and 9243. If you use this endpoint for remote cluster traffic to an {{ech}} deployment, also allow port `9443` or `9400`, depending on the security model you configure.

    Should this be more prominent? Maybe you could move it up

    wajihaparvez wajihaparvez commented on code on Nov 26, 2026 20:47 UTC
    Code Review
    deploy-manage/security/private-connectivity-gcp.md:1
    @@ -5,55 +5,81 @@ mapped_pages:
     applies_to:
       deployment:
         ess: ga
    +  serverless: ga
     products:
       - id: cloud-hosted
    +  - id: cloud-serverless
     navigation_title: GCP Private Service Connect
     sub:
       policy-type: "Private connection"
       service-name: "Private Service Connect"
       example-phz-dn: "psc.asia-southeast1.gcp.elastic-cloud.com"
       example-default-dn: "us-central1.gcp.cloud.es.io"
    +  example-serverless-phz-dn: "private.us-central1.gcp.elastic.cloud"
     ---
     
     # Private connectivity with GCP Private Service Connect
     
    -You can use GCP Private Service Connect to establish a secure connection for your {{ecloud}} deployments to communicate with other GCP services. GCP routes the Private Link traffic within the GCP data center and never exposes it to the public internet.
    +You can use GCP Private Service Connect to establish a secure connection for your {{ech}} deployments and {{serverless-full}} projects to communicate with other GCP services. GCP routes the Private Link traffic within the GCP data center and never exposes it to the public internet.
     
     GCP Private Service Connect connects your Virtual Private Cloud (VPC) to the GCP-hosted services that you use, treating them as if they were in your VPC. You can create and use VPC endpoints to securely access GCP-hosted services.
     
    -You can also optionally filter traffic to your deployments by creating virtual private connection (VPC) filters as part of your private connection policy in {{ecloud}}. This limits traffic to your deployment to the VPC specified in the policy, as well as any other policies applied to the deployment.
    +You can also optionally filter traffic to your deployments or projects by creating Private Service Connect (PSC) endpoint filters as part of your private connection policy in {{ecloud}}. This limits traffic to your deployment or project to the PSC endpoint specified in the policy, as well as any other policies applied to the deployment or project.
     
     Private Link is a connection between a Private Service Connect Endpoint and a Service Attachment. [Learn more about using Private Service Connect on Google Cloud](https://cloud.google.com/vpc/docs/private-service-connect#benefits-services).
     
    -To learn how private connection policies impact your deployment, refer to [](/deploy-manage/security/network-security-policies.md).
    +To learn how private connection policies impact your deployment or project, refer to [](/deploy-manage/security/network-security-policies.md).
     
     :::{tip}
    -{{ech}} also supports [IP filters](/deploy-manage/security/ip-filtering-cloud.md). You can apply both IP filters and private connections to a single {{ecloud}} resource.
    +{{ech}} and {{serverless-full}} also support [IP filters](/deploy-manage/security/ip-filtering-cloud.md). You can apply both IP filters and private connections to a single {{ecloud}} resource.
     :::
     
    +:::{warning} - Limited regional availability
    +:applies_to: serverless: ga
    +Private Service Connect for {{serverless-full}} is currently available in a limited set of GCP regions: `asia-southeast1`, `europe-west1`, `us-central1`, `us-east1`, and `us-east4`. Projects in other GCP regions can't use Private Service Connect yet. Support for more regions is planned. 
    +
    +Refer to the [list of supported regions](#ec-private-service-connect-uris) for current availability.
    +:::
    +
    +## Requirements
    +```{applies_to}
    +serverless:
    +```
    +
    +The following requirements apply to the project where you want to apply a private connection policy:
    +
    +:::{include} _snippets/network-sec-tier-reqs.md
    +:::
    +
    +There are no specific requirements for other {{serverless-short}} project types or {{ech}} deployments.
    +
     ## Considerations
     
     * Private connectivity with Private Service Connect is supported only in Google Cloud regions.
     
    -* Private Service Connect connections are regional. As a result, your Private Service Connect endpoint needs to be created in the same region as your deployment. The endpoint can be accessed from any region after you enable its [Global Access](https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access) feature.
    +* {applies_to}`serverless: ga` Private Service Connect for {{serverless-full}} is available in a limited set of GCP regions. Before you plan your setup, confirm that the region where your project is hosted is in the [list of supported regions](#ec-private-service-connect-uris). Your Private Service Connect endpoint must be in the same region as your project.
     
    +* Private Service Connect connections are regional. As a result, your Private Service Connect endpoint needs to be created in the same region as your deployment or project. The endpoint can be accessed from any region after you enable its [Global Access](https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access) feature.
     
    -## Limitations
     
    -% limitations are not applicable to serverless projects
    +## Limitations
     
     When using GCP Private Service Connect, the following limitations apply:
     
     ```{include} _snippets/private-connectivity-limitations-ech.md
     ```
     
    -* **Remote clusters with API key authentication:** Remote cluster connections that use the API key based security model are not yet supported over GCP Private Service Connect because traffic on port `9443` is not currently allowed. Only the TLS certificate based security model (port `9400`) is currently supported for remote cluster traffic.
    +* {applies_to}`serverless: ga` **Limited region availability:** Private Service Connect is available for {{serverless-full}} projects only in the regions listed in [Private Service Connect URIs](#ec-private-service-connect-uris). Projects in other GCP regions can't use it.

    Probably should have the same/similar phrasing as the point in Considerations. I had to double check to make sure this was the same thing

    wajihaparvez wajihaparvez commented on code on Nov 26, 2026 20:50 UTC
    Code Review
    deploy-manage/security/private-connectivity-gcp.md:1
    @@ -104,7 +150,10 @@ Private connection policies are optional for GCP Private Service Connect. After
     
         Follow the [Google Cloud instructions](https://cloud.google.com/vpc/docs/configure-private-service-connect-services#create-endpoint) for details on creating a Private Service Connect endpoint to access Private Service Connect services.
     
    -    Use [the Service Attachment URI for your region](#ec-private-service-connect-uris). Select the **Published service** option and enter the selected Service Attachment URI as the **Target service**. For example, for the region `asia-southeast1` the Service Attachment URI is `projects/cloud-production-168820/regions/asia-southeast1/serviceAttachments/proxy-psc-production-asia-southeast1-v1-attachment`
    +    Use [the Service Attachment URI for your region](#ec-private-service-connect-uris). Select the **Published service** option and enter the selected Service Attachment URI as the **Target service**. For example, for resources in `asia-southeast1`:
    +
    +    * For {{ech}} deployments: The Service Attachment URI is `projects/cloud-production-168820/regions/asia-southeast1/serviceAttachments/proxy-psc-production-asia-southeast1-v1-attachment`.
    +    * For {{serverless-short}} projects: The Service Attachment URI is `projects/esp-prod-asse1-ecp-privatelink/regions/asia-southeast1/serviceAttachments/asia-southeast1-production-privatelink-serverless`.
     
         ::::{note}
         you need to [reserve a static internal IP address](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) in your VPC. The address is used by Private Service Connect endpoint.

        You need to [reserve a static internal IP address](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) in your VPC. The address is used by Private Service Connect endpoint.
    

    Out of scope but jumped at me

    wajihaparvez wajihaparvez approved these changes on Nov 26, 2026 20:54 UTC
    Approved Reviewer

    Minor suggestions. LGTM otherwise!

    shainaraskas shainaraskas commented on code on Nov 27, 2026 14:33 UTC
    Code Review
    deploy-manage/security/private-connectivity-aws.md:1
    @@ -202,7 +202,7 @@ This limitation does not apply to [cross-region PrivateLink connections](#ec-aws
         :screenshot:
         :::
     
    -    The security group for the endpoint should, at minimum, allow for inbound connectivity from your instances' CIDR range on ports 443 and 9243. Security groups for the instances should allow for outbound connectivity to the endpoint on ports 443 and 9243. If you use this endpoint for remote cluster traffic to an {{ech}} deployment, also allow port `9443` or `9400`, depending on the security model you configure.
    +    The security group for the endpoint should, at minimum, allow for inbound connectivity from your instances' CIDR range on ports 443 and 9243. Security groups for the instances should allow for outbound connectivity to the endpoint on ports 443 and 9243. If you use this endpoint for remote cluster traffic to an {{ech}} deployment, also allow port `9443` or `9400`, depending on the security model you configure.

    the aws changes I made here are just cosmetic so I will skip this change in this pr

    Reviewers
    Assignees
    shainaraskas shainaraskas
    Labels
    risk: low confidence: 90.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 56% (MEDIUM) · Higher = larger blast radius
    56%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 90.6% · Lower = rushed or shallow review
    90.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.3% · Safe to merge
    5.3%