Skip to content

clickpipes: documentation for GCP-native private networking (PSC)#6409

Open
morsapaes wants to merge 3 commits into
ClickHouse:mainfrom
morsapaes:docs-psc
Open

clickpipes: documentation for GCP-native private networking (PSC)#6409
morsapaes wants to merge 3 commits into
ClickHouse:mainfrom
morsapaes:docs-psc

Conversation

@morsapaes

@morsapaes morsapaes commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Work-in-progress for PSC integration documentation.


Note

Low Risk
Documentation-only addition with no application or infrastructure code changes.

Overview
Adds a new integration guide at docs/integrations/data-ingestion/clickpipes/gcp-psc/postgres.md (slug /integrations/clickpipes/gcp-psc/postgres) documenting GCP Private Service Connect for Postgres CDC ClickPipes via Reverse Private Endpoints (GCP_PSC_SERVICE_ATTACHMENT).

The page explains how RPEs consume customer-published PSC service attachments, why custom_private_dns_mappings is required on GCP, and prerequisites including allowing the clickpipes-production consumer project. Path A walks through Cloud SQL native PSC (gcloud enable/allow list, reading pscServiceAttachmentLink and dnsName, RPE creation in UI/Terraform/API, then wiring a cloudsqlpostgres pipe). Path B covers producer-owned PSC (private-network Cloud SQL or self-managed Postgres) with the gcp-cloud-sql-private-network-psc Terraform module and optional manual PendingAcceptance approval.

It also documents RPE lifecycle in the UI, same-region constraints, and limitations (no VPC peering). Supported GCP regions still has a publish-blocking TODO to paste the region list; the UI steps repeat numbering at item 2.

Reviewed by Cursor Bugbot for commit f9f11ed. Bugbot is set up for automated code reviews on this repo. Configure here.

@morsapaes morsapaes requested review from a team as code owners June 17, 2026 08:02
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

@morsapaes is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

--allowed-psc-projects=clickpipes-production
```

The `--allowed-psc-projects` (`psc_config.allowed_consumer_projects` in the API and Terraform) is the auto-accept list. As long as the ClickPipes consumer project is on it, Cloud SQL accepts the endpoint automatically — no manual approval step.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mention here PSC service attachment cannot be reused across multiple ClickHouse Cloud services.

Comment on lines +161 to +163
custom_private_dns_mappings = [
{ private_dns_name = "<INSTANCE_UID>.<REGION>.sql.goog" }
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom_private_dns_mappings is not a part of clickhouse_clickpipes_reverse_private_endpoint but has a separate TF resource


> _TODO: paste the current region list before publishing._

## Limitations

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a mention of the PSC service attachment claim by the ClickHouse Cloud service. It cannot be reused among multiple ClickHouse services.

Although this claim can be released on request.

dhtclk and others added 2 commits July 7, 2026 14:13
- Add explicit {#id} anchors to all h2-h4 headings (custom-anchor-headings)
- Add the page to the Postgres CDC sidebar group (was a floating page)
- Lowercase 'reverse private endpoint' heading for sentence case
- Add 'Cloud SQL' to the Vale Headings exceptions (product name)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickhouse-docs Ready Ready Preview Jul 7, 2026 7:48pm

Request Review

@dhtclk

dhtclk commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

@morsapaes - I pushed some mechanical fixes so the CI passes and we get a preview build. As part of this I also added it to the sidebars.js, and put it in the ClickPipes for Postgres section but it certainly can be moved if it needs to go elsewhere.

Let me know how else I can help!

cc: @jkaflik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants