Access Control Specification * Possibility to deny permissions Terminology * An accreditable is either a user, a group, an IP range, or the world. * A credential is an assignment of a role to an accreditable. Names * We use the following names: o n - a node o parent(n) - the parent node of n o n.c1, ..., n.ci - the credentials of the node n o acc(c) - the accreditable which the credential refers to o role(c) - the role which the credential assignes to the accreditable o method(c) - the method of the credential Concept * Credential methods can be grant or deny. * The order of credentials at a node is important. * To find out if a certain accreditable a has a role r for the node n, use the following algorithm: o Search for the first matching credential, starting with the first credential of the node n. o If no credential of n matches the accreditable, continue with the parent node. o When a credential is found which assigns the role r to the accreditable a, return the method of the credential. o If no credential is found up to the top, return deny. Role resolving algorithm * while not matched: o for c : n.ci to n.c1: + if acc(c) = a and role(c) = r, return method(c) o n := parent(n) * return deny User interface The user interface has to allow the following operations: * add/remove credentials for users, groups, world * set the credential method * change credential order (move up/down) ************************************************************** Examples: ********* Like stated above the order of the credential is important. Credentials are builded from policies. Imaginge you are trying to access http://localhost:8888/default/introduction.html The defined policy (with highest priority) would be: config/ac/policies/introduction.html/subtree-policy.acml Imaginge you have defined: Then you try to login in with user "lenya" who is in the editor group. However you will not be successful, because everybody always is world. Since the DENY of world is coming first nobody will now be able to see the page. Changing above policy to Let all user of the group editor access the page. Best practise is to deny access early in a node tree of policies for e.g. WORLD.