Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29167

new db-level SHOW CREATE ROUTINE privilege

Details

    Description

      please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

      Update after discussing with Serg:
      EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

      This privilege related to PROCEDURE or FUNCTION or PACKAGE.

      The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
      Example:

      grant show create routine on *.* to user@localhost;
      show procedure code test_db.sp;
      

      Attachments

        Issue Links

          Activity

            niljoshi Nilnandan Joshi created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Summary SHOW CREATE ROUTINE should in included in ALL PRIVILEGES new db-level SHOW CREATE ROUTINE privilege
            serg Sergei Golubchik made changes -
            Description ALL PRIVILEGES on the database level consists of:

            SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, GRANT, REFERENCES,
            INDEX, ALTER, CREATE TMP, LOCK TABLES, EXECUTE, CREATE VIEW,
            SHOW VIEW, CREATE PROC, ALTER PROC, EVENT, TRIGGER, DELETE HISTORY

            It is requested to add SHOW CREATE ROUTINE in the ALL PRIVILEGES so we don't need to give separate permissions to view STORED PROCEDURE or FUNCTIONS of the database.
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db
            ralf.gebhardt Ralf Gebhardt made changes -
            Assignee Oleksandr Byelkin [ sanja ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 11.3 [ 28565 ]

            ROUTINES == PROCEDURE or FUNCTION or PACKAGE ?
            I think TRIGGER is not routine in this sens but part of the table, right?

            sanja Oleksandr Byelkin added a comment - ROUTINES == PROCEDURE or FUNCTION or PACKAGE ? I think TRIGGER is not routine in this sens but part of the table, right?
            sanja Oleksandr Byelkin made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:

            sanja Oleksandr Byelkin made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:

            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            SHOW_CREATE_ROUTINE_ACL inherited from compatibility from EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL, then SHOW ability determinated only by SHOW_CREATE_ROUTINE_ACL.
            sanja Oleksandr Byelkin made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            SHOW_CREATE_ROUTINE_ACL inherited from compatibility from EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL, then SHOW ability determinated only by SHOW_CREATE_ROUTINE_ACL.
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            SHOW_CREATE_ROUTINE_ACL inherited from compatibility from EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL, then SHOW ability determinated only by SHOW_CREATE_ROUTINE_ACL.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.
            sanja Oleksandr Byelkin made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            SHOW_CREATE_ROUTINE_ACL inherited from compatibility from EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL, then SHOW ability determinated only by SHOW_CREATE_ROUTINE_ACL.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.
            sanja Oleksandr Byelkin added a comment - - edited

            commit 44e692d0dbc69e2658e6e0e017d750fc62c0e8b8 (HEAD -> bb-11.3-MDEV-29167, origin/bb-11.3-MDEV-29167)
            Author: Oleksandr Byelkin <sanja@mariadb.com>
            Date:   Mon Sep 4 13:04:06 2023 +0200
             
                MDEV-29167 new db-level SHOW CREATE ROUTINE privilege
            

            sanja Oleksandr Byelkin added a comment - - edited commit 44e692d0dbc69e2658e6e0e017d750fc62c0e8b8 (HEAD -> bb-11.3-MDEV-29167, origin/bb-11.3-MDEV-29167) Author: Oleksandr Byelkin <sanja@mariadb.com> Date: Mon Sep 4 13:04:06 2023 +0200   MDEV-29167 new db-level SHOW CREATE ROUTINE privilege
            sanja Oleksandr Byelkin made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            sanja Oleksandr Byelkin made changes -
            Assignee Oleksandr Byelkin [ sanja ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Oleksandr Byelkin [ sanja ]
            Status In Review [ 10002 ] Stalled [ 10000 ]

            commit 5c487eb813b50f4d7de55acb8229b192ce396e8b (HEAD -> bb-11.3-MDEV-29167)
            Author: Oleksandr Byelkin <sanja@mariadb.com>
            Date:   Wed Sep 6 09:54:42 2023 +0200
             
                Convert priveleges string representation definition to non-error-pron STRING_WITH_LEN
             
            commit 1b986fc4a078a4da166a54161fc51605b5e2d52e
            Author: Oleksandr Byelkin <sanja@mariadb.com>
            Date:   Mon Sep 4 13:04:06 2023 +0200
             
                MDEV-29167 new db-level SHOW CREATE ROUTINE privilege
            

            sanja Oleksandr Byelkin added a comment - commit 5c487eb813b50f4d7de55acb8229b192ce396e8b (HEAD -> bb-11.3-MDEV-29167) Author: Oleksandr Byelkin <sanja@mariadb.com> Date: Wed Sep 6 09:54:42 2023 +0200   Convert priveleges string representation definition to non-error-pron STRING_WITH_LEN   commit 1b986fc4a078a4da166a54161fc51605b5e2d52e Author: Oleksandr Byelkin <sanja@mariadb.com> Date: Mon Sep 4 13:04:06 2023 +0200   MDEV-29167 new db-level SHOW CREATE ROUTINE privilege
            sanja Oleksandr Byelkin made changes -
            Assignee Oleksandr Byelkin [ sanja ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]

            commit ecc135603805a36688b5ec55fe04fa2feee8e565 (HEAD -> bb-11.3-MDEV-29167, origin/bb-11.3-MDEV-29167)
            Author: Oleksandr Byelkin <sanja@mariadb.com>
            Date:   Mon Sep 4 13:04:06 2023 +0200
             
                MDEV-29167 new db-level SHOW CREATE ROUTINE privilege
            

            sanja Oleksandr Byelkin added a comment - commit ecc135603805a36688b5ec55fe04fa2feee8e565 (HEAD -> bb-11.3-MDEV-29167, origin/bb-11.3-MDEV-29167) Author: Oleksandr Byelkin <sanja@mariadb.com> Date: Mon Sep 4 13:04:06 2023 +0200   MDEV-29167 new db-level SHOW CREATE ROUTINE privilege

            ecc1356038 is ok to push

            serg Sergei Golubchik added a comment - ecc1356038 is ok to push
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Oleksandr Byelkin [ sanja ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            sanja Oleksandr Byelkin made changes -
            Status Stalled [ 10000 ] In Testing [ 10301 ]
            sanja Oleksandr Byelkin made changes -
            Assignee Oleksandr Byelkin [ sanja ] Alice Sherepa [ alice ]
            sanja Oleksandr Byelkin made changes -
            Assignee Alice Sherepa [ alice ] Oleksandr Byelkin [ sanja ]
            sanja Oleksandr Byelkin made changes -
            Assignee Oleksandr Byelkin [ sanja ] Lena Startseva [ JIRAUSER50478 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels Preview_11.3

            Testing done, ok to push

            lstartseva Lena Startseva added a comment - Testing done, ok to push
            lstartseva Lena Startseva made changes -
            Assignee Lena Startseva [ JIRAUSER50478 ] Oleksandr Byelkin [ sanja ]
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            sanja Oleksandr Byelkin made changes -
            issue.field.resolutiondate 2023-10-18 06:03:33.0 2023-10-18 06:03:33.396
            sanja Oleksandr Byelkin made changes -
            Fix Version/s 11.3.1 [ 29416 ]
            Fix Version/s 11.3 [ 28565 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            monty Michael Widenius made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one has hte
            monty Michael Widenius made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one has hte
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            <<sql>>
            grant show create routine on *.* to user@localhost;
            show procedure
            monty Michael Widenius made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            <<sql>>
            grant show create routine on *.* to user@localhost;
            show procedure
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            <<sql>>
            grant show create routine on *.* to user@localhost;
            show procedure code test_db.sp;
            <</sql>>
            monty Michael Widenius made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            <<sql>>
            grant show create routine on *.* to user@localhost;
            show procedure code test_db.sp;
            <</sql>>
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            {noformat}
            grant show create routine on *.* to user@localhost;
            show procedure code test_db.sp;
            {noformat}
            serg Sergei Golubchik made changes -
            Description please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            {noformat}
            grant show create routine on *.* to user@localhost;
            show procedure code test_db.sp;
            {noformat}
            please, add a new db-level privilege SHOW CREATE ROUTINE so that the user with ALL PRIVILEGES on db level would be able to see all routines in that db

            Update after discussing with Serg:
            EXECUTE_ACL CREATE_PROC_ACL ALTER_PROC_ACL allow to get info about the routine, but SHOW_CREATE_ROUTINE_ACL should give the text.

            This privilege related to PROCEDURE or FUNCTION or PACKAGE.

            The effect of this MDEV is that one can give a user the 'show create routine' privilege, which allows the user to see the procedure text:
            Example:
            {code:sql}
            grant show create routine on *.* to user@localhost;
            show procedure code test_db.sp;
            {code}
            ralf.gebhardt Ralf Gebhardt made changes -
            serg Sergei Golubchik made changes -
            ralf.gebhardt Ralf Gebhardt made changes -
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 106381
            ralf.gebhardt Ralf Gebhardt made changes -

            People

              sanja Oleksandr Byelkin
              niljoshi Nilnandan Joshi
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.