The technology described in this patent document relates generally to computer resource management and specifically to resource authorization management.
Many computer systems have to cope with a diverse set of users requesting access to resources stored within systems. An example of users requesting access involves requests to access a directory-based file system. In this situation, access may be determined by defining access boundaries through analysis of a straightforward hierarchical convention involving the resource.
As an illustration,
A multithreaded object server may support multiple, concurrent users that make requests for various defined object types. For example, an object may be a meta-data object stored in a meta-data repository. In a large-scale production server, the sheer number of objects, coupled with the volume of requests can be enormous. This can impact scalability, especially when factoring in the authorization overhead for each requested object.
In accordance with the teachings provided herein, systems and methods are provided for accessing resource objects in a multi-threaded environment. A request may be received from a requester to perform an operation with respect to a resource object, where the requested resource object has multiple associations with other objects. An authorization cache may be searched for an authorization cache entry corresponding to the requested resource object, and an authorization cache entry corresponding to the requested resource object may be built when no authorization cache entry corresponding to the requested resource object is located by the searching. A determination as to whether the authorization cache entry corresponding to the requested resource object contains sufficient permission data for granting or denying the request for access to the requested resource object may be made, and a grant or deny of access to the requested resource object may be returned when the authorization cache entry corresponding to the requested resource object contains sufficient permission data.
As an additional example, a processor-implemented system for accessing resource objects in a multi-threaded environment may include a receiver configured to receive a request to perform an operation with respect to a resource object where the requested resource object has multiple associations with other objects, and the multiple associations with other objects include multiple direct parent associations. A search engine may be configured to search an authorization cache for an authorization cache entry corresponding to the requested resource object, and a cache entry builder may be configured to build an authorization cache entry corresponding to the requested resource object when no authorization cache entry corresponding to the requested resource object is located by the search engine. A permission entry evaluator may be configured to determine whether the authorization cache entry corresponding to the requested resource object contains sufficient permission data for granting or denying the request for access to the requested object, where a grant or deny of access to the requested resource object is returned when the authorization cache entry corresponding to the requested resource object contains sufficient permission data. A grant or deny of access to the requested resource object may be determined by the permission entry evaluator using inherited permission data from the multiple other objects associated with the requested resource object when the authorization cache entry corresponding to the requested resource object contains insufficient permission data.
As a further example, a method of synchronizing modifications to a cache of permissions controlling access to a network of objects in a multi-threaded environment, where an object has multiple associations with other objects, where the multiple associations with other objects include multiple direct parent associations may include monitoring thread processing to detect the addition or deletion of a relationship between a child object and a parent object. The monitoring may include queuing the parent object in a thread specific inheritance change queue upon detection of an addition or deletion of a relationship between a child object and a parent object and adding the child object to the queued parent object record in the thread specific inheritance change queue. The method may further include monitoring thread processing to detect the modification of an access control object. This monitoring may include queuing the modification of an access control object in a thread specific association change queue. The method may further include monitoring thread processing to detect the deletion of a deleted object that includes queuing the deleted object in a thread specific delete queue. The method may also include executing changes detailed in records of the thread specific inheritance change queue, the thread specific association change queue, and the thread specific delete queue upon a thread commit operation under protection of an exclusive cache lock.
As part of its processing, the access request processor 102 accesses one or more data stores 130. The data stores 130 contain information 132 about which resource objects 110 are associated with which authorization-related objects 112. This association information is used to join the other non-authorization related objects in a myriad of ways, creating a network of paths between objects. FIGS. 1-8 of U.S. Pat. No. 7,370,344, incorporated by reference above, illustrate the use of associations in conjunction with inheritance rules indicated in
The model shown in
An association object describes the linkage between two objects. The association container can be queried for association objects, and intermediate query results can be aggregated for final authorization determination. An object which can be involved in an association is an Access Control Entry (ACE) object. An Access Control Entry (e.g., ACE 202) is related by association objects to the following: the object that it protects; one or more permission objects; and one or more identity objects.
A system can be configured to use association containers by recognizing that information to determine authorization is contained in associations between authorization-related objects. Association objects can reside in their own association container that is queried during the authorization determination process. With this configuration, a system does not have to query or instantiate actual permission objects (e.g., objects 210, 212, 214, 218, 220) or identity objects (e.g., objects 240, 242).
The objects shown in
The model shown in
A set of authorization inheritance rules is used to traverse associations that comprise an network of “inheritance parent” objects whereby an access control decision for an object may be determined indirectly “by inheritance” for an object. It should be noted that this inheritance mechanism is not limited to a hierarchy. It may also be a true network where multiple parents at multiple levels are possible.
Inheritance is the means by which authorization is determined for objects that do not have directly applied authorizations or where such authorizations do not match the requesting identity/required permission. With the inheritance mechanism, authorization-related objects normally are applied to a relatively small number of the total number of objects in a server. Inheritance uses associations to traverse a network of parent objects, which determine the access control decision.
A server defines a large set of generalized object types as well as more specialized authorization-related object types that maintain access control definitions for generalized objects. In addition there is a special association object type used to define various role and cardinality relationships between objects. Associations are used to join the authorization objects that provide access control on other objects. Associations exist between access control objects and the objects they protect. Techniques of optimization are described where the set of authorization objects are queried and transformed into an in-memory cache at the initial access control decision request for an object. Thereafter, decisions for this object can be satisfied from the in-memory cache. As an example, an authorization caching scheme maintains in-memory references between cache entries that are related according to associations described by the inheritance model. Because a large percentage of access control decisions are determined by inheritance, the cache may eliminate the need for repeated association queries to determine the same inheritance parents. By eliminating repeated queries to determine both direct and inherited access control decisions, authorization overhead may be substantially reduced over the lifetime of a running server.
An authorization cache may include objects with direct access controls, AccessControlTemplates (ACTs), that can be referenced by objects or represent the Repository ACT, and the network of objects related by inheritance.
In-memory cache entries may be constructed incrementally and/or on-demand as the objects they represent are directly requested, or indirectly required due to inheritance. When a cache entry is constructed for an object protected by direct access control objects, a minimal set of association queries retrieve these objects into memory. The associations are then correlated and transformed into a dense format in the identity/permission table portion of each cache entry.
Also during construction of the cache entry, if any ACTs protect the object, these are first looked up in the ACT index for the cache. For each such ACT, if the ACT itself is already cached, the new object cache entry is simply set to reference it. If not, the ACT cache entry is created and a reference to it is then set in the cache entry for the protected object.
Access control decision requests drive the inheritance parent cache construction. New inheritance parents may be built on-demand when an access control decision cannot be determined from direct access controls on the requested object or any already-cached ancestor parents. Inheritance parent authorization cache entries necessary to determine the immediate access control decision are constructed. Memory consumption is minimized by not allocating an Identity/Permission table, and/or the ACT reference array, and/or Inheritance Parent reference array for authorization cache entries corresponding to objects for which this information does not apply.
Authorization caching may feature a granular locking strategy, allowing it to run safely in a multithreaded environment, where concurrent threads may be processing the same objects and their corresponding cache entries. A lock manger may keep a pool of locks that are serially reused by concurrent threads as various cache elements require locking. A lock may be obtained from the manager whenever a cache entry is to be locked for inspection or modification. This lock is keyed by the object's ID corresponding to the authorization cache entry. If the particular cache operation is modifying the entry, an exclusive lock is obtained; otherwise if the entry is simply being inspected, a shared lock is obtained. Operations on cache entries occur very quickly so locks are held for short durations and then released back to the pool for reuse.
The authorization cache may also include full synchronization with all related object additions, updates, or deletions that occur in the server. Synchronization may be implemented in two phases. Phase 1 monitors access control and inheritance parent related object changes per-thread during server execution. In phase 2, the captured changes from phase 1 are “surgically” committed once object-level changes for the thread are persisted to the underlying data store. This ensures that the cache will not be out-of-synch with direct authorizations or inheritance parents maintained in cache entries. Inheritance parent changes and/or object deletions are applied to the cache during synchronization. Changes in direct authorizations result in the cache entry being flagged for rebuild the next time the object it represents is referenced.
In one implementation, the cache entries that require change are those actually impacted by related object changes in the server. The remainder of the authorization cache may be left untouched and intact. During synchronization, the cache may already have grown to represent thousands, even millions of objects. Avoiding a rebuild of the entire cache for incremental authorization changes and/or inheritance parent network changes can substantially reduce authorization queries and computation time over the cache lifetime.
An example set of identity precedence rules is depicted at 23-30. Note that in the following discussion the term ACE is used as shorthand to represent authorizations coming from the cache entry's identity/permission table. At 23, if the located ACEs (represented by the cache entry identity/permission table) provide a grant or deny decision based on the primary identity, then that decision is indicated and returned at 28, 30. If a grant|deny decision is not made on the primary identity in an ACE or if the entry does not have an identity/permission table, then a check for ACT references may be made at 24. If the authorization cache entry contains an ACT reference, then a check is made at 25 to determine if an ACT grant|deny decision may be made based on the primary identity. If such a decision can be made, then the decision is indicated and returned, as shown at 26, 28, 30. If an ACT grant|deny decision cannot be made from the primary identity, then a determination as to whether a grant|deny decision may be made from an ACE or ACT based on the group membership of the requester. An ACE decision based on group membership may take priority over an ACT decision depending on Identity precedence. Therefore, a decision coming from a group with the highest precedence may be returned no matter if the group comes from an ACE or ACT. However, if two groups with same precedence “tie” and one such group is from an ACE then the decision may come from the ACE (represented in the cache entry identity/permission table) because the ACE has greater authorization precedence in this case. If such a decision can be made, then it is indicated at 28 and returned at 30. Otherwise, an indication is made that an access control decision is to be made based on the inheritance network, as shown at 29. An example of such a process is depicted in
If a current cache entry for the parent references has already been built at 32, then the first parent is fetched from the parent reference array at 33. The cache entry corresponding to the parent is checked for an authorization decision. For example, this checking may be executed in accordance with the process depicted in
Part A (steps 63-69 as shown in
Part B (steps 69-76 as shown in
Part C (steps 77-79 as shown in
Phase 2 of authorization cache synchronization updates the authorization cache changes as the final stage in a thread's transaction commit, after all objects have been written to persistent storage. This occurs under an exclusive lock that protects the cache and all related resources. The work in phase 2 is divided into three parts as in phase 1.
This written description uses examples to disclose the invention, including the best mode, and also to enable a person skilled in the art to make and use the invention. The patentable scope of the invention may include other examples. For example, the systems and methods may include data signals conveyed via networks (e.g., local area network, wide area network, internet, combinations thereof, etc.), fiber optic medium, carrier waves, wireless networks, etc. for communication with one or more data processing devices. The data signals can carry any or all of the data disclosed herein that is provided to or from a device.
Additionally, the methods and systems described herein may be implemented on many different types of processing devices by program code comprising program instructions that are executable by the device processing subsystem. The software program instructions may include source code, object code, machine code, or any other stored data that is operable to cause a processing system to perform the methods and operations described herein. Other implementations may also be used, however, such as firmware or even appropriately designed hardware configured to carry out the methods and systems described herein.
The systems' and methods' data (e.g., associations, mappings, data input, data output, intermediate data results, final data results, etc.) may be stored and implemented in one or more different types of computer-implemented data stores, such as different types of storage devices and programming constructs (e.g., RAM, ROM, Flash memory, flat files, databases, programming data structures, programming variables, IF-THEN (or similar type) statement constructs, etc.). It is noted that data structures describe formats for use in organizing and storing data in databases, programs, memory, or other computer-readable media for use by a computer program.
The systems and methods may be provided on many different types of computer-readable media including computer storage mechanisms (e.g., CD-ROM, diskette, RAM, flash memory, computer's hard drive, etc.) that contain instructions (e.g., software) for use in execution by a processor to perform the methods' operations and implement the systems described herein.
The computer components, software modules, functions, data stores and data structures described herein may be connected directly or indirectly to each other in order to allow the flow of data needed for their operations. It is also noted that a module or processor includes but is not limited to a unit of code that performs a software operation, and can be implemented for example as a subroutine unit of code, or as a software function unit of code, or as an object (as in an object-oriented paradigm), or as an applet, or in a computer script language, or as another type of computer code. The software components and/or functionality may be located on a single computer or distributed across multiple computers depending upon the situation at hand.
It should be understood that as used in the description herein and throughout the claims that follow, the meaning of “a,” “an,” and “the” includes plural reference unless the context clearly dictates otherwise. Also, as used in the description herein and throughout the claims that follow, the meaning of “in” includes “in” and “on” unless the context clearly dictates otherwise. Finally, as used in the description herein and throughout the claims that follow, the meanings of “and” and “or” include both the conjunctive and disjunctive and may be used interchangeably unless the context expressly dictates otherwise; the phrase “exclusive or” may be used to indicate situation where only the disjunctive meaning may apply.
This application is a continuation of, and claims priority to,. U.S. patent application Ser. No. 12/538,561, now U.S. Pat. No. 8,555,378, filed on Aug. 10, 2009, entitled “Authorization Caching in a Multithreaded Object Server,” which claims the benefit under 35 U.S.C. §119(e) of U.S. Provisional Application No. 61/159,274, filed on Mar. 11, 2009, entitled “Authorization Caching in a Multithreaded Object Server.” The disclosure of the foregoing applications are herein incorporated by reference in their entirety and for all purposes. This disclosure is related to U.S. Pat. No. 7,370,344, entitled “Computer-Implemented Data Access Security System and Method” and to U.S. Pat. No. 7,644,086, entitled“Computer-Implemented Authorization Systems and Methods Using Associations,” the entirety of both of which are herein incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
5261102 | Hoffman | Nov 1993 | A |
5335346 | Fabbio | Aug 1994 | A |
5742759 | Nessett et al. | Apr 1998 | A |
5941947 | Brown et al. | Aug 1999 | A |
6192361 | Huang | Feb 2001 | B1 |
6286005 | Cannon | Sep 2001 | B1 |
6292798 | Dockter et al. | Sep 2001 | B1 |
6308274 | Swift | Oct 2001 | B1 |
6374292 | Srivastava et al. | Apr 2002 | B1 |
6470079 | Benson | Oct 2002 | B1 |
6530081 | Hayes, Jr. | Mar 2003 | B1 |
6928398 | Fang et al. | Aug 2005 | B1 |
6941472 | Moriconi et al. | Sep 2005 | B2 |
6976090 | Ben-Shaul et al. | Dec 2005 | B2 |
7069585 | Chess et al. | Jun 2006 | B1 |
7136871 | Ozer et al. | Nov 2006 | B2 |
7171411 | Lewis et al. | Jan 2007 | B1 |
7185192 | Kahn | Feb 2007 | B1 |
7210167 | Brezak et al. | Apr 2007 | B2 |
7254547 | Beck et al. | Aug 2007 | B1 |
7370344 | Boozer et al. | May 2008 | B2 |
7493570 | Bobbin et al. | Feb 2009 | B2 |
7644086 | Boozer et al. | Jan 2010 | B2 |
8006088 | Peretti | Aug 2011 | B2 |
8225372 | Desai et al. | Jul 2012 | B2 |
8346743 | Pfuntner et al. | Jan 2013 | B2 |
8555378 | Bowman et al. | Oct 2013 | B2 |
8566586 | Peretti | Oct 2013 | B2 |
8826407 | Henderson | Sep 2014 | B2 |
8850549 | Beauregard et al. | Sep 2014 | B2 |
8856938 | Dik et al. | Oct 2014 | B2 |
20020099952 | Lambert et al. | Jul 2002 | A1 |
20020129135 | Delany et al. | Sep 2002 | A1 |
20020138572 | Delany et al. | Sep 2002 | A1 |
20030110246 | Byrne et al. | Jun 2003 | A1 |
20030174178 | Hodges | Sep 2003 | A1 |
20030236979 | Himmel et al. | Dec 2003 | A1 |
20040148409 | Davis et al. | Jul 2004 | A1 |
20040205355 | Boozer et al. | Oct 2004 | A1 |
20040230829 | Dogan et al. | Nov 2004 | A1 |
20040254934 | Ho et al. | Dec 2004 | A1 |
20050010580 | Lancefield | Jan 2005 | A1 |
20050154885 | Viscomi et al. | Jul 2005 | A1 |
20050204143 | Ellington | Sep 2005 | A1 |
20060041582 | Hekmatpour | Feb 2006 | A1 |
20060080316 | Gilmore et al. | Apr 2006 | A1 |
20060137019 | Dettinger et al. | Jun 2006 | A1 |
20060224590 | Boozer et al. | Oct 2006 | A1 |
20070240106 | Manson et al. | Oct 2007 | A1 |
20090222884 | Shaji et al. | Sep 2009 | A1 |
20100325159 | Wright et al. | Dec 2010 | A1 |
20110030045 | Beauregard et al. | Feb 2011 | A1 |
20110302384 | Matsui | Dec 2011 | A1 |
20120304307 | Ramesh et al. | Nov 2012 | A1 |
20130269027 | Bowman et al. | Oct 2013 | A1 |
20130333056 | Ristovski et al. | Dec 2013 | A1 |
20140123238 | Bacher et al. | May 2014 | A1 |
Number | Date | Country |
---|---|---|
0157706 | Aug 2001 | WO |
Entry |
---|
Bradlow, Eric T. et al., “Subscale Distance and Item Clustering Effects in Surveys: A New Metric”, Journal of Marketing Research, vol. 38, No. 2, pp. 1-24, May 2001. |
Chen, Qimei et al., “Attitude toward the Site”, Journal of Advertising Research, pp. 27-37, Sep.-Oct. 1999. |
Cheung, Natasha, “Should organisations be tempted by the option of outsourcing their CRM applications?”, Outward bound, Information Age, Jul. 13, 2001, http://www.information-age.com/article/2001/july/outward.sub.--bound (last visited Mar. 15, 2007) [5 pp.]. |
Chung, Chanjin et al., “Determinants of Temporal Variations in Generic Advertising Effectiveness”, Agribusiness, vol. 16, No. 2, pp. 197-214, 2000. |
Dawar, Niraj, “Extensions of Broad Brands: The Role of Retrieval in Evaluations of Fit”, Journal of Consumer Psychology, 5(2), pp. 189-207, 1996. |
Dholakia, Utpal M. et al., “What makes commercial Web pages popular?”, European Journal of Marketing 32, 7/8, pp. 724-736, 1998. |
Aaker, David A. et al., “On Using Response Latency to Measure Preference”, Journal of Marketing Research, vol. XVII, pp. 237-244 (May 1980). |
Bass, Frank M. et al., “Testing Distributed Lag Models of Advertising Effect”, Journal of Marketing Research, vol. 9, pp. 298-309 (Aug. 1972). |
Blair, Margaret Henderson, “An Empirical Investigation of Advertising Wearin and Wearout”, Journal of Advertising Research, pp. 45-51 (Dec. 1987/Jan. 1988). |
Cannon, Hugh M. et al., “Effective Reach and Frequency: Does It Really Make Sense?”, Journal of Advertising Research, pp. 19-28 (Mar./Apr. 1994). |
Clarke, Darrel G., “Econometric Measurement of the Duration of Advertising Effect on Sales”, Journal of Marketing Research, vol. XIII, pp.345-357 (Nov. 1976). |
Corkindale and Newall, “Advertising Thresholds and Wearout”, European Journal of Marketing, vol. 12, No. 5, pp. 329-350 (1978). |
Hu, Teh-Wei et al., “The State Antismoking Campaign and the Industry Response: The Effects of Advertising on Cigarette Consumption in California”, The American Economic Review, vol. 85, No. 2, Papers and Proceedings of the Hundredth and Seventh Annual Meeting of the American Economic Association Washington, DC, Jan. 6-8, 1995, pp. 85-90 (May 1995). |
Krishnamuthi, Lakshman et al., “Intervention Analysis of a Field Experiment to Assess the Buildup Effect of Advertising”, Journal of Marketing Research, vol. XXIII, pp. 337-345 (Nov. 1986). |
Lee, Jonq-Ying et al., “Lag Structures in Commodity Advertising Research”, Agribusiness, vol. 8, No. 2, pp. 143-154 (1992). |
Liu, Donald J. et al., “Generic Fluid Milk Advertising, Demand, Expansion, and Supply Response: The Case of New York City”, Amer. J. Agr.Econ., pp. 229-236 (1988). |
Pham, Michel Tuan et al., “Analyzing the Memory Impact of Advertising Fragments”, Marketing Letters, 8:4, pp. 407-417 (1997). |
Pritchett, James G. et al., “Optimal Choice of Generic Milk Advertising Expenditures by Media Outlet,” Journal of Agricultural and Resource Economics, vol. 23, No. 1, pp. 155-169 (1998). |
Simon, Julian L. et al., “The Shape of the Advertising Response Function”, Journal of Advertising Research, vol. 20, No. 4, pp. 11-28 (Aug. 1980). |
Tellis, Gerard J. et al., “Does TV Advertising Really Affect Sales? The Role of Measures, Models, and Data Aggregation”, Journal of Advertising, vol. 24, No. 3, pp. 1-12 (Fall 1995). |
Vakratsas, Demetrios et al., “How Advertising Works: What Do We Really Know?”, Journal of Marketing, vol. 63, pp. 26-43 (Jan. 1999). |
Venkateswaran, Meenakshi et al., “Modeling Advertising Carryover in Fluid Milk: Comparison of Alternative Lag Specifications”, Agricultural and Resource Economics Review, vol. 22, No. 1, pp. 10-19 (Apr. 1993). |
Wilkins, Nick et al., “Economic Analysis of Tobacco Demand”, World Bank Economics of Tobacco Toolkit, Tool 3. Demand Analysis, (2001) [105 pp.]. |
Non-Final Office Action of May 10, 2013 for U.S. Appl. No. 13/439,536, 16 pages. |
Non-Final Office Action of Oct. 9, 2012 for U.S. Appl. No. 12/538,561, 13 pages. |
Notice of Allowance of Jun. 7, 2013 for U.S. Appl. No. 12/538,561, 16 pages. |
Number | Date | Country | |
---|---|---|---|
20140020069 A1 | Jan 2014 | US |
Number | Date | Country | |
---|---|---|---|
61159274 | Mar 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12538561 | Aug 2009 | US |
Child | 14022990 | US |