pg.ddx.io  GitHub: pgjdbc/pgjdbc (issues + PRs as email threads)  
help / color / mirror / Atom feed
From: vlsi (@vlsi) <noreply+vlsi@github.com>
To: pgjdbc/pgjdbc <noreply+pgjdbc-pgjdbc@github.com>
Subject: Re: [pgjdbc/pgjdbc] PR #4251: OAuth implementation
Date: Wed, 23 Sep 2026 06:43:33 +0000
Message-ID: <gh-pgjdbc-pgjdbc-4251-rc4079734579@github.com> (raw)
In-Reply-To: <gh-pgjdbc-pgjdbc-4251@github.com>
References: <gh-pgjdbc-pgjdbc-4251@github.com>

(on pgjdbc/src/main/java/org/postgresql/core/v3/OAuthAuthenticator.java:84)

pgjdbc logs through `java.util.logging`, whose default console handler prints WARNING to stderr, so this fires once per connection in any host that never configured logging. A pool of 50 prints 50 two-line blocks, and so does every pool refill. The user opted in by name, so the record carries no news after the first one.

Log WARNING once per JVM, then FINE. Add the host (`pgStream.getHostSpec()`), so the reader can tell which DataSource logged it. Drop the RFC citation and "Do not use this configuration in production", for example:

```
Sending the OAuth bearer token to {0} over TLS without verifying the server certificate (sslmode={1}), because oauthAllowInsecureConnection=true
```

view thread (168+ messages)  latest in thread

Message-ID: <gh-pgjdbc-pgjdbc-4251-rc4079734579@github.com>
Permalink:  ../gh-pgjdbc-pgjdbc-4251-rc4079734579@github.com/

 · 


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