Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -9,12 +9,14 @@
|
||||
--
|
||||
-- Idempotent. Inverse-SQL (DoD 28) am Dateiende.
|
||||
|
||||
-- 1) Restricted Application-Rolle: NICHT Superuser, NICHT BYPASSRLS, NICHT Tabellen-Owner
|
||||
-- -> RLS-Policies greifen fuer diese Rolle (Superuser/Owner wuerden sonst bypassen).
|
||||
-- 1) Restricted application role: not a superuser, not BYPASSRLS, and not the
|
||||
-- table owner, so policies apply. Authentication credentials are provisioned
|
||||
-- separately by the deployment secret workflow; this artifact must never
|
||||
-- contain a reusable database password.
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'hivegrid_app') THEN
|
||||
CREATE ROLE hivegrid_app LOGIN PASSWORD 'hivegrid_app_pw' NOSUPERUSER NOCREATEDB NOCREATEROLE NOBYPASSRLS;
|
||||
CREATE ROLE hivegrid_app LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE NOBYPASSRLS;
|
||||
ELSE
|
||||
ALTER ROLE hivegrid_app NOSUPERUSER NOBYPASSRLS;
|
||||
END IF;
|
||||
|
||||
Reference in new issue
Block a user