Documentation
¶
Overview ¶
Package execscope computes the workspace catalog scope a user-identity session may reach (ADR 0018 §5). It is the only place outside queryengine that builds a session's AllowedCatalogsSource; call sites pass its result into SessionSpec instead of setting Identity.UserID without a scope.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func For ¶
For returns engine_scope(workspace, engine): the engine-side catalog names of every enabled, active binding the workspace may use on that engine. The source re-reads the scope before each statement, so a revocation stops the next statement instead of the next run.
A catalog name containing "," or "=" is refused: the guard splits baleia.catalogs on "," (and Trino the header on "="), so such a name would be read as two grants. Names are validated at creation, so this is fail-closed defense in depth.