Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ unset PG_RO_PASS

### Cloud SQL PostgreSQL Schema Migrations & IAM Access

Cloud SQL instances use `ssl_mode = "ENCRYPTED_ONLY"`; `osv-db-read-pool` is **private IP only** (`ipv4_enabled = false`), and `osv-db` defaults to `postgres_ipv4_enabled = true` only while `osv-db-migrate` and the `pg-tunnel` GKE deployment are rolled out and verified (flip `postgres_ipv4_enabled` to `false` once confirmed).
Cloud SQL instances (`osv-db` and `osv-db-read-pool`) use `ssl_mode = "ENCRYPTED_ONLY"` and are **private IP only** (`ipv4_enabled = false`).

Database schema migrations live in `go/internal/database/postgres/migrations/` and are managed with [goose](https://github.com/pressly/goose). Each commit to `master` builds `gcr.io/oss-vdb/goose-migrations:$COMMIT_SHA` (via `docker/goose/migrations.Dockerfile` layered on `gcr.io/oss-vdb/goose:latest`).

Expand Down
4 changes: 2 additions & 2 deletions deployment/terraform/modules/osv_pipeline/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ variable "postgres_availability_type" {

variable "postgres_ipv4_enabled" {
type = bool
description = "Whether to assign a public IPv4 address to the primary Cloud SQL instance (keep true during rollout until osv-db-migrate and pg-tunnel are verified, then flip to false)."
default = true
description = "Whether to assign a public IPv4 address to the primary Cloud SQL instance."
default = false
}

variable "postgres_migration_subnetwork" {
Expand Down
Loading