Misplaced Pages

Role-based access control

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In computer systems security, role-based access control ( RBAC ) or role-based security is an approach to restricting system access to authorized users, and to implementing mandatory access control (MAC) or discretionary access control (DAC) .

#438561

43-494: Role-based access control is a policy-neutral access control mechanism defined around roles and privileges. The components of RBAC such as role-permissions, user-role and role-role relationships make it simple to perform user assignments. A study by NIST has demonstrated that RBAC addresses many needs of commercial and government organizations. RBAC can be used to facilitate administration of security in large organizations with hundreds of users and thousands of permissions. Although RBAC

86-631: A standard of the American National Standards Institute (ANSI) in 1986 and of the International Organization for Standardization (ISO) in 1987. Since then, the standard has been revised multiple times to include a larger set of features and incorporate common extensions. Despite the existence of standards, virtually no implementations in existence adhere to it fully, and most SQL code requires at least some changes before being ported to different database systems. SQL

129-477: A breach of security through dual privilege. By extension, no person may hold a role that exercises audit, control or review authority over another, concurrently held role. Then again, a "minimal RBAC Model", RBACm , can be compared with an ACL mechanism, ACLg , where only groups are permitted as entries in the ACL. Barkley (1997) showed that RBACm and ACLg are equivalent. In modern SQL implementations, like ACL of

172-474: A local RDB and receive tables of data and status indicators in reply from remote RDBs. SQL statements can also be compiled and stored in remote RDBs as packages and then invoked by package name. This is important for the efficient operation of application programs that issue complex, high-frequency queries. It is especially important when the tables to be accessed are located in remote systems. The messages, protocols, and structural components of DRDA are defined by

215-534: A matter of simply assigning appropriate roles to the user's account; this simplifies common operations, such as adding a user, or changing a user's department. Three primary rules are defined for RBAC: Additional constraints may be applied as well, and roles can be combined in a hierarchy where higher-level roles subsume permissions owned by sub-roles. With the concepts of role hierarchy and constraints, one can control RBAC to create or simulate lattice-based access control (LBAC). Thus RBAC can be considered to be

258-409: A model which evolves from RBAC to consider additional attributes in addition to roles and groups. In ABAC, it is possible to use attributes of: ABAC is policy-based in the sense that it uses policies rather than static permissions to define what is allowed or what is not allowed. Relationship-based access control or ReBAC is a model which evolves from RBAC. In ReBAC, a subject's permission to access

301-437: A natural element of human daily concept-forming. Roles in programming languages enable objects to have changing interfaces, as we see in real life - things change over time, are used differently in different contexts, etc. This computer-programming -related article is a stub . You can help Misplaced Pages by expanding it . SQL Structured Query Language ( SQL ) ( pronounced S-Q-L ; or alternatively as "sequel")

344-451: A person. This sharing of properties is often handled by the delegation mechanism. In the older literature and in the field of databases , it seems that there has been little consideration for the context in which roles interplay with each other. Such a context is being established in newer role- and aspect-oriented programming languages such as Object Teams . Compare the use of "role" as "a set of software programs (services) that enable

387-438: A resource is defined by the presence of relationships between those subjects and resources. The advantage of this model is that allows for fine-grained permissions; for example, in a social network where users can share posts with other specific users. The use of RBAC to manage user privileges (computer permissions) within a single system or application is widely accepted as a best practice. A 2010 report prepared for NIST by

430-470: A roadblock to full use of SQL's user-defined types. JSON support, for example, needed to be added by a new standard in 2016. The concept of Null is the subject of some debate . The Null marker indicates the absence of a value, and is distinct from a value of 0 for an integer column or an empty string for a text column. The concept of Nulls enforces the 3-valued-logic in SQL , which is a concrete implementation of

473-477: A server to perform specific functions for users or computers on the network" in Windows Server jargon. Many researchers have argued the advantages of roles in modeling and implementation. Roles allow objects to evolve over time, they enable independent and concurrently existing views (interfaces) of the object, explicating the different contexts of the object, and separating concerns . Generally roles are

SECTION 10

#1732895092439

516-585: A superset of LBAC. When defining an RBAC model, the following conventions are useful: A constraint places a restrictive rule on the potential inheritance of permissions from opposing roles. Thus it can be used to achieve appropriate separation of duties . For example, the same person should not be allowed to both create a login account and to authorize the account creation. Thus, using set theory notation : A subject may have multiple simultaneous sessions with/in different roles. The NIST/ANSI/ INCITS RBAC standard (2004) recognizes three levels of RBAC: RBAC

559-473: Is a domain-specific language used to manage data, especially in a relational database management system (RDBMS). It is particularly useful in handling structured data , i.e., data incorporating relations among entities and variables. Introduced in the 1970s, SQL offered two main advantages over older read–write APIs such as ISAM or VSAM . Firstly, it introduced the concept of accessing many records with one single command . Secondly, it eliminates

602-557: Is a flexible access control technology whose flexibility allows it to implement DAC or MAC . DAC with groups (e.g., as implemented in POSIX file systems) can emulate RBAC. MAC can simulate RBAC if the role graph is restricted to a tree rather than a partially ordered set . Prior to the development of RBAC, the Bell-LaPadula (BLP) model was synonymous with MAC and file system permissions were synonymous with DAC. These were considered to be

645-412: Is different from MAC and DAC access control frameworks, it can enforce these policies without any complication. Within an organization, roles are created for various job functions. The permissions to perform certain operations are assigned to specific roles. Since users are not assigned permissions directly, but only acquire them through their role (or roles), management of individual user rights becomes

688-440: Is essentially a declarative language ( 4GL ), it also includes procedural elements. SQL was one of the first commercial languages to use Edgar F. Codd 's relational model . The model was described in his influential 1970 paper, "A Relational Model of Data for Large Shared Data Banks". Despite not entirely adhering to the relational model as described by Codd , SQL became the most widely used database language. SQL became

731-417: Is that humans think in terms of roles . This claim is often backed up by examples of social relations . For example, a student attending a class and the same student at a party are the same person, yet that person plays two different roles. In particular, the interactions of this person with the outside world depend on his current role. The roles typically share features, e.g., the intrinsic properties of being

774-450: Is thus a sequence of operations within a larger activity. RBAC has been shown to be particularly well suited to separation of duties (SoD) requirements, which ensure that two or more people must be involved in authorizing critical operations. Necessary and sufficient conditions for safety of SoD in RBAC have been analyzed. An underlying principle of SoD is that no individual should be able to effect

817-449: The CakePHP framework, ACLs also manage groups and inheritance in a hierarchy of groups. Under this aspect, specific "modern ACL" implementations can be compared with specific "modern RBAC" implementations, better than "old (file system) implementations". For data interchange, and for "high level comparisons", ACL data can be translated to XACML . Attribute-based access control or ABAC is

860-485: The Distributed Data Management Architecture . Distributed SQL processing ala DRDA is distinctive from contemporary distributed SQL databases. SQL deviates in several ways from its theoretical foundation, the relational model and its tuple calculus. In that model, a table is a set of tuples, while in SQL, tables and query results are lists of rows; the same row may occur multiple times, and

903-634: The Research Triangle Institute analyzed the economic value of RBAC for enterprises, and estimated benefits per employee from reduced employee downtime, more efficient provisioning, and more efficient access control policy administration. In an organization with a heterogeneous IT infrastructure and requirements that span dozens or hundreds of systems and applications, using RBAC to manage sufficient roles and assign adequate role memberships becomes extremely complex without hierarchical creation of roles and privilege assignments. Newer systems extend

SECTION 20

#1732895092439

946-605: The database , while prior versions of SQL Server were restricted to unmanaged extended stored procedures primarily written in C. PostgreSQL lets users write functions in a wide variety of languages—including Perl , Python , Tcl , JavaScript (PL/V8) and C. SQL implementations are incompatible between vendors and do not necessarily completely follow standards. In particular, date and time syntax, string concatenation, NULL s, and comparison case sensitivity vary from vendor to vendor. PostgreSQL and Mimer SQL strive for standards compliance, though PostgreSQL does not adhere to

989-485: The 1970s. Chamberlin and Boyce's first attempt at a relational database language was SQUARE (Specifying Queries in A Relational Environment), but it was difficult to use due to subscript/superscript notation. After moving to the San Jose Research Laboratory in 1973, they began work on a sequel to SQUARE. The original name SEQUEL, which is widely regarded as a pun on QUEL , the query language of Ingres ,

1032-535: The ISO in 1987. It is maintained by ISO/IEC JTC 1, Information technology, Subcommittee SC 32, Data management and interchange . Until 1996, the National Institute of Standards and Technology (NIST) data-management standards program certified SQL DBMS compliance with the SQL standard. Vendors now self-certify the compliance of their products. The original standard declared that the official pronunciation for "SQL"

1075-419: The direct-relations between several entities (see: ACLg below). For example, an ACL could be used for granting or denying write access to a particular system file, but it wouldn't dictate how that file could be changed. In an RBAC-based system, an operation might be to 'create a credit account' transaction in a financial application or to 'populate a blood sugar level test' record in a medical application. A Role

1118-404: The general 3-valued logic . Another popular criticism is that it allows duplicate rows, making integration with languages such as Python , whose data types might make accurately representing the data difficult, in terms of parsing and by the absence of modularity. This is usually avoided by declaring a primary key, or a unique constraint, with one or more columns that uniquely identify a row in

1161-522: The late 1970s, Relational Software, Inc. (now Oracle Corporation ) saw the potential of the concepts described by Codd, Chamberlin, and Boyce, and developed their own SQL-based RDBMS with aspirations of selling it to the U.S. Navy , Central Intelligence Agency , and other U.S. government agencies. In June 1979, Relational Software introduced one of the first commercially available implementations of SQL, Oracle V2 (Version2) for VAX computers. By 1986, ANSI and ISO standard groups officially adopted

1204-466: The most popular commercial and proprietary SQL DBMSs, are Oracle (whose DATE behaves as DATETIME , and lacks a TIME type) and MS SQL Server (before the 2008 version). As a result, SQL code can rarely be ported between database systems without modifications. Several reasons for the lack of portability between database systems include: SQL was adopted as a standard by the ANSI in 1986 as SQL-86 and

1247-575: The need to specify how to reach a record, i.e., with or without an index . Originally based upon relational algebra and tuple relational calculus , SQL consists of many types of statements, which may be informally classed as sublanguages , commonly: Data query Language (DQL), Data Definition Language (DDL), Data Control Language (DCL), and Data Manipulation Language (DML). The scope of SQL includes data query, data manipulation (insert, update, and delete), data definition ( schema creation and modification), and data access control. Although SQL

1290-532: The older NIST RBAC model to address the limitations of RBAC for enterprise-wide deployments. The NIST model was adopted as a standard by INCITS as ANSI/INCITS 359-2004. A discussion of some of the design choices for the NIST model has also been published. Role based access control interference is a relatively new issue in security applications, where multiple user accounts with dynamic access levels may lead to encryption key instability, allowing an outside user to exploit

1333-640: The only known models for access control: if a model was not BLP, it was considered to be a DAC model, and vice versa. Research in the late 1990s demonstrated that RBAC falls in neither category. Unlike context-based access control (CBAC), RBAC does not look at the message context (such as a connection's source). RBAC has also been criticized for leading to role explosion, a problem in large enterprise systems which require access control of finer granularity than what RBAC can provide as roles are inherently assigned to operations and data types. In resemblance to CBAC, an Entity-Relationship Based Access Control (ERBAC, although

Role-based access control - Misplaced Pages Continue

1376-556: The order of rows can be employed in queries (e.g., in the LIMIT clause). Critics argue that SQL should be replaced with a language that returns strictly to the original foundation: for example, see The Third Manifesto by Hugh Darwen and C.J. Date (2006, ISBN   0-321-39942-0 ). Early specifications did not support major features, such as primary keys. Result sets could not be named, and subqueries had not been defined. These were added in 1992. The lack of sum types has been described as

1419-427: The pattern: ISO/IEC 9075-n:yyyy Part n: title , or, as a shortcut, ISO/IEC 9075 . Interested parties may purchase the standards documents from ISO, IEC, or ANSI. Some old drafts are freely available. ISO/IEC 9075 is complemented by ISO/IEC 13249: SQL Multimedia and Application Packages and some Technical reports . A distinction should be made between alternatives to SQL as a language, and alternatives to

1462-489: The relational model itself. Below are proposed relational alternatives to the SQL language. See navigational database and NoSQL for alternatives to the relational model. Distributed Relational Database Architecture (DRDA) was designed by a workgroup within IBM from 1988 to 1994. DRDA enables network-connected relational databases to cooperate to fulfill SQL requests. An interactive user or program can issue SQL statements to

1505-409: The same acronym is also used for modified RBAC systems, such as Extended Role-Based Access Control) system is able to secure instances of data by considering their association to the executing subject. Access control lists (ACLs) are used in traditional discretionary access-control (DAC) systems to affect low-level data-objects. RBAC differs from ACL in assigning permissions to operations which change

1548-618: The standard "Database Language SQL" language definition. New versions of the standard were published in 1989, 1992, 1996, 1999, 2003, 2006, 2008, 2011, 2016 and most recently, 2023. The SQL language is subdivided into several language elements, including: SQL is designed for a specific purpose: to query data contained in a relational database . SQL is a set -based, declarative programming language , not an imperative programming language like C or BASIC . However, extensions to Standard SQL add procedural programming language functionality, such as control-of-flow constructs. In addition to

1591-572: The standard SQL/PSM extensions and proprietary SQL extensions, procedural and object-oriented programmability is available on many SQL platforms via DBMS integration with other languages. The SQL standard defines SQL/JRT extensions (SQL Routines and Types for the Java Programming Language) to support Java code in SQL databases. Microsoft SQL Server 2005 uses the SQLCLR (SQL Server Common Language Runtime) to host managed .NET assemblies in

1634-571: The standard in all cases. For example, the folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that unquoted names should be folded to upper case. Thus, according to the standard, Foo should be equivalent to FOO , not foo . Popular implementations of SQL commonly omit support for basic features of Standard SQL, such as the DATE or TIME data types. The most obvious such examples, and incidentally

1677-607: The table. In a sense similar to object–relational impedance mismatch , a mismatch occurs between the declarative SQL language and the procedural languages in which SQL is typically embedded. The SQL standard defines three kinds of data types (chapter 4.1.1 of SQL/Foundation): Constructed types are one of ARRAY, MULTISET, REF(erence), or ROW. User-defined types are comparable to classes in object-oriented language with their own constructors, observers, mutators, methods, inheritance, overloading, overwriting, interfaces, and so on. Predefined data types are intrinsically supported by

1720-475: The weakness for unauthorized access. Key sharing applications within dynamic virtualized environments have shown some success in addressing this problem. Role (computer science) Role-oriented programming as a form of computer programming aims at expressing things in terms that are analogous to human conceptual understanding of the world . This should make programs easier to understand and maintain. The main idea of role-oriented programming

1763-417: Was an initialism : / ˌ ɛ s ˌ k juː ˈ ɛ l / ("ess cue el"). Regardless, many English-speaking database professionals (including Donald Chamberlin himself ) use the acronym -like pronunciation of / ˈ s iː k w əl / ("sequel"), mirroring the language's prerelease development name, "SEQUEL". The SQL standard has gone through a number of revisions: The standard is commonly denoted by

Role-based access control - Misplaced Pages Continue

1806-440: Was initially developed at IBM by Donald D. Chamberlin and Raymond F. Boyce after learning about the relational model from Edgar F. Codd in the early 1970s. This version, initially called SEQUEL (Structured English Query Language), was designed to manipulate and retrieve data stored in IBM's original quasirelational database management system, System R , which a group at IBM San Jose Research Laboratory had developed during

1849-627: Was later changed to SQL (dropping the vowels) because "SEQUEL" was a trademark of the UK-based Hawker Siddeley Dynamics Engineering Limited company. The label SQL later became the acronym for Structured Query Language. After testing SQL at customer test sites to determine the usefulness and practicality of the system, IBM began developing commercial products based on their System R prototype, including System/38 , SQL/DS , and IBM Db2 , which were commercially available in 1979, 1981, and 1983, respectively. In

#438561