Azure / platform-chaos

A node sdk for building services capable of injecting chaos into PaaS offerings. ⚙️ 🌩
MIT License
18 stars 7 forks source link

Implement auditing #26

Closed Ethan-Arrowood closed 6 years ago

Ethan-Arrowood commented 6 years ago

Description

This PR will implement auditing for platform-chaos. The first reply will be a copy-paste from the first draft of AUDITING.md so we can begin discussing changes.

Closes #18 and #22

Checklist for success

Ethan-Arrowood commented 6 years ago

Going to keep copying and pasting the AUDITING.md file contents here for discussion reference

Auditing

This document defines how Platform Chaos audits chaos events. It lists what is tracked and how it is formatted.

Tracked Data

When a chaos event is initiated or terminated through an API, CLI, or Extension, the following properties are recorded and exported through a JSON object.

Additionally an Extension may record additional information regarding the specificities of the event. This information is stored within an extension property.

Every chaos event type will be logged. The general structure of an event log is defined below:

Here is an example template:

{
  "id": "",
  "chaos_type": "initiate",
  "user": "",
  "system": "",
  "date": "",
  "resource": "",
  "event": {
    "eventName": "",
    "eventURI": ""
  },
  "extension": { ... }
}
Ethan-Arrowood commented 6 years ago

How would I make this apart of the wiki? Is there a specific name you're looking for in regards to the directory for this file?

bengreenier commented 6 years ago

@Ethan-Arrowood You can add a page to the wiki. I'd prefer wiki over directory - @allydurks thoughts?

Ethan-Arrowood commented 6 years ago

This file has been made into a wiki page available here: https://github.com/Azure/platform-chaos/wiki/Auditing