From 68574664f484c01528d6890bf238ac3824f3046a Mon Sep 17 00:00:00 2001 From: Paul Ebermann Date: Tue, 15 Aug 2023 20:57:13 +0200 Subject: [PATCH] Add DELETE permission to the eventlog table. Without this, an application user who is not owner of the database/table (or superuser) can't delete events after sending them out. Fixes #101. --- .../migrations/V2/V2133546886.1.2__grant_delete_permissions.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 nakadi-producer-spring-boot-starter/src/main/resources/db_nakadiproducer/migrations/V2/V2133546886.1.2__grant_delete_permissions.sql diff --git a/nakadi-producer-spring-boot-starter/src/main/resources/db_nakadiproducer/migrations/V2/V2133546886.1.2__grant_delete_permissions.sql b/nakadi-producer-spring-boot-starter/src/main/resources/db_nakadiproducer/migrations/V2/V2133546886.1.2__grant_delete_permissions.sql new file mode 100644 index 0000000..7379147 --- /dev/null +++ b/nakadi-producer-spring-boot-starter/src/main/resources/db_nakadiproducer/migrations/V2/V2133546886.1.2__grant_delete_permissions.sql @@ -0,0 +1 @@ +GRANT DELETE ON nakadi_events.event_log TO PUBLIC;