Skip to main content
This needs bqto Pro.

Connect

--instance takes the region and the cluster name, as REGION/NAME. A connection to Managed Kafka goes through the SOCKS5 proxy on the bastion and through a local kafka-proxy. kafka-proxy does the TLS, and you run it on your machine. The ready line shows two things: the local port that bqto set aside for kafka-proxy, and the kafka-proxy command to run.

In scripts

With -- CMD, the command gets these variables: With --output json, the ready event has the local kafka-proxy port. The access token that your client uses travels in cleartext only to kafka-proxy on 127.0.0.1. kafka-proxy sends it to the cluster over TLS.

What it needs

  • The role roles/managedkafka.viewer in the service project, together with the roles that every session needs. See Permissions.