Skip to content

Endpoints and TLS

lowtide serves the Pub/Sub v1 API twice on each port: gRPC, which the client libraries use, and REST, which gcloud, Terraform and curl use. Clients keep their code and their Google credentials. They change only the endpoint.

Port Protocols For
TLS, Service port 443 gRPC over HTTP/2 and REST over HTTP/1.1, chosen by ALPN Production clients, gcloud, Terraform
Plaintext, 8085 gRPC and REST Pod-to-pod traffic, and trusted callers inside the cluster when authentication is off

The client libraries send OAuth tokens only over TLS. So with authentication on, clients must use the TLS port.

Client runs Endpoint
In the same GKE cluster lowtide.<namespace>.svc:443, for example lowtide.lowtide.svc:443. Traffic goes to a gateway pod in the client’s own zone when there is one.
Elsewhere in the VPC The internal load balancer: the endpoint host you chose, or its IP address, on port 443. Clients in other regions of the VPC need endpoint_global_access.
Outside the VPC Not exposed. Connect through the VPC (VPN, Interconnect, peering).

The cluster’s Connect tab in the console shows the endpoint and ready-made client snippets. The examples in these docs use lowtide.pubsub.svc:443 as a stand-in.

The Terraform module issues the server certificate from its own private CA. Clients must trust that CA. Get it from the module’s tls_ca_certificate output, or from the TLS Secret in the cluster:

Terminal window
kubectl -n lowtide get secret lowtide-tls -o jsonpath='{.data.ca\.crt}' | base64 -d > lowtide-ca.crt

Then point each client at it:

Client Setting
gRPC client libraries (Python, Go, Java, Node and others) GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/path/to/lowtide-ca.crt
gcloud gcloud config set core/custom_ca_certs_file /path/to/lowtide-ca.crt
Terraform google provider Add the CA to the system trust store of the machine that runs Terraform
curl --cacert lowtide-ca.crt

GRPC_DEFAULT_SSL_ROOTS_FILE_PATH replaces the default roots for that process, so use a file that also contains any public roots the process needs for other gRPC calls, such as Google APIs. With your own certificate from a CA your clients already trust, none of this is needed.

PUBSUB_EMULATOR_HOST=lowtide.lowtide.svc:8085 makes the client libraries connect to the plaintext port with no code change at all. In this mode they send no credentials, so use it only with authentication off, for example in development. With Cloud IAM authorization on, it can’t work.