compliance-operator-full-stack

by tjungbauer

Helm chartv1.0.38Apache-2.0Verified publisher

Master chart to deploy and configure the Compliance Operator

About this chart

compliance-operator-full-stack

Description

Master chart to deploy and configure the Compliance Operator

This Helm Chart is installing and configuring the Compliance operator, using the following workflow:

  1. Create required Namespace
  2. Installing the Compliance operator by applying the Subscription and OperatorGroup object. (In addition, the InstallPlan can be approved if required)
  3. Verifying if the operator is ready to use Install and configure the compliance operator.
  4. Apply a ScanSettingBinding and, optionally, a TailoredProfile.

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/helper-operator~1.0.36
https://charts.stderr.at/helper-status-checker~4.0.0
https://charts.stderr.at/tpl~1.0.31

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops

Maintainers

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

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/compliance-operator-full-stack

Parameters

:bulb: TIP: See README files of sub Charts for additional possible settings: helper-operator and helper-status-checker.

Values

KeyTypeDefaultDescription
compliance.namespaceobject{"descr":"","name":"openshift-compliance","syncwave":"0"}Settings for namespace where compliance operator will be installed.
compliance.namespace.descrstring""OpenShift namespace description (openshift.io/description); same key as helper-operator namespace blocks
compliance.namespace.namestring"openshift-compliance"Namespace of the operator
compliance.namespace.syncwavestring0Sync wave documented for GitOps ordering (operator namespace is created via helper-operator)
compliance.scansettingbindingobject`{"additionalAnnotations":{},"additionalLabels":{},"enabled":true,"profiles":[{"kind":"Profile","name":"ocp4-cis-node"},{"kind":"Profile","name":"ocp4-cis"}],"scansetting":"default","syncwave":"3","tailored":{"additionalAnnotations":{},"additionalLabels":{},"enabled":false,"modified_profiles":[{"description":"Modified ocp4-cis profile","disableRules":[{"name":"ocp4-scc-limit-container-allowed-capabilities","rationale":"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"}],"extends":"ocp4-cis","name":"tailoredprofile-ocp4-cis","setValues":[{"name":"ocp4-var-sccs-with-allowed-capabilities-regex","rationale":"To exclude extra SCC's from OCP-CIS rule","value":"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.additionalAnnotationsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
compliance.scansettingbinding.additionalLabelsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
compliance.scansettingbinding.enabledboolfalseEnable ScanSetting cnofiguration
compliance.scansettingbinding.profileslist[{"kind":"Profile","name":"ocp4-cis-node"},{"kind":"Profile","name":"ocp4-cis"}]A list of Profiles that shall be used for scanning
compliance.scansettingbinding.profiles[0]object{"kind":"Profile","name":"ocp4-cis-node"}The name of the Profile
compliance.scansettingbinding.profiles[0].kindstring"Profile"The kind of the profile. This can either be Profile or TailoredProfile
compliance.scansettingbinding.scansettingstring"default"Use the default ScanSettings that a provided by the Operator.
compliance.scansettingbinding.syncwavestring"3"Syncwave for the ScanSetting
compliance.scansettingbinding.tailoredobject`{"additionalAnnotations":{},"additionalLabels":{},"enabled":false,"modified_profiles":[{"description":"Modified ocp4-cis profile","disableRules":[{"name":"ocp4-scc-limit-container-allowed-capabilities","rationale":"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"}],"extends":"ocp4-cis","name":"tailoredprofile-ocp4-cis","setValues":[{"name":"ocp4-var-sccs-with-allowed-capabilities-regex","rationale":"To exclude extra SCC's from OCP-CIS rule","value":"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.tailored.additionalAnnotationsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
compliance.scansettingbinding.tailored.additionalLabelsobject{}Additional labels to add to the Keycloak instance as key: value pairs.
compliance.scansettingbinding.tailored.enabledboolfalseEnable TailoredProfile
compliance.scansettingbinding.tailored.modified_profiles[0]object`{"description":"Modified ocp4-cis profile","disableRules":[{"name":"ocp4-scc-limit-container-allowed-capabilities","rationale":"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"}],"extends":"ocp4-cis","name":"tailoredprofile-ocp4-cis","setValues":[{"name":"ocp4-var-sccs-with-allowed-capabilities-regex","rationale":"To exclude extra SCC's from OCP-CIS rule","value":"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.tailored.modified_profiles[0].descriptionstring"Modified ocp4-cis profile"Description of the Profile
compliance.scansettingbinding.tailored.modified_profiles[0].disableRuleslist[{"name":"ocp4-scc-limit-container-allowed-capabilities","rationale":"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"}]A list of rules that might be disabled.
compliance.scansettingbinding.tailored.modified_profiles[0].disableRules[0]object{"name":"ocp4-scc-limit-container-allowed-capabilities","rationale":"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"}Name of the rule that shall be disabled
compliance.scansettingbinding.tailored.modified_profiles[0].disableRules[0].rationalestring"Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration"A Reason why this rule is excluded.
compliance.scansettingbinding.tailored.modified_profiles[0].extendsstring"ocp4-cis"Which Profile is extended here. Here we are using ocp4-cis as basis. This Profile must exist.
compliance.scansettingbinding.tailored.modified_profiles[0].setValueslist`[{"name":"ocp4-var-sccs-with-allowed-capabilities-regex","rationale":"To exclude extra SCC's from OCP-CIS rule","value":"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.tailored.modified_profiles[0].setValues[0]object`{"name":"ocp4-var-sccs-with-allowed-capabilities-regex","rationale":"To exclude extra SCC's from OCP-CIS rule","value":"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.tailored.modified_profiles[0].setValues[0].rationalestring"To exclude extra SCC's from OCP-CIS rule"The justification for setting this variable.
compliance.scansettingbinding.tailored.modified_profiles[0].setValues[0].valuestring`"^noobaa$^rook-ceph-csi$
compliance.scansettingbinding.tailored.modified_profiles[0].titlestring"Tailored Profile of ocp4-cis"Title of the profile (visible in the reports)
helper-operator.operators.compliance-operator.enabledboolfalseEnabled yes/no
helper-operator.operators.compliance-operator.namespace.createbool""Description of the namespace.
helper-operator.operators.compliance-operator.namespace.namestring"openshift-compliance"The Namespace the Operator should be installed in. The compliance operator should be deployed into openshift-compliance Namepsace that must be created.
helper-operator.operators.compliance-operator.operatorgroup.createboolfalseCreate an Operatorgroup object
helper-operator.operators.compliance-operator.operatorgroup.notownnamespaceboolfalseMonitor own Namespace. For some Operators no targetNamespaces must be defined
helper-operator.operators.compliance-operator.subscription.approvalstringAutomaticUpdate behavior of the Operator. Manual/Automatic
helper-operator.operators.compliance-operator.subscription.channelstringstableChannel of the Subscription
helper-operator.operators.compliance-operator.subscription.operatorNamestring"empty"Name of the Operator The name for the compliance operator is compliance-operator
helper-operator.operators.compliance-operator.subscription.sourcestringredhat-operatorsSource of the Operator
helper-operator.operators.compliance-operator.subscription.sourceNamespacestringopenshift-marketplaceNamespace of the source
helper-operator.operators.compliance-operator.syncwavestring0Syncwave for the operator deployment
helper-status-checker.checks[0]object""Define the name of the operator that shall be verified. Use the value of the currentCSV (packagemanifest) but WITHOUT the version !! For the compliance operator the name should be "compliance-operator"
helper-status-checker.checks[0].namespaceobject""Define where the operator is installed For the compliance operator this should be "openshift-compliance"
helper-status-checker.checks[0].serviceAccountobject{"name":"sa-compliance"}Set the values of the ServiceAccount that will execute the status checker Job.
helper-status-checker.enabledboolfalseEnable status checker

Example values

---
# Install Operator Compliance Operator
# Deploys Operator --> Subscription and Operatorgroup
# Syncwave: 0
helper-operator:
  operators:
    compliance-operator:
      enabled: true
      syncwave: '0'
      namespace:
        name: openshift-compliance
        create: true
      subscription:
        channel: stable
        approval: Automatic
        operatorName: compliance-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      operatorgroup:
        create: true
        notownnamespace: true

helper-status-checker:
  enabled: true

  # use the value of the currentCSV (packagemanifest) but WITHOUT the version !!
  operatorName: compliance-operator

  # where operator is installed
  namespace:
    name: openshift-compliance

  serviceAccount:
    create: true
    name: "sa-compliance"

compliance:
  namespace:
    name: openshift-compliance
    syncwave: '0'
    descr: 'Red Hat Compliance'
  scansettingbinding:
    enabled: true
    syncwave: '3'

    # Example
    tailored:
      enabled: false
      modified_profiles:
      - name: tailoredprofile-ocp4-cis
        description: Modified ocp4-cis profile
        title: Tailored Profile of ocp4-cis
        extends: ocp4-cis
        disableRule:
        - name: ocp4-scc-limit-container-allowed-capabilities
          rationale: Disabling CIS-OCP 5.2.8 that will always be triggered as long nutanix-csi does not provide SCC configuration

    profiles:
      - name: ocp4-cis-node
        kind: Profile  # Could be Profile or TailedProfile
      - name: ocp4-cis
        kind: Profile
    scansetting: default

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](https://github.com/norwoodj/helm-docs/rele

Deploy compliance-operator-full-stack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has compliance-operator-full-stack 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 chartcompliance-operator-full-stack is pinned at v1.0.38 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