forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
558 stars 227 forks source link

Add SQL-ish security features using HBase VisibilityController #553

Open apurtell opened 10 years ago

apurtell commented 10 years ago

In HBase 0.98, cell-level security will be available. See this overview. Once Phoenix works on 0.96, we should add support for visibility labels to our SQL grammar.

apurtell commented 10 years ago

The Postgres precedent is SECURITY LABEL.

As with https://github.com/forcedotcom/phoenix/issues/541, to apply labels at a per-cell granularity, we can combine a similar syntax with SELECT. Phoenix would execute the query, retrieve the cells, add the CellVisibility expression provided in the statement, and store the updated cells back at their exact coordinates. Can be done in a coprocessor or filter to avoid any round trips over the network.