Giter Club home page Giter Club logo

Comments (2)

anoopsjohn avatar anoopsjohn commented on July 28, 2024

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.

jyothi-mandava avatar jyothi-mandava commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.