cdn-ops/global/overlay/etc/puppet/modules/cdn/files/db
Patrik Lundin c386349271
cdn db init: secure schema usage
Trying to run goose for creating database contents failed:
```
2024/11/14 11:59:13 goose run: failed to ensure DB version: ERROR: permission denied for schema public (SQLSTATE 42501)
```

This seems to be because PostgreSQL 15 removed the default CREATE
permission in the public schema for users other than the database owner.

Instead we create a user-specific schema owned by that same user and
leave the public schema unused.
2024-11-14 13:01:06 +01:00
..
init-cdn-db.sh cdn db init: secure schema usage 2024-11-14 13:01:06 +01:00