Files
scylladb/cql3
Dawid Pawlik 675f74b4b7 select_statement: check for access to CDC base table
Before the patch, user with CREATE access could create a table
with CDC or alter the table enabling CDC, but could not query
a SELECT on the CDC table they created.
It was due to the fact, the SELECT permission was checked on
the CDC log, and later it's "parent" - the keyspace,
but not thebase table, on which the user had SELECT permission
automatically granted on CREATE.

This patch matches the behaviour of querying the CDC log
to the one implemented for Materialized Views:
    1. No new permissions are granted on CREATE.
    2. When querying SELECT, the permissions on base table
SELECT are checked.

Fixes: #19798
(cherry picked from commit be54346846)
2025-09-08 07:39:52 +00:00
..
2025-01-28 21:14:49 +01:00
2025-01-28 21:14:49 +01:00
2025-02-25 10:32:32 +03:00