Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Deploy and manage/
  3. Security/
  4. Secure your cluster, deployment, or project/
  5. Network security/
  6. Private connectivity

Private connectivity with GCP Private Service Connect

You can use GCP Private Service Connect to establish a secure connection for your Elastic Cloud 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.

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 Elastic Cloud. This limits traffic to your deployment to the VPC specified in the policy, as well as any other policies applied to the deployment.

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.

To learn how private connection policies impact your deployment, refer toNetwork security policies in Elastic Cloud.

Tip

Elastic Cloud Hosted also supportsIP filters. You can apply both IP filters and private connections to a single Elastic Cloud resource.

  • 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 itsGlobal Access feature.

Service Attachments are set up by Elastic in all supported GCP regions under the following URIs:

GCP public regions
RegionService attachment URIPrivate zone DNS name
asia-east1projects/cloud-production-168820/regions/asia-east1/serviceAttachments/proxy-psc-production-asia-east1-v1-attachmentpsc.asia-east1.gcp.elastic-cloud.com
asia-northeast1projects/cloud-production-168820/regions/asia-northeast1/serviceAttachments/proxy-psc-production-asia-northeast1-v1-attachmentpsc.asia-northeast1.gcp.cloud.es.io
asia-northeast3projects/cloud-production-168820/regions/asia-northeast3/serviceAttachments/proxy-psc-production-asia-northeast3-v1-attachmentpsc.asia-northeast3.gcp.elastic-cloud.com
asia-south1projects/cloud-production-168820/regions/asia-south1/serviceAttachments/proxy-psc-production-asia-south1-v1-attachmentpsc.asia-south1.gcp.elastic-cloud.com
asia-southeast1projects/cloud-production-168820/regions/asia-southeast1/serviceAttachments/proxy-psc-production-asia-southeast1-v1-attachmentpsc.asia-southeast1.gcp.elastic-cloud.com
asia-southeast2projects/cloud-production-168820/regions/asia-southeast2/serviceAttachments/proxy-psc-production-asia-southeast2-v1-attachmentpsc.asia-southeast2.gcp.elastic-cloud.com
australia-southeast1projects/cloud-production-168820/regions/australia-southeast1/serviceAttachments/proxy-psc-production-australia-southeast1-v1-attachmentpsc.australia-southeast1.gcp.elastic-cloud.com
europe-north1projects/cloud-production-168820/regions/europe-north1/serviceAttachments/proxy-psc-production-europe-north1-v1-attachmentpsc.europe-north1.gcp.elastic-cloud.com
europe-west1projects/cloud-production-168820/regions/europe-west1/serviceAttachments/proxy-psc-production-europe-west1-v1-attachmentpsc.europe-west1.gcp.cloud.es.io
europe-west2projects/cloud-production-168820/regions/europe-west2/serviceAttachments/proxy-psc-production-europe-west2-v1-attachmentpsc.europe-west2.gcp.elastic-cloud.com
europe-west3projects/cloud-production-168820/regions/europe-west3/serviceAttachments/proxy-psc-production-europe-west3-v1-attachmentpsc.europe-west3.gcp.cloud.es.io
europe-west4projects/cloud-production-168820/regions/europe-west4/serviceAttachments/proxy-psc-production-europe-west4-v1-attachmentpsc.europe-west4.gcp.elastic-cloud.com
europe-west9projects/cloud-production-168820/regions/europe-west9/serviceAttachments/proxy-psc-production-europe-west9-v1-attachmentpsc.europe-west9.gcp.elastic-cloud.com
me-west1projects/cloud-production-168820/regions/me-west1/serviceAttachments/proxy-psc-production-me-west1-v1-attachmentpsc.me-west1.gcp.elastic-cloud.com
northamerica-northeast1projects/cloud-production-168820/regions/northamerica-northeast1/serviceAttachments/proxy-psc-production-northamerica-northeast1-v1-attachmentpsc.northamerica-northeast1.gcp.elastic-cloud.com
southamerica-east1projects/cloud-production-168820/regions/southamerica-east1/serviceAttachments/proxy-psc-production-southamerica-east1-v1-attachmentpsc.southamerica-east1.gcp.elastic-cloud.com
us-central1projects/cloud-production-168820/regions/us-central1/serviceAttachments/proxy-psc-production-us-central1-v1-attachmentpsc.us-central1.gcp.cloud.es.io
us-east1projects/cloud-production-168820/regions/us-east1/serviceAttachments/proxy-psc-production-us-east1-v1-attachmentpsc.us-east1.gcp.elastic-cloud.com
us-east4projects/cloud-production-168820/regions/us-east4/serviceAttachments/proxy-psc-production-us-east4-v1-attachmentpsc.us-east4.gcp.elastic-cloud.com
us-west1projects/cloud-production-168820/regions/us-west1/serviceAttachments/proxy-psc-production-us-west1-v1-attachmentpsc.us-west1.gcp.cloud.es.io

The process of setting up the Private link connection to your deployments is split between Google Cloud and the Elastic Cloud UI. These are the high-level steps:

After you create your private connection policy, you canedit,disassociate, ordelete it.

Private connection policies are optional

Private connection policies are optional for GCP Private Service Connect. After the Private Service Connect endpoint and DNS record are created, private connectivity is established. You only need to create a private connection policy if you want to filter traffic to your deployment using VPC filters.

  1. Create a Private Service Connect endpoint in your VPC using the Service Attachment URI for your region.

    Follow theGoogle Cloud instructions for details on creating a Private Service Connect endpoint to access Private Service Connect services.

    Usethe Service Attachment URI for your region. Select thePublished service option and enter the selected Service Attachment URI as theTarget service. For example, for the regionasia-southeast1 the Service Attachment URI isprojects/cloud-production-168820/regions/asia-southeast1/serviceAttachments/proxy-psc-production-asia-southeast1-v1-attachment

    Note

    you need toreserve a static internal IP address in your VPC. The address is used by Private Service Connect endpoint.

    Note down thePSC Connection ID, e.g.18446744072646845332.

  2. Create a DNS record.

    1. Create a DNS Zone of typePrivate.

      Refer to thePrivate zone DNS name column in thePrivate Service Connect URIs table for the name of the zone. For example, inasia-southeast1, usepsc.asia-southeast1.gcp.elastic-cloud.com as the zone domain name. Make sure the zone is associated with your VPC.

    2. Create a DNS record set with an A record pointing to the Private Service Connect endpoint IP. Use* as theDNS name,A as theResource record type, and put the Private Service Connect endpoint IP address as the record value.

      Follow theGoogle Cloud instructions for details on creating an A record which points to your Private Service Connect endpoint IP address.

After you create your Private Service Connect endpoint and DNS entries, verify that you are able to reach your cluster over Private Link.

To test the connection:

  1. If needed, find the endpoint of an application in your deployment:

    1. Log in to theElastic Cloud Console.

    2. UnderHosted deployments, find your deployment.

    Tip

    If you have many deployments, you can instead go to theHosted deployments (Elastic Cloud Hosted) page. On that page, you can narrow your deployments by name, ID, or choose from several other filters.

    1. SelectManage.
    2. In the deployment overview, underApplications, find the application that you want to test.
    3. ClickCopy endpoint. The value looks something like the following:
    https://my-deployment-d53192.es.us-central1.gcp.cloud.es.io

    In this endpoint,my-deployment-d53192 is an alias, andes is the product you want to access within your deployment.

  2. Access your cluster over Private Link:

    • If you have acustom endpoint alias configured, you can use the custom endpoint URL to connect.
    • Test the setup using the following cURL command. Pass the username and password for a user that has access to the cluster. Make sure to replace the URL with your deployment's endpoint information and the private hosted zone domain name that you registered.

    Request

    $ curl -v https://my-deployment-d53192.es.psc.asia-southeast1.gcp.elastic-cloud.com:9243 -u {username}:{password}

    Response

    ..*   Trying 192.168.100.2.....    < HTTP/1.1 200 OK..{    "name" : "instance-0000000009",    "cluster_name" : "fb7e805e5cfb4931bdccc4f3cb591f5f",    "cluster_uuid" : "2cTHeCQYS2a0iH7YnQHrIQ",    "version" : { ... },    "tagline" : "You Know, for Search"}

Check the IP address. it should be the same as the IP address assigned to your Private Service Connect endpoint.

The connection is established, and a valid certificate is presented to the client. Elastic responds, in the case of the Elasticsearch endpoint, with basic information about the cluster.

After you test your Private Link connection, you can create a private connection policy in Elastic Cloud.

Private connection policies are optional for GCP Private Service Connect. After the Private Service Connect endpoint and DNS record are created, private connectivity is established.

Creating a private connection policy and associating it with your deployments allows you to do the following:

  • Record that you've established private connectivity between GCP and Elastic in the applicable region.
  • Filter traffic to your deployment using VPC filters.

Follow these high-level steps to add a private connection policy that can be associated with your deployments.

  1. Optional:Find your Private Service Connect connection ID.
  2. Create policies using the Private Service Connect endpoint connection ID.
  3. Associate the Private Service Connect endpoint with your deployment.

The PSC connection ID is only required if you want to filter traffic to your deployment using VPC filters.

  1. Go to your Private Service Connect endpoint in the Google Cloud console.
  2. Copy the value ofPSC Connection ID.

Create a new private connection policy.

  1. Log in to theElastic Cloud Console.
  2. From any deployment or project on the home page, selectManage.
  3. From the left navigation menu, selectAccess and security >Network security.
  1. SelectPrivate connection.

  2. Select the resource type that the private connection will be applied to. Currently, only hosted deployments are supported.

  3. Select the cloud provider and region for the private connection.

    Tip

    Private connection policies are bound to a single region, and can be assigned only to deployments in the same region. If you want to associate a policy with resources in multiple regions, then you have to create the same policy in all the regions you want to apply it to.

  4. UnderConnectivity, selectPrivateLink.

  5. Optional: UnderVPC filter, enter your Private Service Connect endpoint connection ID. You should only specify a Private Service Connect endpoint connection ID if you want to filter traffic to your deployment.

    If you don't specify a VPC filter, then the private connection policy acts only as a record that you've established private connectivity between AWS and Elastic in the applicable region.

    Tip

    You can apply multiple policies to a single deployment. The policies can be of different types. In case of multiple policies, traffic can match any associated policy to be forwarded to the resource. If none of the policies match, the request is rejected with403 Forbidden.

    Learn more about how network security policies affect your deployment.

  6. Optional: UnderApply to resources, associate the new private connection policy with one or more deployments. If you specified a VPC filter, then after you associate the filter with a deployment, it starts filtering traffic.

  7. To automatically attach this private connection policy to new deployments, selectApply by default.

  8. ClickCreate.

  9. (Optional) You canclaim your Private Service Connect endpoint connection ID, so that no other organization is able to use it in a private connection policy.

The next step is toassociate the policy with your deployment.

You can associate a private connection policy with your deployment from the policy's settings, or from your deployment's settings.

If the policy contains a VPC filter, then after you associate the policy with a deployment, it starts filtering traffic.

If the policy doesn't contain a VPC filter, then the association can serve as a reminder that a Private Service Connect endpoint exists for the deployment's region.

  1. Find your deployment on the home page or on theHosted deployments page, then selectManage to access its settings menus.

    On theHosted deployments page, you can narrow your deployments by name, ID, or choose from several other filters. To customize your view, use a combination of filters, or change the format from a grid to a list.

  2. On theSecurity page, underNetwork security, selectApply policies >Private connection.

  3. Choose the policy you want to apply and selectApply.

  1. Log in to theElastic Cloud Console.
  2. From any deployment or project on the home page, selectManage.
  3. From the left navigation menu, selectAccess and security >Network security.
  1. Find the policy you want to edit.
  2. UnderApply to resources, associate the policy with one or more deployments.
  3. ClickUpdate to save your changes.

For traffic to connect with the deployment over Private Service Connect, the client making the request needs to be located within the VPC where you’ve created the Private Service Connect endpoint. You can also set up network traffic to flow through the originating VPC from somewhere else, such as another VPC or a VPN from your corporate network. This assumes that the Private Service Connect endpoint and the DNS record are also available within that context. Check your cloud service provider documentation for setup instructions.

Important

Use the alias you’ve set up as CNAME A record to access your deployment.

Use the following URL structure. This URL is built from endpoint information retrieved from your Elastic deployment or project and the private hosted zone domain name that you registered.

https://{{alias}}.{{product}}.{{private_hosted_zone_domain_name}}

For example:

https://my-deployment-d53192.es.psc.asia-southeast1.gcp.elastic-cloud.com
Tip

You can use either 443 or 9243 as a port.

You can also connect to the cluster using the Elasticsearch cluster or project ID, for example, https://6b111580caaa4a9e84b18ec7c600155e.psc.asia-southeast1.gcp.elastic-cloud.com

To access the deployment:

  1. If needed, find the endpoint of an application in your deployment:

    1. Log in to theElastic Cloud Console.

    2. UnderHosted deployments, find your deployment.

    Tip

    If you have many deployments, you can instead go to theHosted deployments (Elastic Cloud Hosted) page. On that page, you can narrow your deployments by name, ID, or choose from several other filters.

    1. SelectManage.
    2. In the deployment overview, underApplications, find the application that you want to test.
    3. ClickCopy endpoint. The value looks something like the following:
    https://my-deployment-d53192.es.us-central1.gcp.cloud.es.io

    In this endpoint,my-deployment-d53192 is an alias, andes is the product you want to access within your deployment.

  2. Send a request:

    Request

    $ curl -v https://my-deployment-d53192.es.psc.asia-southeast1.gcp.elastic-cloud.com:9243 -u {username}:{password}

    Response

    < HTTP/1.1 200 OK..{    "name" : "instance-0000000009",    "cluster_name" : "fb7e805e5cfb4931bdccc4f3cb591f5f",    "cluster_uuid" : "2cTHeCQYS2a0iH7YnQHrIQ",    "version" : { ... },    "tagline" : "You Know, for Search"}

If you are using Private Service Connect together with Fleet, and enrolling the Elastic Agent with a private connection URL, you need to configure Fleet Server to use and propagate the Private Service Connect URL by updating theFleet Server hosts field in theFleet settings section of Kibana. Otherwise, Elastic Agent will reset to use a default address instead of the Private Service Connect URL.

The URL needs to follow this pattern:

https://{{fleet_component_ID_or_deployment_alias}}.fleet.{{private_hosted_zone_domain_name}}:443`

Similarly, the Elasticsearch host needs to be updated to propagate the private connection URL. The Elasticsearch URL needs to follow this pattern:

https://{{elasticsearch_cluster_ID_or_deployment_alias}}.es.{{private_hosted_zone_domain_name}}:443

The settingsxpack.fleet.agents.fleet_server.hosts andxpack.fleet.outputs that are needed to enable this configuration in Kibana are not available in the Kibana settings in Elastic Cloud.

After you create your private connection policy, you can edit it, remove it from your deployment, or delete it.

You can edit a policy's name, description, VPC endpoint ID, and more.

  1. Log in to theElastic Cloud Console.
  2. From any deployment or project on the home page, selectManage.
  3. From the left navigation menu, selectAccess and security >Network security.
  1. Find the policy you want to edit, then click theEdit button.
  2. ClickUpdate to save your changes.
Tip

You can also edit network security policies from your deployment'sSecurity page or your project'sNetwork security page.

If you want to remove a specific policy from a deployment, or delete the policy, then you need to disconnect it from any associated deployments first. You can do this from the policy's settings, or from your deployment's settings. To remove an association through the UI:

  1. Find your deployment on the home page or on theHosted deployments page, then selectManage to access its settings menus.

    On theHosted deployments page you can narrow your deployments by name, ID, or choose from several other filters. To customize your view, use a combination of filters, or change the format from a grid to a list.

  2. On theSecurity page, underNetwork security, find the policy that you want to disconnect.

  3. UnderActions, click theDelete icon.

  1. Log in to theElastic Cloud Console.
  2. From any deployment or project on the home page, selectManage.
  3. From the left navigation menu, selectAccess and security >Network security.
  1. Find the policy you want to edit, then click theEdit button.
  2. UnderApply to resources, click thex beside the resource that you want to disconnect.
  3. ClickUpdate to save your changes.

If you need to remove a policy, you must first remove any associations with deployments.

To delete a policy:

  1. Log in to theElastic Cloud Console.
  2. From any deployment or project on the home page, selectManage.
  3. From the left navigation menu, selectAccess and security >Network security.
  1. Find the policy you want to edit, then click theDelete icon. The icon is inactive if there are deployments associated with the policy.

[8]ページ先頭

©2009-2026 Movatter.jp