auditLog-1.4.0

Kosi Plugin auditLog Version 1.4.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 = "0.1.0";
apiversion = "kubernative/kubeops/kosi/user/v3";
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 = "0.1.0";
apiversion = "kubernative/kubeops/kosi/user/v3";
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/"');
}