mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
fix(rds): check caller database permissions before retrying failed zero-ETL load (#9518)
Retrying a failed zero-ETL destination reloaded it through the admin connection without checking the caller, so a role that could not create the database still got it back. The retry now checks the caller's own privileges first: it goes ahead only for a superuser, or a role with CREATEDB that is a member of the database's owner, and otherwise refuses with PostgreSQL's own "permission denied to create database". The database name is quoted with PostgresWire.quoteLiteral. A nightly Docker check runs each condition against a real PostgreSQL 16, and both test classes share one fixture.
This commit is contained in:
1 parent
d6deccc5ba
commit
9fe75bf985
5 files changed
+301
-43
No files matched your search
@@ -58,6 +58,9 @@ if starts SsmSessionManagerDockerNightlyIntegrationTest; then
|
||||
pull debian:bookworm-slim
|
||||
pull postgres:17
|
||||
fi
|
||||
if starts RdsIntegrationRetryPermissionDockerNightlyIntegrationTest; then
|
||||
pull postgres:16-alpine
|
||||
fi
|
||||
if starts Ec2PublishedConnectionNightlyIntegrationTest; then
|
||||
ecr public.ecr.aws/docker/library/alpine:latest
|
||||
pull alpine/socat
|
||||
|
||||
Reference in new issue
Block a user