The guide to secure deployments in CockroachDB
CockroachDB should run in secure mode in production rather than with the --insecure flag, which leaves the cluster open to any client, lets root log in without a password, and sends traffic unencrypted. Secure mode encrypts all node-to-node and client-server traffic with TLS. It authenticates through node client certificates for the special 'node' user, node addresses listed in server certificates to prevent man-in-the-middle attacks, and certificate Common Name or password checks for SQL users. Because the built-in Admin UI cannot alert when the cluster itself is down, operators should scrape CockroachDB's Prometheus metrics and route alerts through AlertManager.
Related posts
- CockroachDB 26.4: One major upgrade a year with skip-level upgrades, run active-active across two data centers, and encrypt for the post-quantum era
Cockroach Labs mediumAdeptCockroachDB 26.4 introduces skip-level upgrades so operators can move from one annual .4 release to the next without stopping at intermediate releases, and adds active-active writes across two data centers via transactional logical data replication. The release also adds post-quantum TLS, passwordless OIDC/PKCE sign-in, workload identity mapped to SQL users, table-level audit logging, and persisted SQL insights and contention views exposed through information_schema. Operationally, it tightens several security defaults, clears persisted statement and transaction statistics on upgrade, and requires upgrading through 26.2 first; self-hosted binaries follow Cloud rollout by about two weeks.
- Introducing the CockroachDB Kubernetes Operator
Cockroach Labs mediumAdeptCockroach Labs has made its CockroachDB Kubernetes Operator generally available. It is the same operator that has managed 600+ CockroachDB Cloud clusters for about three years, and its source can now be read on GitHub. It uses CockroachDB-specific custom resources with separate cluster-level and node-level reconciliation to automate rolling upgrades, health-aware scaling, certificate rotation, storage management such as WAL failover, and multi-region topology by mapping Kubernetes node labels to CockroachDB locality. Existing users can move from the legacy public operator or StatefulSet Helm charts through an opt-in migration controller that replaces nodes one at a time, checks cluster health between steps and supports rollback. The legacy options enter 12 months of maintenance when CockroachDB 27.3 ships in summer 2027 and then reach end-of-life.
- ClickHouse on Docker Hardened Images
ClickHouse mediumAdept
ClickHouse server, Keeper, the Kubernetes Operator with its Helm chart, and the metrics exporter are now in Docker's Hardened Images catalog. These are minimal builds with no package manager or network tools, a non-root default user, and SLSA Level 3 provenance. The standard image gets flagged by scanners like Trivy and Grype because of unused Ubuntu 22.04 base packages such as wget (CVE-2021-31879), not because of ClickHouse itself. Docker Scout counts drop from 8 medium/11 low findings to 0 medium/14 low. Migrating changes only the image name plus a required CLICKHOUSE_PASSWORD, and a dev variant or `docker debug` covers debugging needs.
- Better security for your app's secrets
incident.io mediumAdeptincident.io's Go app loads config from per-environment YAML files, overrides values with environment variables, then resolves `secret-manager:` references from Google Secret Manager at boot. Moving secrets out of Heroku environment variables means only a Google Service Account credential is exposed, so it can be revoked and access audited. A VPC Service Controls security perimeter with Access Levels restricts Secret Manager access to known source IPs: offices, CircleCI egress, UK/US staff locations and Heroku's AWS eu-west-1 range. The tradeoff is new availability risk, since external changes such as Heroku IP range shifts can cause outages.
- Corrosion
Fly.io mediumAdeptCorrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus. It works because Fly's orchestration makes individual workers the source of truth for their own state, so updates rarely conflict, much like a link-state routing protocol such as OSPF. The war stories cover a Rust RwLock deadlock gossiped to every proxy that caused a fleet-wide outage, a nullable-column migration that triggered a cr-sqlite backfill storm, and Consul certificate expiry that drove Corrosion writes until uplinks saturated. The fixes are Tokio event-loop watchdogs, Antithesis testing, checkpoint backups for cluster rebuilds, republishing full Machine state instead of partial updates, and regionalized two-level clusters to shrink the blast radius.