public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Tefft, Michael J <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC
Date: Fri, 5 Jul 2024 07:49:34 -0700
Message-ID: <CAKFQuwahMtaCfR+ifpm_jssA-+W4OEnXXXs_ce6+mYniqoCsQQ@mail.gmail.com> (raw)
In-Reply-To: <BN8PR04MB6289E694A40BE7DF913754A1D0DF2@BN8PR04MB6289.namprd04.prod.outlook.com>
References: <BN8PR04MB6289E694A40BE7DF913754A1D0DF2@BN8PR04MB6289.namprd04.prod.outlook.com>
On Friday, July 5, 2024, Tefft, Michael J <[email protected]>
wrote:
> I am trying to remove the default grant of EXECUTE on all
> functions/procedures to PUBLIC.
>
> From my reading, there is no straightforward way to do this. For example,
>
> ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;
>
> Does not apply this across the entire cluster (or database) but only
> applies to the role who issued it (and objects yet to be created by that
> role) .
>
> So I am arriving at the conclusion that I need to alter the default
> privileges for every existing role (which I expected), and ensure that
> default privileges are altered for every new role that is created going
> forward.
>
>
>
> Have I analyzed this correctly?
>
>
>
Only those roles that have create privilege on one or more schemas. That
should be a reasonably finite and static set.
David J.
view thread (7+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Removing the default grant of EXECUTE on functions/procedures to PUBLIC
In-Reply-To: <CAKFQuwahMtaCfR+ifpm_jssA-+W4OEnXXXs_ce6+mYniqoCsQQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox