From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Petrossian <alexander.petrossian@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: Александр Петросян <paf@yandex.ru>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: debugger from superuser only.... why?
Date: Mon, 25 Sep 2023 10:28:34 -0400
Message-ID: <170505.1695652114@sss.pgh.pa.us> (raw)
In-Reply-To: <086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com>
References: <6006191695187640@mail.yandex.ru>
<CAKoxK+4AsQCWNLriWeo3R2G9fuGcxyC=eWijb4H6eN3N8ymBJg@mail.gmail.com>
<086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com>
Alexander Petrossian <alexander.petrossian@gmail.com> writes:
>>> I am wondering why is this, why not allow debugging for non-privileged users?
Seems obvious to me that it'd be a nasty security hole, ie you could
take control of somebody else's session and make it do things you
don't have permissions for. Even if there's a way to restrict
debugging connections to sessions owned by the same user, you'd
have a big problem with being able to change the behavior of
security-definer functions. Clearly, the authors of pldebugger
decided that was a can of worms they didn't care to open.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, alexander.petrossian@gmail.com, fluca1978@gmail.com, paf@yandex.ru
Subject: Re: debugger from superuser only.... why?
In-Reply-To: <170505.1695652114@sss.pgh.pa.us>
References: <6006191695187640@mail.yandex.ru> <CAKoxK+4AsQCWNLriWeo3R2G9fuGcxyC=eWijb4H6eN3N8ymBJg@mail.gmail.com> <086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com> <170505.1695652114@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