Skip to main content

Executions

Governor Executor's mission is to perform actions in the target system from "governed" objects.

Basically "Governor Executor" checks a dedicated queue "execution-orders" for execution orders and tries to perform this action in the target system.

The execution results request new observation for the object to update it to latest status.

As each target system/object can be managed by different "scripts", we can bind these scripts in the file "scriptbinding.json" below "executor\config" folder.

Components of Governor Executor

Execution queues

QueueDescription
execution-ordersDedicated queue for on-demand requests

Scripts

Powershell scripts to perform the action requested and return the results. Usually the result triggers a new observation

Scriptbinding.json

JSON file to tell Governor Observer which script should be executed per requested action .

Sample

{
"ControllerBindings": {
"Bindings": {
"AzureADGroup/Create": {
"Action": "Create",
"Controller": "./scripts/Controllers/xAzureADGroupController.v2.ps1"
},
"AzureADGroup/Update": {
"Action": "Update",
"Controller": "./scripts/Controllers/xAzureADGroupController.v2.ps1"
},
"AzureADGroup/Delete": {
"Action": "Delete",
"Controller": "./scripts/Controllers/xAzureADGroupController.v2.ps1"
},
"AzureADGroup/Restore": {
"Action": "Restore",
"Controller": "./scripts/Controllers/xAzureADGroupController.v2.ps1"
},
"AzureADGroup/Destroy": {
"Action": "Destroy",
"Controller": "./scripts/Controllers/xAzureADGroupController.v2.ps1"
}
}
}