pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Is postgres_fdw "safe"?
4+ messages / 4 participants
[nested] [flat]

* Is postgres_fdw "safe"?
@ 2023-10-20 08:29 Marcin Borkowski <mbork@mbork.pl>
  2023-10-20 14:34 ` Re: Is postgres_fdw "safe"? Adrian Klaver <adrian.klaver@aklaver.com>
  2023-10-20 16:33 ` Re: Is postgres_fdw "safe"? Ron <ronljohnsonjr@gmail.com>
  2023-10-20 16:37 ` Re: Is postgres_fdw "safe"? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 3 replies; 4+ messages in thread

From: Marcin Borkowski @ 2023-10-20 08:29 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hello,

I noticed that the docs for postgres_fdw lack the clause about it being
"trusted".  Does that mean that `create extension postgres_fdw` poses
any known security risks?  If so, what should I do to minimize them?

TIA,

-- 
Marcin Borkowski
http://mbork.pl





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Is postgres_fdw "safe"?
  2023-10-20 08:29 Is postgres_fdw "safe"? Marcin Borkowski <mbork@mbork.pl>
@ 2023-10-20 14:34 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2023-10-20 14:34 UTC (permalink / raw)
  To: Marcin Borkowski <mbork@mbork.pl>; pgsql-general@lists.postgresql.org

On 10/20/23 01:29, Marcin Borkowski wrote:
> Hello,
> 
> I noticed that the docs for postgres_fdw lack the clause about it being
> "trusted".  Does that mean that `create extension postgres_fdw` poses
> any known security risks?  If so, what should I do to minimize them?

It allows connections to a database, so the same risks as any other 
client that does the same thing.

> 
> TIA,
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Is postgres_fdw "safe"?
  2023-10-20 08:29 Is postgres_fdw "safe"? Marcin Borkowski <mbork@mbork.pl>
@ 2023-10-20 16:33 ` Ron <ronljohnsonjr@gmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Ron @ 2023-10-20 16:33 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 10/20/23 03:29, Marcin Borkowski wrote:
> Hello,
>
> I noticed that the docs for postgres_fdw lack the clause about it being
> "trusted".  Does that mean that `create extension postgres_fdw` poses
> any known security risks?  If so, what should I do to minimize them?

I think a better question to ask is if extensions are implicitly trusted 
unless explicitly marked untrusted.

-- 
Born in Arizona, moved to Babylonia.





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Is postgres_fdw "safe"?
  2023-10-20 08:29 Is postgres_fdw "safe"? Marcin Borkowski <mbork@mbork.pl>
@ 2023-10-20 16:37 ` Tom Lane <tgl@sss.pgh.pa.us>
  2 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2023-10-20 16:37 UTC (permalink / raw)
  To: Marcin Borkowski <mbork@mbork.pl>; +Cc: pgsql-general@lists.postgresql.org

Marcin Borkowski <mbork@mbork.pl> writes:
> I noticed that the docs for postgres_fdw lack the clause about it being
> "trusted".  Does that mean that `create extension postgres_fdw` poses
> any known security risks?  If so, what should I do to minimize them?

It's a definitional question I guess.  We don't mark anything trusted
if it can be used to cause outside-the-database effects; and in this
case the ability to connect to other databases qualifies as that.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2023-10-20 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 08:29 Is postgres_fdw "safe"? Marcin Borkowski <mbork@mbork.pl>
2023-10-20 14:34 ` Adrian Klaver <adrian.klaver@aklaver.com>
2023-10-20 16:33 ` Ron <ronljohnsonjr@gmail.com>
2023-10-20 16:37 ` Tom Lane <tgl@sss.pgh.pa.us>

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