diff --git a/deployment/README.md b/deployment/README.md index 36b5e41ea0e..e57882ebf52 100644 --- a/deployment/README.md +++ b/deployment/README.md @@ -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`). diff --git a/deployment/terraform/modules/osv_pipeline/variables.tf b/deployment/terraform/modules/osv_pipeline/variables.tf index 8d752a744ca..237bebff3c6 100644 --- a/deployment/terraform/modules/osv_pipeline/variables.tf +++ b/deployment/terraform/modules/osv_pipeline/variables.tf @@ -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" {