Merge "Introduction information ReadTheDoc"
[aaf/authz.git] / docs / index.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright © 2017 AT&T Intellectual Property. All rights reserved.
4
5 AAF - Application Authorization Framework
6 ==================================================
7 .. The purpose of AAF (Application Authorization Framework) is to organize software authorizations so that applications, tools and services can match the access needed to perform job functions.
8
9 AAF is designed to cover Fine-Grained Authorization, meaning that the Authorizations provided are able to used an Application's detailed authorizations, such as whether a user may be on a particular page, or has access to a particular Pub-SUB topic controlled within the App.
10
11 This is a critical function for Cloud environments, as Services need to be able to be installed and running in a very short time, and should not be encumbered with local configurations of Users, Permissions and Passwords.
12
13 To be effective during a computer transaction, Security must not only be secure, but very fast. Given that each transaction must be checked and validated for Authorization and Authentication, it is critical that all elements on this path perform optimally.
14
15
16 Sections
17 ++++++++
18
19 .. toctree::
20    :maxdepth: 1
21    :glob:
22
23    sections/architecture/index
24    sections/installation/index
25    sections/configuration/index
26    sections/development/index
27    sections/logging
28    sections/release-notes
29
30 Introduction
31 ------------
32 AAF acronym stands for Application Authorization Framework and initially it was focused on  “Authorization”, but now supports implementations for both Authentication and Authorization. AAF is a set of Client Libraries (CADI Framework) and RESTful Services that support multiple Authentication Protocols and Fine-Grained Authorization.
33 The goal of AAF project is to provide consistent authentication, authorization and security to various ONAP components. AAF organizes software authorizations so that applications, tools and services can match the access needed to perform job functions. AAF is designed to cover Fine-Grained Authorization, meaning that the Authorizations provided are able to use an Application's detailed authorizations, such as whether a user may be on a particular page, or has access to a particular Pub-Sub topic controlled within the App. This is a critical function for Cloud environments, as Services need to be able to be installed and running in a very short time, and should not be encumbered with local configurations of Users, Permissions and Passwords. The sister framework CADI (Code Access Data Identity) allows Java Applications to utilize Identity Authentication methods as plugins. Certificate Manager delivers X509 certificates in support of 2 way x509 TLS.
34
35 AAF contains some elements of Role Based Authorization, but includes Attribute Based Authorization elements as well.
36
37 Entities within AAF
38 -------------------
39
40 AAF is an IAM that organizes software authorizations so that applications, tools and services can match the access needed to perform job functions. AAF is more than a typical RBAC. There are Roles, to be sure, but the important Architectural Pattern includes separation of Roles and Permissions. 
41
42 |image0|
43
44 .. |image0| image:: sections/architecture/images/aaf-permission-mapping.png
45    :height: 200px
46    :width: 500px
47
48 A permission is composed of the following attributes:
49
50 * Type: core name of the permission
51 * Instance: the object that is being interacted
52 * Action: What is happening with this object
53
54 All roles, permissions identities of a given module in ONAP is covered by a Namespace (e.g. roles, permission and identities for the APP-C modules of ONAP)
55
56 The permissions, having a 3 part definition, make AAF also like an ABAC (A=Attribute).
57 Roles, Permissions are stored centrally, but segregated by Application (the proverbial Namespace). The Application Creates Permissions that match their code (for the question "Does User have Permission"). Permissions are granted to Roles, to which the User belongs. AAF is not a Policy Engine, where dynamically based Policies are validated against differing kinds of Data Stores. AAF (Application Authorization Framework) is focused on RealTime Authentication and Authorization. 
58
59 Namespace
60 ^^^^^^^^^
61 A Namespace, in AAF, is the ensemble of Roles, Permissions and Identities. Namespaces are known by domain, example com.onap.dcae or com.onap.appc and they are hierarchically managed. A Namespace is assigned to an application and contains one or more roles and one or more permissions. By default, every namespace has an admin role
62
63 **People in Namespaces**
64
65 Tasks Owner (Responsible) must do:
66
67 * Owners receive by email a notification to Approve
68 * Owners also receive notifications of time based activities
69
70    * Periodic Revalidation of Users in Roles in Namespace
71    * Periodic Revalidation of Permission in Namespace to Roles
72
73 Admins may:
74
75 * Create/Delete/Modify Roles in Namespace
76 * Add/Remove Users from Roles in Namespace
77 * Create/Delete/Modify Permissions in Namespace
78 * Grant/Ungrant Permissions in Namespace to any Role in the company (Cross Company Role Grants are possible, but require approvals from both sides).
79
80 Only Namespace Admins may manage Roles/Permissions within a Namespace. The Granting process is One-Way. The Namespace Admins must Grant given Permissions to Roles on request.
81
82
83
84
85 Object Model
86 ^^^^^^^^^^^^
87
88 |image1|
89
90 .. |image1| image:: sections/architecture/images/aaf-hl-object-model.png
91    :height: 600px
92    :width: 800px
93
94 Resource Owner in ONAP defines permissions:
95
96 * He defines and grants permission to roles 
97 * Get notified by a mail when an Identity with a Role asks to be granted a permission
98
99
100
101 Essential Components
102 --------------------
103 The core component to deliver this Enterprise Access is a RESTful service, with runtime instances registered in a Cloud Directory (DME2) and backed by a resilient Datastore (Cassandra as of release 1.3)
104
105 The Data is managed by RESTful API, with Admin functions supplemented by Character Based User interface and certain GUI elements.
106
107 CADI Framework
108 ^^^^^^^^^^^^^^
109
110 CADI is a framework for providing Enterprise Class Authentication and Authorization with minimal configuration to Containers and Standalone Services
111 It is in fact a library used by services to:
112
113 * Authenticate with one or more Authentication Protocols 
114 * Authorize in a FINE-GRAINED manner using AAF Components
115
116 AAF Components – RESTful Services
117 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118
119 Service (primary) – All the Authorization information, it is accessible by provided Caching Clients and by specialized plugins:
120
121 * Locate – how to find ANY OR ALL AAF instances across any geographic distribution
122 * OAuth 2.0 – new component providing Tokens and Introspection
123 * GUI – Tool to view and manage Authorization Information, and create Credentials
124 * Certman – Certificate Manger, create and renew X509 with Fine-Grained Identity
125 * FS – File Server to provide access to distributable elements (like well known certs)
126 * Hello - Test your client access (certs, OAuth 2.0, etc.)
127
128 Cassandra as global replicating Data Store
129 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130
131
132 How AAF works
133 ---------------------
134 To understand how AAF works, let's describe its workflow through a high level "three tiered web app" use case:
135
136 |image2|
137
138 .. |image2| image:: sections/architecture/images/aaf-use-case.png
139    :height: 400px
140    :width: 800px
141
142
143 1. Browser client goes to GUI using for instance SSO plugin (or Basic Auth)
144 2. App goes directly to a Service using x509 or Basic Auth (or other)
145 3. CADI Filter coverts credential to “Principal”. If not in cache, AAF is contacted for Permissions protecting GUI with Service ID/Credential (MechID of App/Pass or X.509 Client Cert (preferred)).
146 4. AAF does provide User/Password features, or can be delegated to other credential service via Plugin
147 5. If information is not in Service Cache, AAF’s DB is contacted using AAF Service ID/Credential.
148 6. Client App uses Permission Attributes delivered by AAF/AAF Cache for protecting sensitive data/functions (using J2EE method).
149 7. If not in Cache, Client contacts App Service, using App ID/Credential.
150 8. CADI Filter converts App ID/Credential to Principal. If not in cache, contacts with AAF (with App ID/Credential) for Permissions of Client.
151 9. App protects data based on Client Permissions.
152 10. Component contacts next layer using Service ID/Credential.
153 11. If ID or Permissions of AppServer are not in Cache, contact AAF using AAF Security Plugin for Cassandra, which uses AAF Java Client.
154 12. Cassandra protects Cluster/Keyspace/ColumnFamily w/Permissions.   
155
156