file-integrity-operator

by tjungbauer

Helm chartv1.0.15Apache-2.0Verified publisher

Setup the FileIntegrity Operator (based on AIDE)

About this chart

file-integrity-operator

Description

Setup the FileIntegrity Operator (based on AIDE)

This Helm Chart is installing and configuring the File Integrity Operator, which uses AIDE to check if any files have been changed on the operating system.

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.27

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops (for example in the folder clusters/management-cluster/setup-file-integrity-operator)

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/file-integrity-operator

Parameters

Verify the subcharts for additional settings:

Values

KeyTypeDefaultDescription
aide.controlplane.configobject{"customconfig":{"enabled":true,"key":"controlplane-aide.conf","name":"controlplane-aide-conf","namespace":"openshift-file-integrity"},"gracePeriod":900,"maxBackups":5}FileIntegrity configuration
aide.controlplane.config.customconfigobject{"enabled":true,"key":"controlplane-aide.conf","name":"controlplane-aide-conf","namespace":"openshift-file-integrity"}Enable a custom configuration. This is usefull for control planes. If not defined a configuration will be created.
aide.controlplane.config.customconfig.enabledboolfalseEnable custom configuration
aide.controlplane.config.customconfig.keystring"controlplane-aide.conf"The key that contains the actual AIDE configuration in a configmap specified by Name and Namespace. Defaults to aide.conf
aide.controlplane.config.customconfig.namespacestring"openshift-file-integrity"Namespace of a configMap that contains custom AIDE configuration. A default configuration would be created if omitted.
aide.controlplane.config.gracePeriodint900Time between individual aide scans
aide.controlplane.config.maxBackupsint5The maximum number of AIDE database and log backups (leftover from the re-init process) to keep on a node. Older backups beyond this number are automatically pruned by the daemon.
aide.controlplane.enabledboolfalseEnable worker node fileintegrity check
aide.controlplane.namestring"controlplane-fileintegrity"Name of this object
aide.controlplane.namespacestring"openshift-file-integrity"Namespace, typically openshift-file-integrity
aide.controlplane.selectorobject{"key":"node-role.kubernetes.io/master","value":""}nodeSelector as key/value
aide.controlplane.syncwaveint10Syncwave when this object is created
aide.controlplane.tolerationslistemptyIf you want this component to only run on specific nodes, you can configure tolerations of tainted nodes.
aide.worker.configobject{"customconfig":{"enabled":false},"gracePeriod":900,"maxBackups":5}FileIntegrity configuration
aide.worker.config.customconfigobject{"enabled":false}Enable a custom configuration. This is usefull for control planes. If not defined a configuration will be created.
aide.worker.config.customconfig.enabledboolfalseEnable custom configuration
aide.worker.config.gracePeriodint900Time between individual aide scans
aide.worker.config.maxBackupsint5The maximum number of AIDE database and log backups (leftover from the re-init process) to keep on a node. Older backups beyond this number are automatically pruned by the daemon.
aide.worker.enabledboolfalseEnable worker node fileintegrity check
aide.worker.namestring"worker-fileintegrity"Name of this object
aide.worker.namespacestring"openshift-file-integrity"Namespace, typically openshift-file-integrity
aide.worker.nodeSelector.keystring"node-role.kubernetes.io/worker"
aide.worker.nodeSelector.valuestring""
aide.worker.selectorobject{"key":"node-role.kubernetes.io/worker","value":""}nodeSelector as key/value
aide.worker.syncwaveint5Syncwave when this object is created
aide.worker.tolerationslistemptyIf you want this component to only run on specific nodes, you can configure tolerations of tainted nodes.

Example values

---
# Deploy operator using helper-operator sub chart
helper-operator:
  operators:
    quay-operator:
      enabled: false
      syncwave: '0'
      namespace:
        name: openshift-file-integrity
        create: true
      subscription:
        channel: stable
        approval: Automatic
        operatorName: file-integrity-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      operatorgroup:
        create: true
        notownnamespace: true

# Verify if operator has been deployed using helper-status-checker sub-chart
helper-status-checker:
  enabled: false

  checks:

    - operatorName: file-integrity-operator
      namespace:
        name: openshift-file-integrity
      syncwave: 3

      serviceAccount:
        name: "sa-file-integrity-checker"

aide:
  worker:
    enabled: true
    syncwave: 5
    name: worker-fileintegrity
    namespace: openshift-file-integrity
    selector:
      key: node-role.kubernetes.io/worker
      value: ""

    config:
      gracePeriod: 900
      maxBackups: 5

  controlplane:
    enabled: false
    syncwave: 10
    name: controlplane-fileintegrity
    namespace: openshift-file-integrity
    selector:
      key: node-role.kubernetes.io/master
      value: ""

    config:
      gracePeriod: 900
      maxBackups: 5

      customconfig:
        enabled: true
        name: controlplane-aide-conf
        namespace: openshift-file-integrity
        key: "controlplane-aide.conf"

    tolerations:
      - effect: NoSchedule
        key: node-role.kubernetes.io/master
        operator: Exists

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy file-integrity-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has file-integrity-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfile-integrity-operator is pinned at v1.0.15 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply