ACL Layer Design for the Wallet Introduction This is a description of the ACL layer of the wallet implementation. This is a specification of the expected behavior of the ACL implementation and includes the syntax and semantics of ACL strings used in the database. The ACL entries used by the wallet are intended to be an extensible format to which additional ACL backends may be added as needed. When new ACL backends are added, they should be described here. Syntax An ACL entry in the wallet consists of two pieces of data, a and an . is one or more characters in the set [a-z0-9-] that identifies the ACL backend to use when interpreting this ACL. is zero or more characters including all printable ASCII characters except whitespace. Only the implementation of knows about the meaning of . may include zero or more users. Semantics All users are authenticated to the wallet by Kerberos and are therefore represented by a Kerberos principal, which follows the normal Kerberos rules for string representation. Whenever there is a question about whether a user is permitted an action by a particular ACL, the following verification algorithm is used: Iterate through each ACL entry in the ACL in question. If the ACL entry is malformatted or the scheme is not recognized, skip it. Otherwise, dispatch the question to the check function of the ACL implementation, passing it the principal identifying the client and the portion of the ACL entry. This function returns either authorized or unauthorized. If authorized, end the search; if unauthorized, continue to the next ACL entry. There is no support in this scheme for negative ACLs. There is one slight complication, namely that some ACL methods need to maintain persistant state for performance reasons (consider, for example, an ACL layer implemented with LDAP queries). Therefore, each ACL handler should be represented by an object, and when the ACL code discovers it doesn't already have an object on hand for a given ACL scheme, it should construct one before querying it. If construction fails, it should fail that scheme and any ACL that uses that scheme, but still allow access if an ACL not using that scheme grants access to the user. ACL Schemes krb5 The is a fully-qualified Kerberos principal. Access is granted if the principal of the client matches . netdb is the name of a system. Access is granted if the user is listed as an administrator, user, or admin team member of the host in NetDB (Stanford's system management database). netdb-root This is almost identical to netdb except that the user must be in the form of a root instance (/root) and the "/root" portion is stripped before checking the NetDB roles. ldap-entitlement (Not yet implemented.) is an entitlement. If the entitlement attribute of the LDAP entry corresponding to the given principal contains the entitlement specified in , access is granted. pts (Not yet implemented.) is the name of an AFS PTS group. Access is granted if the principal of the user is a member of that AFS PTS group.