Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-716

Hive pluing does not correctly enforce privileges for new in case of nested queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.0
    • None
    • None
    • None

    Description

      A nested query on view incorrectly enforces base table privileges instead of view privileges. For example,

      create view v1 as select * from t1;
      grant select on table v1 to role test;
      select * from ( select * from v1) v2;
      

      doesn't work if you have read privilege on view v1. It only works when you have read privilege on underlying table t1.

      Attachments

        1. SENTRY-716.patch
          2 kB
          Ryan P

        Issue Links

          Activity

            People

              Ryan P Ryan P
              prasadm Prasad Suresh Mujumdar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: