UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
test-values.yaml 4.81 KiB
Newer Older
  scripts:
    envs:
      PACKAGE_LEVEL_TEST: "true"
Michael McLeroy's avatar
Michael McLeroy committed
waitforready:
  imagePullSecrets:
  - name: private-registry
Michael McLeroy's avatar
Michael McLeroy committed
exclude:
  any:
  - resources:
      namespaces:
      - kyverno-policies
      names:
      - kyverno-policies-script-test*
policies:
  clone-configs:
    enabled: true
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      clone:
      - name: clone-configs-1
        kind: ConfigMap
Michael McLeroy's avatar
Michael McLeroy committed
        namespace: "{{ .Release.Namespace }}"
Michael McLeroy's avatar
Michael McLeroy committed
      - name: clone-configs-2
        kind: Secret
Michael McLeroy's avatar
Michael McLeroy committed
        namespace: "{{ .Release.Namespace }}"
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-annotations:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      disallow:
Michael McLeroy's avatar
Michael McLeroy committed
      - 'kyverno-policies-bbtest/test: disallowed'
      - kyverno-policies-bbtest/disallowed
  disallow-deprecated-apis:
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-host-namespaces:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-image-tags:
    enabled: true
  disallow-istio-injection-bypass:
    enabled: true
  disallow-labels:
    enabled: true
    parameters:
      disallow:
Michael McLeroy's avatar
Michael McLeroy committed
      - 'kyverno-policies-bbtest/test: disallowed'
      - kyverno-policies-bbtest/disallowed
  disallow-namespaces:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-nodeport-services:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-pod-exec:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: false  # No way to test this
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-privilege-escalation:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-privileged-containers:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
  disallow-rbac-on-default-serviceaccounts:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  disallow-tolerations:
    enabled: true
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      disallow:
Michael McLeroy's avatar
Michael McLeroy committed
      - effect: NoSchedule
        key: notallowed
        value: 'false'
      - effect: '*NoSchedule'
        key: disa??owed
        value: 'true'
Michael McLeroy's avatar
Michael McLeroy committed
  require-annotations:
    enabled: true
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      require:
Michael McLeroy's avatar
Michael McLeroy committed
      - 'kyverno-policies-bbtest/test: required'
      - kyverno-policies-bbtest/required
Michael McLeroy's avatar
Michael McLeroy committed
  require-cpu-limit:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-drop-all-capabilities:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-image-signature:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
    parameters:
      require:
      - imageReferences:
        - "ghcr.io/kyverno/test-verify-image:*"
        attestors:
        - count: 1
          entries:
          - keys:
              publicKeys: |-
                -----BEGIN PUBLIC KEY-----
                MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE8nXRh950IZbRj8Ra/N9sbqOPZrfM
                5/KAQN0/KjHcorm/J5yctVd7iEcnessRQjU917hmKO6JWVGHpDguIyakZA==
                -----END PUBLIC KEY-----
Michael Martin's avatar
Michael Martin committed
        mutateDigest: false
        verifyDigest: false
      - imageReferences:
        - "registry1.dso.mil/ironbank/*"
        attestors:
        - count: 1
          entries:
          - keys:
              publicKeys: |-
                -----BEGIN PUBLIC KEY-----
                MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7CjMGH005DFFz6mffqTIGurBt6fL
                UfTZxuEDFRBS8mFJx1xw8DEVvjMibLTtqmAoJxUmzmGFgzz+LV875syVEg==
                -----END PUBLIC KEY-----
        # Ironbank images are rebuilt nightly and tags are not immutable
        mutateDigest: false
        verifyDigest: false
Michael McLeroy's avatar
Michael McLeroy committed
  require-istio-on-namespaces:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-labels:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      require:
Michael McLeroy's avatar
Michael McLeroy committed
      - 'kyverno-policies-bbtest/test: required'
      - kyverno-policies-bbtest/required
Michael McLeroy's avatar
Michael McLeroy committed
  require-memory-limit:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-non-root-group:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-non-root-user:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
  require-probes:
    enabled: true
  require-requests-equal-limits:
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  require-ro-rootfs:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-apparmor:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
  restrict-capabilities:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-external-ips:
    enabled: true
    parameters:
      allow:
Michael McLeroy's avatar
Michael McLeroy committed
      - 192.168.0.1
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-external-names:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      allow:
Michael McLeroy's avatar
Michael McLeroy committed
      - allowed
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-group-id:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
  restrict-host-path-mount:
    enabled: true
    parameters:
      allow:
Michael McLeroy's avatar
Michael McLeroy committed
      - /tmp/allowed
  restrict-host-path-mount-pv:
    enabled: true
    parameters:
      allow:
      - /tmp/allowed
  restrict-host-path-write:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      allow:
Michael McLeroy's avatar
Michael McLeroy committed
      - /tmp/allowed
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-host-ports:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
    parameters:
Michael McLeroy's avatar
Michael McLeroy committed
      allow:
Michael McLeroy's avatar
Michael McLeroy committed
      - '63999'
      - '>= 64000 & < 65000'
      - '> 65000'
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-image-registries:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-proc-mount:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-seccomp:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-selinux-type:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-sysctls:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-user-id:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  restrict-volume-types:
Michael McLeroy's avatar
Michael McLeroy committed
    enabled: true
Michael McLeroy's avatar
Michael McLeroy committed
  update-image-pull-policy:
    enabled: true
    parameters:
      update:
Michael McLeroy's avatar
Michael McLeroy committed
      - to: Always
Michael McLeroy's avatar
Michael McLeroy committed
  update-image-registry:
    enabled: true
    parameters:
      update:
Michael McLeroy's avatar
Michael McLeroy committed
      - from: replace.image.registry
        to: registry1.dso.mil
Michael McLeroy's avatar
Michael McLeroy committed
  update-token-automount:
Michael Martin's avatar
Michael Martin committed
    enabled: true
  update-automountserviceaccounttokens:
    enabled: true
    namespaces:
      - namespace: update-automountserviceaccounttokens-2
        serviceAccounts:
        - update-token-automount-2