Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25547

ALTER VIEW AS SELECT statement should create authorizable events in HiveServer2

    XMLWordPrintableJSON

Details

    Description

      Consider the scenario:

      -- A privileged user is doing the following actions.
      Create table foo_tbl(i int);
      Create table foo_bar(name string);
      Create view foo_view as select * from foo_tbl;
      
      -- An unprivileged user can do the following operation, when he/she has select privileges on foo_bar table but he/she doesn't have any privileges on foo_tbl or foo_view.
      alter view foo_view as select * from foo_bar;

      An unauthorized user shouldn't be able to alter the view schema when he/she doesn't have any privileges on that view.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              hemanth619 Sai Hemanth Gantasala
              hemanth619 Sai Hemanth Gantasala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m