Revoke default PUBLIC execute on staging function
Some checks are pending
CI / lint-and-test (push) Waiting to run

PostgreSQL grants EXECUTE to PUBLIC on every new function by default.
The verification block correctly rejects this, so revoke it before
granting the runtime role.
This commit is contained in:
fwazb 2026-07-24 12:15:50 -07:00
parent 7e1d57ef6f
commit 5c506b6ed1

View file

@ -800,7 +800,8 @@ begin
end end
$function$; $function$;
-- Fresh function has no stale ACLs. Grant runtime, transfer ownership, done. -- Revoke default PUBLIC execute, grant only to runtime, then transfer ownership.
revoke all on function kb_stage.stage_leoclean_proposal(text, text, text, text, jsonb) from public;
grant execute on function kb_stage.stage_leoclean_proposal(text, text, text, text, jsonb) grant execute on function kb_stage.stage_leoclean_proposal(text, text, text, text, jsonb)
to leoclean_kb_runtime; to leoclean_kb_runtime;
alter function kb_stage.stage_leoclean_proposal(text, text, text, text, jsonb) alter function kb_stage.stage_leoclean_proposal(text, text, text, text, jsonb)