auditLog-1.6.0
less than a minute
Kosi Plugin auditLog Version 1.6.0
Summary
With the auditLog plugin you can enable or disable auditLog for your Kubernetes Cluster. The plugin supports the following usage:
Keys
Key | Description | |
---|---|---|
state | Mandatory | With the value “on” or “off” you can enable or disable the auditlogging for your Cluster. |
policyPath | Mandatory | The path in which your policy.yaml is stored. |
logPath | Mandatory | The path in which the audit.log will be stored. |
Example 1 - enable auditLog
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input="template.yaml";
}
containers =
{
example=["docker.io", "nginx", "latest"];
}
install
{
auditLog(state="on"; policyPath="/root/test/policyDir/";logPath="/root/test/logging/");
}
Example 2 - disable auditLog
languageversion = "1.0.0";
apiversion = "kubernative/kubeops/kosi/user/v4";
name = "kosi-example-packagev3";
description = "kosi-example-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
files =
{
input="template.yaml";
}
containers =
{
example=["docker.io", "nginx", "latest"];
}
install
{
auditLog(state="off"; policyPath="/root/test/policyDir/";logPath="/root/test/logging/");
}