Secure Views & Row Access Policies
Restrict which rows and query internals users can see based on their role or attributes.
A secure view hides its underlying query definition and execution details from users who have access to query the view but not to the underlying base tables directly — regular views can leak information through query optimizer behavior (e.g., a WHERE clause pushed into the view revealing data that should be hidden) and through SHOW/DESCRIBE exposing the view's SQL text. Secure views close both gaps at a modest performance cost, since the optimizer can no longer freely rewrite/merge the view's logic with the outer query in the same aggressive ways.
A row access policy is like a security guard checking ID at each row of a filing cabinet drawer, only handing over the folders that match your clearance, while a secure view is like a one-way mirror that lets you see the result of a computation without seeing the notes on how it was calculated.