| From: | Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com> |
|---|---|
| To: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [oauth] Split and extend PGOAUTHDEBUG |
| Date: | 2026-04-01 18:50:42 |
| Message-ID: | CAOYmi+=865C93VegSzD9z4_uvutZwEZEUsS4P6jm3_i0paAMmA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Apr 1, 2026 at 10:09 AM Jacob Champion
<jacob(dot)champion(at)enterprisedb(dot)com> wrote:
> I didn't intend to introduce any new calls to
> oauth_get_debug_flags() over those already done in v1/v2; if I did
> that's a bug.
To make seeing that a little easier, here's the promised version of v3
as an exploded patch series with more detailed justification, based on
v2-0001.
I'm glad I did that, because I forgot to call attention to a
particular change I made that I think is important:
> fprintf(stderr,
> - "WARNING: PGOAUTHDEBUG: unsafe option \"%s\" requires UNSAFE: prefix (ignored)\n"
> - "Use: PGOAUTHDEBUG=UNSAFE:%s\n",
> - option, option);
> + libpq_gettext("WARNING: PGOAUTHDEBUG option \"%s\" is unsafe (ignored)\n"),
> + option);
`UNSAFE` is intended to be a weak defense against social engineering
attacks. So these warnings need to be translated, if possible, and we
should not provide instructions on how to defeat that defense. The
only people who _should_ be using an unsafe feature should also know
how to fix this problem.
--Jacob
| Attachment | Content-Type | Size |
|---|---|---|
| v3.1-0001-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-options.patch | application/octet-stream | 19.5 KB |
| v3.1-0002-squash-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-.patch | application/octet-stream | 6.1 KB |
| v3.1-0003-squash-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-.patch | application/octet-stream | 9.7 KB |
| v3.1-0004-squash-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-.patch | application/octet-stream | 4.5 KB |
| v3.1-0005-squash-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-.patch | application/octet-stream | 9.2 KB |
| v3.1-0006-squash-Split-PGOAUTHDEBUG-UNSAFE-into-multiple-.patch | application/octet-stream | 5.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Corey Huinker | 2026-04-01 18:53:50 | Re: Import Statistics in postgres_fdw before resorting to sampling. |
| Previous Message | Sami Imseih | 2026-04-01 18:45:59 | Re: Add pg_stat_autovacuum_priority |