pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Wells Oliver <wells.oliver@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: RDS and postgres extension approval
Date: Thu, 21 Oct 2021 22:31:10 -0400
Message-ID: <2653740.1634869870@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYt1WJ0rUOAVONndioLfz_hzFRQKOpcGQU80L==0M_o4g@mail.gmail.com>
References: <CAOC+FBXoX1wYSrownCOAYwetebA9ghKE9q_XThrn_eMiY4thwA@mail.gmail.com>
	<CAKFQuwbZjgktk2RcAaGXjg-2jSLwob8RHMJ57DMRDnUH4R7=mg@mail.gmail.com>
	<CAOC+FBVBCcRgB8WGu0-ophNN0_5nmBTbtcvmTkGKPqOjq3R_bg@mail.gmail.com>
	<CAKFQuwYt1WJ0rUOAVONndioLfz_hzFRQKOpcGQU80L==0M_o4g@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thu, Oct 21, 2021 at 6:48 PM Wells Oliver <wells.oliver@gmail.com> wrote:
>> Is there anything out there written about what trusted means? The PG
>> community seems pretty trusting :)

> It basically means the programming language allows the author of the code
> to break out of the server and access the underlying operating system as
> the postgres user.

Right.  If RDS won't give you superuser, they sure as heck won't
give you an untrusted PL, because that's an even shorter path to
getting access to the underlying system.

> I believe this is written in the docs - but I haven't
> searched recently.

The CREATE LANGUAGE man page defines the flag as

      <literal>TRUSTED</literal> specifies that the language does
       not grant access to data that the user would not otherwise
       have.

That's a tighter definition than is of interest here --- for
example, a language that only gave you SQL access but let
you bypass SQL privilege checks would have to be not-trusted,
a conclusion I agree with.  In practice though, external PL
systems know darn little about SQL.  It's their ability to
access the underlying OS that makes them problematic.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <2653740.1634869870@sss.pgh.pa.us>
Permalink:  ../2653740.1634869870@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2653740.1634869870@sss.pgh.pa.us

 · 

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: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, wells.oliver@gmail.com
  Subject: Re: RDS and postgres extension approval
  In-Reply-To: <2653740.1634869870@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox