hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Wen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1325) Allow queries related to pg_temp if ranger is enable
Date Mon, 13 Feb 2017 09:16:41 GMT
Lin Wen created HAWQ-1325:

             Summary: Allow queries related to pg_temp if ranger is enable
                 Key: HAWQ-1325
                 URL: https://issues.apache.org/jira/browse/HAWQ-1325
             Project: Apache HAWQ
          Issue Type: Sub-task
            Reporter: Lin Wen
            Assignee: Ed Espino
             Fix For:

Queries related to temp will send request to RPS, asking the privilege of schema "pg_temp_XXX",
like this:

./hawq-2017-02-13_142852.csv:2017-02-13 14:29:29.718445 CST,"linw","postgres",p71787,th-1324481600,"[local]",,2017-02-13
14:29:01 CST,    8477,con13,cmd3,seg-1,,,x8477,sx1,"DEBUG3","00000","send json request to
ranger : { ""requestId"": ""3"", ""user"": ""linw"", ""client    Ip"": """", ""context"":
""select * from temp1;"", ""access"": [ { ""resource"": { ""database"": ""postgres"", ""schema"":
""    pg_temp_13"", ""table"": ""temp1"" }, ""privileges"": [ ""select"" ] } ] }",,,,,,"select
* from temp1;",0,,"rangerrest.c",454,

In order to better control, for pg_temp_XX schema and objects in that schema, we should fall
back these checks to catalog without sending requests to RPS. 

This message was sent by Atlassian JIRA

View raw message