1Before you start
- A Google Cloud project with billing enabled, where you have Owner or Editor plus Kubernetes Engine Admin.
- A GKE cluster (Standard or Autopilot). For a first install, 3 nodes of
e2-standard-4are plenty. You can also create one from the Marketplace form. gcloud,kubectlandpsqlon the machine you test from. Or none of them, if you use Cloud Shell in step 3.- On Ubuntu: install
gcloudfrom Google's apt repository together withgoogle-cloud-cli-gke-gcloud-auth-plugin, not from snap. The snap package has no GKE auth plugin, andkubectlcannot sign in to the cluster without it.
The quick start needs no VPC work, no Private Services Access and no public IP. Everything runs inside your cluster. Marketplace meters SecretSkyDB per proxy-hour while the application is running, so delete it when a test is over.
2Deploy from Marketplace
Open the SecretSkyDB listing in your project and click Configure. Fill the form like this:
| Field | Value |
|---|---|
| Cluster | your GKE cluster, or Create a new cluster |
| Namespace | secretskydb (choose Create a namespace) |
| App instance name | secretskydb |
| Proxy service account, reporting secret | leave the defaults |
| Create the three share stores inside this cluster (quick start) | checked |
| Licence key | empty. Your Marketplace subscription is the licence |
Click Deploy. The console opens Kubernetes Engine → Applications → secretskydb. Wait until every component is green: three share stores, the proxy, and a bootstrap job that runs once and completes.
3Connect
Inside the cluster SecretSkyDB is a PostgreSQL server at secretskydb.secretskydb.svc.cluster.local:55432, database ssdb, user ssdb. For a first look, pick one of two routes.
A. Cloud Shell (recommended)
Open in Cloud Shell ↗. It runs in your browser and already has gcloud, the GKE sign-in plugin, kubectl and psql, so nothing on your own machine matters. Every command in steps 3 to 5 runs with one click.
B. From your own machine
One command checks your tools first, then fetches the cluster credentials, prints the generated password and opens a port-forward. If a tool is missing or unsuitable, it stops and tells you exactly what to install.
# replace CLUSTER and REGION (the cluster's region or zone)
curl -fsSL https://storage.googleapis.com/secretskydb-downloads/connect.sh | bash -s -- CLUSTER REGION
Leave that window open. In a second terminal, with the password it printed:
psql "host=127.0.0.1 port=55432 user=ssdb dbname=ssdb"
Prefer to run the commands yourself?
# replace CLUSTER and REGION
gcloud container clusters get-credentials CLUSTER --region REGION
kubectl -n secretskydb get pods
kubectl -n secretskydb get secret secretskydb-shares -o jsonpath='{.data.proxy}' | base64 -d; echo
kubectl -n secretskydb port-forward svc/secretskydb 55432:55432
The script is short and readable: connect.sh. It installs nothing; the only thing it changes on your machine is the kubectl context.
4Your first secret column
One comment makes a column secret. From then on its values never reach a share store in the clear, and your SQL stays the same.
CREATE TABLE patients (id int PRIMARY KEY, name text, troponin numeric); COMMENT ON COLUMN patients.troponin IS 'SSDB: secret'; INSERT INTO patients VALUES (1, 'A', 0.43), (2, 'B', 0.08), (3, 'C', 1.20); SELECT * FROM patients ORDER BY id; SELECT sum(troponin), count(*) FROM patients WHERE troponin > 0.1;
6Next
Point your application at it
Change the host, port and password in your app's PostgreSQL settings. Nothing else. Mark columns secret with COMMENT ON COLUMN … IS 'SSDB: secret' as you create them.
Production: shares on AlloyDB
The quick start keeps all three share stores in one cluster under one administrator. For production, run scripts/prepare-shares.sh from the deployment assets to place each share on its own AlloyDB instance, then deploy with the quick-start box unchecked.
Clean up a test
Kubernetes Engine → Applications → secretskydb → Delete. Tick delete persistent volumes to remove the share stores' disks. Metering stops when the application is gone.