Keep role re-assertion within a non-superuser provisioner's rights, and test the second boot
This commit is contained in:
@@ -6,9 +6,9 @@ CREATE DATABASE kratos;
|
||||
CREATE DATABASE keto;
|
||||
CREATE DATABASE hydra;
|
||||
|
||||
-- Postgres grants CONNECT to PUBLIC by default, so every plugin role would otherwise reach the auth
|
||||
-- plane: table data stays protected, but pg_catalog and the connection slots do not. Ory connects as
|
||||
-- the POSTGRES_USER, which owns these and keeps its access.
|
||||
-- Postgres grants CONNECT to PUBLIC by default, so every plugin role could otherwise open the auth
|
||||
-- plane's databases and read pg_catalog; table data stays protected either way. Ory connects as the
|
||||
-- POSTGRES_USER, which owns these and keeps its access.
|
||||
REVOKE CONNECT ON DATABASE kratos FROM PUBLIC;
|
||||
REVOKE CONNECT ON DATABASE keto FROM PUBLIC;
|
||||
REVOKE CONNECT ON DATABASE hydra FROM PUBLIC;
|
||||
|
||||
Reference in New Issue
Block a user