You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was deprecated a couple releases ago in favor of using more standard approaches of
either a) telling users to grant or revoke membership in a role that has ownership of a job
to manage access to that job or b) features built on top of jobs can have their own control
statements that perform their own auth checks before modifying or creating jobs if they so choose.
With this having been deprecated for a couple of major releases now with the public docs suggesting
using role membership instead, it can now be deleted to simplify the auth checks the jobs system
needs to perform, paving the way for replacing the complex logic in the vtable for SHOW JOBS with a
simple view instead.
Release note (ops change): Non-admin users no longer have access to changefeed jobs they do not
own and which are not owned by a role of which they are a member, regardless of whether they have the
CHANGEFEED privilege on the table or tables those jobs may be watching. Admin users, or those with
global SHOWJOB / CONTROLJOB privileges can still interact with all jobs, regardless of ownership.
Epic: CRDB-48791.
userDB.ExpectErr(t, "pq: user jobcontroller requires the CHANGEFEED privilege on all target tables to be able to run an enterprise changefeed", fmt.Sprintf(`ALTER CHANGEFEED %d DROP table_b`, currentFeed.JobID()))
userDB.ExpectErr(t, "pq: user userwithsomegrants does not have CHANGEFEED privilege on relation table_b", fmt.Sprintf(`ALTER CHANGEFEED %d ADD table_b`, currentFeed.JobID()))
1888
+
userDB.ExpectErr(t, "does not have privileges for job", fmt.Sprintf(`ALTER CHANGEFEED %d ADD table_b`, currentFeed.JobID()))
userDB.ExpectErr(t, "pq: user regularuser does not have CHANGEFEED privilege on relation (table_a|table_b)", fmt.Sprintf(`ALTER CHANGEFEED %d ADD table_b`, currentFeed.JobID()))
1891
+
userDB.ExpectErr(t, "does not have privileges for job", fmt.Sprintf(`ALTER CHANGEFEED %d ADD table_b`, currentFeed.JobID()))
0 commit comments