mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
* 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>