| 1 |
.. |
| 2 |
Copyright 2014 IBM Corp. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 |
not use this file except in compliance with the License. You may obtain |
| 6 |
a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 |
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 |
License for the specific language governing permissions and limitations |
| 14 |
under the License. |
| 15 |
|
| 16 |
.. _event_concept: |
| 17 |
|
| 18 |
======= |
| 19 |
Events |
| 20 |
======= |
| 21 |
|
| 22 |
The principal goal of this specification is to ensure that similar auditable |
| 23 |
events, such as a "logon" or "critical resource update" resolve to the same |
| 24 |
data format with prescriptive data types, entities, and properties to |
| 25 |
facilitate reporting, query, federation, and aggregation. |
| 26 |
|
| 27 |
Defining Events |
| 28 |
=============== |
| 29 |
|
| 30 |
The event model is intended to describe the interactions between resources |
| 31 |
that compose a cloud service. Conceptually, the event is based upon the |
| 32 |
perspective of a single RESOURCE called the OBSERVER that is responsible for |
| 33 |
observing the Actual Event and creating the (initial) CADF Event Record. |
| 34 |
|
| 35 |
.. figure:: ./images/observer_cadf.png |
| 36 |
:width: 100% |
| 37 |
:align: center |
| 38 |
:alt: Figure 1: Observer perspective of an Event |
| 39 |
|
| 40 |
At a minimum, an Event must include the following attributes to be |
| 41 |
CADF-compliant: eventType, observer, initiator, target, action, and outcome. |
| 42 |
CADF's event model is extensible so any additional attributes that may better |
| 43 |
help describe the event can be added to the event model as an additional |
| 44 |
attribute. |
| 45 |
|
| 46 |
.. note:: |
| 47 |
|
| 48 |
In some cases, the OBSERVER, INITIATOR, and TARGET could reference the same |
| 49 |
resource. The precise interpretation of these components, therefore, will |
| 50 |
depend somewhat on the type of event being recorded, and the specific |
| 51 |
activity and resources involved. |
| 52 |
|
| 53 |
Use Case Examples |
| 54 |
================= |
| 55 |
|
| 56 |
1. Auditing access to a controlled resource |
| 57 |
|
| 58 |
Scenario: A cloud provider has a software component that manages identity and |
| 59 |
access control that we will call an "identity management service". This |
| 60 |
service is required, by the provider's security policy, to log all user |
| 61 |
activities including "logon" attempts against any servers within the |
| 62 |
provider's infrastructure. |
| 63 |
|
| 64 |
.. figure:: ./images/audit_event.png |
| 65 |
:width: 100% |
| 66 |
:align: center |
| 67 |
:alt: Figure 2: Conceptually mapping values of an audit event |
| 68 |
|
| 69 |
================= ========================== ========================================================================================== |
| 70 |
Event Attribute Value Reason |
| 71 |
================= ========================== ========================================================================================== |
| 72 |
eventType activity OBSERVER is required to report any user security activity |
| 73 |
observer.typeURI service/security/identity Value from the CADF Resource Taxonomy most closely describes an "Identity Manager Service" |
| 74 |
initiator.typeURI data/security/account/user Value from the CADF Resource Taxonomy most closely describes a "user" |
| 75 |
action authenticate/logon Value from the CADF Action Taxonomy most closely describes a user "logon" action. |
| 76 |
target.typeURI service/compute/node Value from the CADF Resource Taxonomy most closely describes a target "server" |
| 77 |
outcome success Any valid CADF Outcome Taxonomy value that describes result of action |
| 78 |
measurement N/A A MEASUREMENT component is not required for "activity" type events. |
| 79 |
REASON N/A A REASON component is not required for "activity" type events. |
| 80 |
================= ========================== ========================================================================================== |
| 81 |
|
| 82 |
Event serialisation (including some optional attributes for additional |
| 83 |
details): |
| 84 |
|
| 85 |
.. code-block:: javascript |
| 86 |
|
| 87 |
{ |
| 88 |
"typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event", |
| 89 |
"eventTime": "2014-02-27T19:29:30.855665+0000", |
| 90 |
"target": { |
| 91 |
"typeURI": "service/compute/node", |
| 92 |
// optional Endpoints to describe compute node, |
| 93 |
"addresses": [ |
| 94 |
{ |
| 95 |
"url": "http://9.26.26.250:8774/v2/e7e2bcc9c0df4f3eabcd412ae62503f6", |
| 96 |
"name": "admin" |
| 97 |
}, |
| 98 |
{ |
| 99 |
"url": "http://9.26.26.250:8774/v2/e7e2bcc9c0df4f3eabcd412ae62503f6", |
| 100 |
"name": "private" |
| 101 |
}, |
| 102 |
{ |
| 103 |
"url": "http://9.26.26.250:8774/v2/e7e2bcc9c0df4f3eabcd412ae62503f6", |
| 104 |
"name": "public" |
| 105 |
} |
| 106 |
], |
| 107 |
"id": "06747855d62547d4bfd707f75b8a1c54", |
| 108 |
"name": "nova" |
| 109 |
}, |
| 110 |
"observer": { |
| 111 |
"id": "target" // shortform to show Observer Resource is the same as Target, |
| 112 |
}, |
| 113 |
// tags use to query events on, |
| 114 |
"tags": [ |
| 115 |
"correlation_id?value=56cdde6f-6b4e-48a4-94e6-defb40522fb2" |
| 116 |
], |
| 117 |
"eventType": "activity", |
| 118 |
"initiator": { |
| 119 |
"typeURI": "data/security/account/user", |
| 120 |
"name": "admin", |
| 121 |
// optional Credential to describe resource, |
| 122 |
"credential": { |
| 123 |
"token": "MIIQzgYJKoZIhvcNAQcCoIIQvzCCELsC xxxxxxxx zqvD9OPWZm7VQpYNK2EvrZi-mTvb5A==", |
| 124 |
"identity_status": "Confirmed" |
| 125 |
}, |
| 126 |
// optional Host to describe resource, |
| 127 |
"host": { |
| 128 |
"agent": "python-novaclient", |
| 129 |
"address": "9.26.26.250" |
| 130 |
}, |
| 131 |
"project_id": "e7e2bcc9c0df4f3eabcd412ae62503f6", |
| 132 |
"id": "68a3f50705a54f799ce94380fc02ed8a" |
| 133 |
}, |
| 134 |
// optional Reason for activity event, |
| 135 |
"reason": { |
| 136 |
"reasonCode": "200", |
| 137 |
"reasonType": "HTTP" |
| 138 |
}, |
| 139 |
// list of Resources which edited event, |
| 140 |
"reporterchain": [ |
| 141 |
{ |
| 142 |
"reporterTime": "2014-02-27T19:29:31.043902+0000", |
| 143 |
"role": "modifier", |
| 144 |
"reporter": { |
| 145 |
"id": "target" |
| 146 |
} |
| 147 |
} |
| 148 |
], |
| 149 |
"action": "authenticate/logon", |
| 150 |
"outcome": "success", |
| 151 |
"id": "0a196053-95de-48f8-9890-4527b25b5007", |
| 152 |
// Event model is extensible so additional attributes may be added to describe model, |
| 153 |
"requestPath": "/v2/e7e2bcc9c0df4f3eabcd412ae62503f6/os-certificates" |
| 154 |
} |
| 155 |
|
| 156 |
2. Periodic monitoring resource status |
| 157 |
|
| 158 |
Scenario: A cloud provider has software monitoring agents(Ceilometer) |
| 159 |
installed on every server(Nova) that it makes available as an IaaS resource |
| 160 |
to its customers. These agents are required to provide periodic informational |
| 161 |
status of each server's CPU utilisation along with metric data to their |
| 162 |
operations management software by using the CADF Event Record format. |
| 163 |
|
| 164 |
.. figure:: ./images/monitor_event.png |
| 165 |
:width: 100% |
| 166 |
:align: center |
| 167 |
:alt: Figure 3: Conceptually mapping values of an monitor event |
| 168 |
|
| 169 |
================= ====================== ========================================================================================== |
| 170 |
Event Attribute Value Reason |
| 171 |
================= ====================== ========================================================================================== |
| 172 |
eventType monitor OBSERVER is required to monitor a server's CPU utilization |
| 173 |
observer.typeURI service/oss/monitoring Value from the CADF Resource Taxonomy most closely describes a "software monitoring agent" |
| 174 |
initiator.typeURI service/oss/monitoring OBSERVER is also the INITIATOR of this monitoring event |
| 175 |
action monitor Value from the CADF Action Taxonomy |
| 176 |
target.typeURI service/compute/cpu Value from the CADF Resource Taxonomy most closely describes a server’s "cpu" |
| 177 |
outcome success OBSERVER successfully obtained and reported a CPU utilization measurement |
| 178 |
measurement 80% MEASUREMENT component is required and the observed value is 80% CPU utilisation |
| 179 |
reason N/A REASON component is not required for "monitor" type events. |
| 180 |
================= ====================== ========================================================================================== |
| 181 |
|
| 182 |
Event serialisation: |
| 183 |
|
| 184 |
.. code-block:: javascript |
| 185 |
|
| 186 |
{ |
| 187 |
"typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event", |
| 188 |
"eventTime": "2014-02-27T19:29:30.855665+0000", |
| 189 |
"target": { |
| 190 |
"typeURI": "service/compute/cpu", |
| 191 |
"id": "06747855d62547d4bfd707f75b8a1c54", |
| 192 |
"name": "instance" |
| 193 |
}, |
| 194 |
"observer": { |
| 195 |
"id": "initiator" |
| 196 |
}, |
| 197 |
"eventType": "monitor", |
| 198 |
"initiator": { |
| 199 |
"typeURI": "service/oss/monitoring", |
| 200 |
"name": "ceilometer-pollster", |
| 201 |
"id": "68a3f50705a54f799ce94380fc02ed8a" |
| 202 |
}, |
| 203 |
"measurement": [ |
| 204 |
{ |
| 205 |
"result": "80", |
| 206 |
"metric": { |
| 207 |
"metricId": "<metric_id>", |
| 208 |
"unit": "%", |
| 209 |
"name": "CPU utilisation metric" |
| 210 |
} |
| 211 |
} |
| 212 |
], |
| 213 |
"action": "monitor", |
| 214 |
"outcome": "success", |
| 215 |
"id": "0a196053-95de-48f8-9890-4527b25b5007" |
| 216 |
} |
| 217 |
|
| 218 |
.. note:: |
| 219 |
|
| 220 |
Additional use cases can be found in the Full CADF specification. |