fix: keep staging control plane on main

This commit is contained in:
Jesse_Chen
2026-07-21 07:45:14 +08:00
parent bd7c9830bb
commit 9e119df977
11 changed files with 100 additions and 27 deletions
+17 -1
View File
@@ -373,13 +373,16 @@ test("foundation grants no direct runtime table DML and exposes only reviewed fu
create table audit.admin_event_probe (
value text not null
);
create function identity.unreviewed_identity_probe()
returns text
language sql
as 'select ''not callable''::text';
create function audit.record_admin_event_probe(event_value text)
returns void
language sql
security definer
set search_path = pg_catalog, audit
as 'insert into audit.admin_event_probe(value) values (event_value)';
revoke all on function audit.record_admin_event_probe(text) from public;
grant execute on function audit.record_admin_event_probe(text) to admin_runtime;
`,
);
@@ -412,6 +415,19 @@ test("foundation grants no direct runtime table DML and exposes only reviewed fu
"update public.runtime_boundary_probe set value = 'denied'",
),
);
assert.equal(
fixture.psql(
"select has_function_privilege('identity_runtime', 'identity.unreviewed_identity_probe()', 'execute')",
),
"f",
);
assert.throws(() =>
fixture.psqlAs(
"identity_runtime",
"identity-runtime-test-password",
"select identity.unreviewed_identity_probe()",
),
);
assert.equal(
fixture.psqlAs(