Google Cloud: Control who can connect

Access to your instance is controlled in Configuration → Network.

Access to your instance is controlled in Configuration → Network.

On Google Cloud the rules you set here become VPC firewall rules that target your instance. The network is shared between tenants in a region, and the targeting is what keeps them apart: every KiviDB node carries a tag unique to its instance, and every rule for that node selects that tag and nothing else.

This differs from AWS and Azure in one way worth knowing, because it explains the behaviour below. There, your rules are a property of a thing attached to your instance — a security group, a network security group — and clearing them is editing one object. Here they are separate rules in a shared network, so applying your allow-list means adding the rules that should exist, correcting the ones that have changed, and removing the ones that should not be there any more. KiviDB does all three on every change, so a rule you remove is genuinely gone rather than left behind quietly granting what you thought you had withdrawn.

Allowed IPs

Only the addresses listed here can reach your database. Everything else is refused at the network level, before it ever reaches the engine — Google Cloud denies inbound traffic by default, so an instance whose rules have not been applied is unreachable rather than open.

Add single addresses (203.0.113.5) or ranges in CIDR form (10.0.0.0/16). Changes apply within a few seconds; the page tells you when they are in sync.

A few things worth knowing:

  • Home and office IPs usually change. If you could connect yesterday and cannot today, check your current address first.
  • Add your application servers, not just your laptop. A common mistake is deploying an app that cannot reach the database because only a developer machine was allow-listed.
  • An empty list means nothing can connect. That is valid if you use private connectivity, and a mistake otherwise.
  • A Compute Engine instance's internal IP is not the address it connects from. Allow-listing 10.128.0.0/20 because that is what ip addr shows on your app server does nothing: traffic leaving your VPC for the internet arrives from an external address. Use private connectivity if you want to connect by internal address.

TLS

TLS/SSL in Configuration → Instance settings adds an encrypted endpoint on port 6380. Enabling it restarts the instance, because it changes which build of the engine runs. The change is carried out by the agent on the node rather than by a cloud-side remote-exec channel, which is why it works the same here as on AWS and Azure.

Enabling TLS adds the encrypted port — it does not close the unencrypted one. Both accept your allow-list until you require TLS.

Require TLS

Require TLS, in Configuration → Network, closes the unencrypted port to your clients. Your allow-list is then published on 6380 only, and 6379 is no longer reachable from the internet.

Turn this on once every client is connecting over TLS. Turning it on while something still connects in plaintext will break that client immediately.

This takes effect within seconds — nothing restarts. It is a firewall change, not an engine change.

One exception, if you also use private connectivity: the private path keeps both ports open behind your endpoint. Google's load balancer health check speaks plain TCP and nothing else, so withdrawing the unencrypted port there would mark your backend unhealthy and take the private endpoint down entirely. Your public allow-list is still TLS-only, which is what requiring TLS is for.

Block public access

Block public access withdraws your entire allow-list, so no client of yours can reach the instance over the internet. It is available only when private connectivity is enabled, because otherwise it would leave the instance unreachable.

Your allow-list rules are kept, not deleted. Turn the option off and they come back exactly as they were.

The Explorer continues to work while public access is blocked. KiviDB keeps a management connection to your instance for health monitoring, applying user and permission changes, and the in-browser data browser; it cannot be disabled, because those features stop working without it. Section 10.4 of the Terms of Service sets this out.

Which port is actually open

The network page tells you which ports your allow-list is published on, and the overview shows the port to connect to. These reflect your TLS and public-access settings, so trust them over any assumption about 6379.

The firewall rules themselves live in KiviDB's Google Cloud project, not yours, so there is nothing to inspect or edit on your side and no IAM permission you need. The dashboard is the only place these rules are set, which is deliberate: a rule added by hand somewhere else would be removed the next time your firewall is reconciled, and you would have no way of knowing why.