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
155530: logictest: flush out indirect unsafe access in logictests r=angles-n-daemons a=angles-n-daemons
We recently added a session variable which must be explicitly set
for a caller to access system and crdb_internal tables. There's a
concern however that the system will block due to "indirect" access, be
it query expansion, rewriting or anything else.
So users aren't surprised by this behavior, this PR modifies the
logictests so that by default, unless a query explicitly references the
system or crdb_internal tables, it will disallow access to the unsafe
internals. Doing so will hopefully flush out any possible instances of
unsafe access.
This PR also does a few things to make this possible:
- Introduces a way in tests to override the session variable.
- Adds a new knob option for the logictests, so that if there's
indirect access because a UDF is defined, the test writer can
explicitly allow for it.
Fixes: #154675Fixes: #155367
Epic: [CRDB-55276](https://cockroachlabs.atlassian.net/browse/CRDB-55276)
Release note: None
Co-authored-by: Kyle Wong <[email protected]>
0 commit comments