Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Adding Role resource and RBAC grants #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

donaldjarmstrong
Copy link

Resolves #87

Features:

  • Added create role resource
    CREATE ROLE role_name
    UNIMPLEMENTED [ EXTERNALID external_id ]

  • Added assignment of grant to role
    TO { username [ WITH GRANT OPTION ] | ROLE role_name | GROUP group_name | PUBLIC } [, ...]

  • Added grant role to role or user
    GRANT { ROLE role_name } [, ...] TO { { user_name [ WITH ADMIN OPTION ] } | ROLE role_name }[, ...]
    UNIMPLEMENTED: [ WITH ADMIN OPTION ]

  • Added grant role permissions

  {
    { CREATE USER | DROP USER | ALTER USER |
    CREATE SCHEMA | DROP SCHEMA |
    ALTER DEFAULT PRIVILEGES |
    CREATE TABLE | DROP TABLE | ALTER TABLE |
    CREATE OR REPLACE FUNCTION | CREATE OR REPLACE EXTERNAL FUNCTION |
    DROP FUNCTION |
    CREATE OR REPLACE PROCEDURE | DROP PROCEDURE |
    CREATE OR REPLACE VIEW | DROP VIEW |
    CREATE MODEL | DROP MODEL |
    CREATE DATASHARE | ALTER DATASHARE | DROP DATASHARE |
    CREATE LIBRARY | DROP LIBRARY |
    CREATE ROLE | DROP ROLE
    TRUNCATE TABLE
    VACUUM | ANALYZE | CANCEL }[, ...]
  }
  | { ALL [ PRIVILEGES ] }
TO { ROLE role_name } [, ...]

UNIMPLEMENTED: | { ALL [ PRIVILEGES ] }

@donaldjarmstrong donaldjarmstrong marked this pull request as ready for review October 18, 2023 23:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RBAC/Role support
1 participant