snowflakedb / native-apps-roadmap

NativeAppsRoadmap
0 stars 1 forks source link

Restricted Callers Rights #56

Open sfc-gh-dkulkarni opened 4 months ago

sfc-gh-dkulkarni commented 4 months ago

Native Apps currently execute with owners rights. They can of course use explicitly granted object references (e.g. view ref or sproc ref) to access those objects. But granting such references individually can be onerous & limited if the user needs to access all views, tables, functions - including those created in future - in a given schema or DB in the app that they already have access to.

This feature will allow an appropriately privileged role in the consumer account to grant Restricted Callers Rights to an app. The restrictions are in the form of:

  1. Specific operations; e.g. select
  2. Specific object types; e.g. views or all objects
  3. Specific containers; e.g. a schema, a DB

Note that RCR cannot be combined with owners rights. App must choose which one it wants to exercise for a given code path.