Comments (2)
Thinking more on this..
bq.Basic implementation can be granting the same ACL as usertable
Yes but with per cell it becomes more and more complicated. There can be a multi column index with columns over diff CFs itself. Well these CFs can have diff user ACLs or even cells.
So what I am thinking now is creating a new CP impl for handling the AccessControl for the Index table.
The new CP can be registered at table level , with highest priority for the Index table.
This CP can be added only when the AC is ON for the user table. (AccessController CP is installed for the table)
The AC check on the user table is happened in pre hooks already. Then comes read/write to index regions. We will allow the read/write to index table only from IndexRegionObserver. So in the new CP impl, check whether this call comes from the IndexRegionObserver (Well we can make use of ThreadLocal (?)) If the call is not from IndexRegionObserver just AccessDeny the op. If it comes from, allow it and do a bypass call. This will bypass AC CP. This way we can avoid the patching done in AC code.
from hindex.
bq.Yes but with per cell it becomes more and more complicated. There can be a multi column index with columns over diff CFs itself. Well these CFs can have diff user ACLs or even cells
Yes index table ACL shouldn't depend on user table CF/cell ACLs. We should be able to find the complete index info from index table for the input and actual filtering based on CF/cell ACL has to happen on user table while forming the result.
Idea of by passing the check if the call is from IndexRegionObserver sounds great. This will be fine for handling the all operations like write/read etc on index table.
Coming to MasterObserverImpl, for DDL operations which can happen directly on Index tables like dynamic addition/deletion of indexes ( any operation which does not come through user table), we can allow only admin user ( or allowed users with Access Control for index table) to perform. This will restrict any other user from performing DDL operations on the index table directly.
from hindex.
Related Issues (20)
- hindex write issues HOT 7
- migrate hindex to hbase 0.96 or higher HOT 5
- deadlock in put operation HOT 3
- issues in put operation HOT 10
- how to use the index? HOT 8
- Error when compile with maven.
- How to use hindex for scanning data? HOT 20
- Steps to implement hindex to my hbase cluster HOT 6
- is there any new release based on hbase0.98.1+? HOT 3
- ERRORs in building with CDH5.1 HOT 10
- Indexing arbitrary column qualifier HOT 4
- Pending items in Arbitrary index feature
- Unify index details validation in preCreateTable and preModifyTable to allow proper indexes
- To determine the split threshold
- Perfomance about hindex in range search
- No compile document? HOT 3
- does hindex only support hbase 0.94.8?
- Your project Huawei-Hadoop hindex is using buggy third-party libraries [WARNING]
- 请求项目如何启动?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hindex.