Files
floci/docs
Matheus Oliveira c22ded931a fix(rds): run IAM PostgreSQL sessions as the role named in the token (#3106)
* fix(rds): run IAM PostgreSQL sessions as the role named in the token

The proxy validated the token and then connected as master. It now hands
the session over with SET SESSION AUTHORIZATION, so the role's own
privileges apply and an unknown role is refused.

Closes #3087

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(rds): keep IAM PostgreSQL sessions from switching back to master

The backend connection is master underneath, so RESET SESSION AUTHORIZATION
regained superuser. The proxy now watches PostgreSQL's own
session_authorization report and terminates the session when it changes.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
2026-09-05 21:24:39 -04:00
..
2026-03-15 17:43:56 -05:00