You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 27756ce
Browse filesBrowse the repository at this point in the historyBrowse files
fix(goose): remove unsupported role startup option from connection string (#6312)
Removes `options=-crole=cloudsqlsuperuser` from the `goose` PostgreSQL
connection string in `docker/goose/entrypoint.bash` (which is rejected
by Cloud SQL / PgBouncer as an unsupported startup parameter) and
documents configuring `ALTER ROLE ... SET role = 'cloudsqlsuperuser'` in
`deployment/README.md`.
<!-- AI-PR -->
agy
Copy file name to clipboardExpand all lines: deployment/README.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,19 @@ Database schema migrations live in `go/internal/database/postgres/migrations/` a
92
92
***Staging (`oss-vdb-test`)**: Applied automatically by `build-and-stage.yaml` right after `terraform apply` using the `gcr.io/oss-vdb/goose` Cloud Builder image (see `docker/goose/`).
93
93
***Production (`oss-vdb` & `private-osv`)**: Applied automatically by `deploy-prod.yaml` at the release `$COMMIT_SHA` right before promoting the Cloud Deploy pipelines.
94
94
95
+
After the initial `terraform apply` creates the `deployment@oss-vdb.iam` Cloud SQL user on an instance, set its default login role to `cloudsqlsuperuser` once per instance (so tables created by CI/CD migrations are owned by the shared `cloudsqlsuperuser` role):
96
+
97
+
```bash
98
+
# In one terminal (use us-central1 for oss-vdb / oss-vdb-test, or us-west2 for private-osv):
0 commit comments