FINE-GRAINED ACCESS CONTROL VIA DATABASE ROLES

    公开(公告)号:US20240037263A1

    公开(公告)日:2024-02-01

    申请号:US18378575

    申请日:2023-10-10

    申请人: Snowflake Inc.

    IPC分类号: G06F21/62 G06F16/25 G06F16/21

    摘要: Embodiments of the present disclosure relate to sharing data using database roles. Database roles are generated within a database container of a provider account. Grants to a particular subset of the plurality of data objects of the database container may be assigned to each of the database roles, and each of the database roles are granted to a share object. The share object is mounted within a consumer account to generate an imported copy of each of the database roles. The imported copy of one or more of the database roles is granted to each of one or more account level roles of the consumer account. When a new object is added to a particular database role, it is immediately available for consumption by any account level roles to which the imported copy of the particular database role has been granted.

    Fine-grained access control via database roles

    公开(公告)号:US11822689B2

    公开(公告)日:2023-11-21

    申请号:US18109191

    申请日:2023-02-13

    申请人: Snowflake Inc.

    IPC分类号: G06F21/62 G06F16/25 G06F16/21

    摘要: Embodiments of the present disclosure relate to sharing database roles using hidden roles. A database role may be generated within a database container having a plurality of data objects, wherein the database role exists exclusively within the database container. A set of grants to a particular subset of the plurality of data objects of the database container may be assigned to the database role and the database role may be granted to the share object. The share object is mounted within a consumer account to generate an imported database container within the consumer account, the imported database container including an imported copy of the database role. The imported copy of the database role may be granted to each of one or more account level roles of the consumer account to share the particular subset of the plurality of data objects without creating proxy objects in the consumer account that represent the particular subset of the plurality of data objects.

    Shared object discovery techniques

    公开(公告)号:US11809586B2

    公开(公告)日:2023-11-07

    申请号:US17980427

    申请日:2022-11-03

    申请人: Snowflake Inc.

    摘要: A consumer account may invoke an operation referencing a set of shared objects stored within a database of a provider account using an imported database that makes the set of shared objects available within the consumer account. A call context of the operation may be updated to cache the imported database, which references a share created from the provider account database, the share having grants to the set of shared objects. One or more database level objects may be discovered in a context of the share and each role granted to the share may be obtained based on the one or more database level objects. Whether any role granted to the share has access to any of the set of shared objects may be determined and the operation may be executed for each of the set of shared objects to which any role granted to the share has access.

    SHARED OBJECT DISCOVERY TECHNIQUES

    公开(公告)号:US20230135712A1

    公开(公告)日:2023-05-04

    申请号:US17980427

    申请日:2022-11-03

    申请人: Snowflake Inc.

    摘要: A consumer account may invoke an operation referencing a set of shared objects stored within a database of a provider account using an imported database that makes the set of shared objects available within the consumer account. A call context of the operation may be updated to cache the imported database, which references a share created from the provider account database, the share having grants to the set of shared objects. One or more database level objects may be discovered in a context of the share and each role granted to the share may be obtained based on the one or more database level objects. Whether any role granted to the share has access to any of the set of shared objects may be determined and the operation may be executed for each of the set of shared objects to which any role granted to the share has access.

    Account-level namespaces for database platforms

    公开(公告)号:US11249988B2

    公开(公告)日:2022-02-15

    申请号:US16945344

    申请日:2020-07-31

    申请人: Snowflake Inc.

    摘要: A database platform receives an object identifier from a client in association with a database session. The client is associated with a customer account of the database platform, and the database session is associated with the client. In response to receiving the object identifier, the database platform identifies a resolution namespace for the object identifier, where the resolution namespace for the object identifier is a namespace that is specified in the object identifier if the object identifier includes a specified namespace, and where the resolution namespace is otherwise a current account-level namespace of the database session. The database platform resolves the object identifier with reference to the identified resolution namespace for the object identifier, including identifying an object corresponding to the object identifier in the customer account.