From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ted Toth <txtoth@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: security label and indexes
Date: Tue, 22 Nov 2022 15:33:06 -0500
Message-ID: <3552327.1669149186@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFPpqQHkr-cBRcJgkd5_o=ij_i=We4XUftx1+iqBTA03tXBn-A@mail.gmail.com>
References: <CAFPpqQHkr-cBRcJgkd5_o=ij_i=We4XUftx1+iqBTA03tXBn-A@mail.gmail.com>
Ted Toth <txtoth@gmail.com> writes:
> I noticed that the 'security label' sql command does not include indexes as
> objects that can be labeled, why is that? What sepgsql security class are
> indexes, db_table?
Indexes don't have security labels, just as they don't have SQL
permissions. From a security standpoint, they're implementation
details of the table they belong to. Whatever usage restrictions
you want should be put on the table, instead.
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, txtoth@gmail.com
Subject: Re: security label and indexes
In-Reply-To: <3552327.1669149186@sss.pgh.pa.us>
References: <CAFPpqQHkr-cBRcJgkd5_o=ij_i=We4XUftx1+iqBTA03tXBn-A@mail.gmail.com> <3552327.1669149186@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