policy-reporter-preview

by Kyverno

Helm chartv3.0.0-beta.18App 3.0.0-betaVerified publisher

Policy Reporter watches for PolicyReport Resources. It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord

About this chart

policy-reporter-preview

Policy Reporter watches for PolicyReport Resources. It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord

Documentation

You can find detailed Information and Screens about Features and Configurations in the Documentation.

Installation with Helm v3

Installation via Helm Repository

Add the Helm repository

helm repo add policy-reporter https://kyverno.github.io/policy-reporter
helm repo update

Basic Installation

The basic installation provides an Prometheus Metrics Endpoint and different REST APIs, for more details have a look at the Documentation.

helm install policy-reporter policy-reporter/policy-reporter -n policy-reporter --create-namespace

Policy Reporter UI

You can use the Policy Reporter as standalone Application along with the optional UI SubChart.

Installation with Policy Reporter UI and Kyverno Plugin enabled

helm install policy-reporter policy-reporter/policy-reporter --set kyvernoPlugin.enabled=true --set ui.enabled=true --set ui.plugins.kyverno=true -n policy-reporter --create-namespace
kubectl port-forward service/policy-reporter-ui 8082:8080 -n policy-reporter

Open http://localhost:8082/ in your browser.

Check the Documentation for Screens and additional Information

Resources

Values

KeyTypeDefaultDescription
nameOverridestring""
fullnameOverridestring"policy-reporter"
namespaceOverridestring""
image.registrystring"ghcr.io"
image.repositorystring"kyverno/policy-reporter"
image.pullPolicystring"IfNotPresent"
image.tagstring"0dfbaa0"
imagePullSecretslist[]
priorityClassNamestring""
replicaCountint1
revisionHistoryLimitint10
deploymentStrategyobject{}
port.namestring"http"
port.numberint8080
annotationsobject{}
rbac.enabledbooltrue
serviceAccount.createbooltrue
serviceAccount.annotationsobject{}
serviceAccount.namestring""
service.enabledbooltrue
service.annotationsobject{}
service.labelsobject{}
service.typestring"ClusterIP"
service.portint8080
podSecurityContext.fsGroupint1234
securityContext.runAsUserint1234
securityContext.runAsNonRootbooltrue
securityContext.privilegedboolfalse
securityContext.allowPrivilegeEscalationboolfalse
securityContext.readOnlyRootFilesystembooltrue
securityContext.capabilities.drop[0]string"ALL"
securityContext.seccompProfile.typestring"RuntimeDefault"
podAnnotationsobject{}
podLabelsobject{}
resourcesobject{}
networkPolicy.enabledboolfalse
networkPolicy.egress[0].tostringnil
networkPolicy.egress[0].ports[0].protocolstring"TCP"
networkPolicy.egress[0].ports[0].portint6443
networkPolicy.ingresslist[]
ingress.enabledboolfalse
ingress.classNamestring""
ingress.labelsobject{}
ingress.annotationsobject{}
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]
logging.encodingstring"console"
logging.logLevelint0
logging.developmentboolfalse
api.loggingboolfalse
rest.enabledboolfalse
metrics.enabledboolfalse
metrics.modestring"detailed"
metrics.customLabelslist[]
profiling.enabledboolfalse
workerint5
reportFilter.namespaces.includelist[]
reportFilter.namespaces.excludelist[]
reportFilter.disableClusterReportsboolfalse
sourceConfiglist[]Customize source specific logic like result ID generation
sourceFilterslist[{"disableClusterReports":false,"kinds":{"exclude":["ReplicaSet"]},"selector":{"source":"kyverno"},"uncontrolledOnly":true}]Source based PolicyReport filter
sourceFilters[0]object{"disableClusterReports":false,"kinds":{"exclude":["ReplicaSet"]},"selector":{"source":"kyverno"},"uncontrolledOnly":true}PolicyReport selector.
sourceFilters[0].selector.sourcestring"kyverno"select PolicyReport by source
sourceFilters[0].uncontrolledOnlybooltrueFilter out PolicyReports of controlled Pods and Jobs, only works for PolicyReport with scope resource
sourceFilters[0].disableClusterReportsboolfalseFilter out ClusterPolicyReports
sourceFilters[0].kindsobject{"exclude":["ReplicaSet"]}Filter out PolicyReports based on the scope resource kind
global.labelsobject{}
basicAuth.usernamestring""
basicAuth.passwordstring""
basicAuth.secretRefstring""
emailReports.clusterNamestring""
emailReports.titlePrefixstring"Report"
emailReports.resourcesobject{}
emailReports.smtp.secretstring""
emailReports.smtp.hoststring""
emailReports.smtp.portint465
emailReports.smtp.usernamestring""
emailReports.smtp.passwordstring""
emailReports.smtp.fromstring""
emailReports.smtp.encryptionstring""
emailReports.smtp.skipTLSboolfalse
emailReports.smtp.certificatestring""
emailReports.summary.enabledboolfalse
emailReports.summary.schedulestring"0 8 * * *"
emailReports.summary.activeDeadlineSecondsint300
emailReports.summary.backoffLimitint3
emailReports.summary.ttlSecondsAfterFinishedint0
emailReports.summary.restartPolicystring"Never"
emailReports.summary.tolist[]
emailReports.summary.filterobject{}
emailReports.summary.channelslist[]
emailReports.violations.enabledboolfalse
emailReports.violations.schedulestring"0 8 * * *"
emailReports.violations.activeDeadlineSecondsint300
emailReports.violations.backoffLimitint3
emailReports.violations.ttlSecondsAfterFinishedint0
emailReports.violations.restartPolicystring"Never"
emailReports.violations.tolist[]
emailReports.violations.filterobject{}
emailReports.violations.channelslist[]
existingTargetConfig.enabledboolfalse
existingTargetConfig.namestring""
existingTargetConfig.subPathstring""
target.loki.hoststring""
target.loki.certificatestring""
target.loki.skipTLSboolfalse
target.loki.secretRefstring""
target.loki.mountedSecretstring""
target.loki.pathstring""
target.loki.minimumSeveritystring""
target.loki.sourceslist[]
target.loki.skipExistingOnStartupbooltrue
target.loki.customFieldsobject{}
target.loki.headersobject{}
target.loki.usernamestring""
target.loki.passwordstring""
target.loki.filterobject{}
target.loki.channelslist[]
target.elasticsearch.hoststring""
target.elasticsearch.certificatestring""
target.elasticsearch.skipTLSboolfalse
target.elasticsearch.indexstring"policy-reporter"
target.elasticsearch.usernamestring""
target.elasticsearch.passwordstring""
target.elasticsearch.apiKeystring""
target.elasticsearch.secretRefstring""
target.elasticsearch.mountedSecretstring""
target.elasticsearch.rotationstring"daily"
target.elasticsearch.minimumSeveritystring""
target.elasticsearch.sourceslist[]
target.elasticsearch.skipExistingOnStartupbooltrue
target.elasticsearch.typelessApiboolfalse
target.elasticsearch.customFieldsobject{}
target.elasticsearch.filterobject{}
target.elasticsearch.channelslist[]
target.slack.webhookstring""
target.slack.channelstring""
target.slack.secretRefstring""
target.slack.mountedSecretstring""
target.slack.minimumSeveritystring""
target.slack.sourceslist[]
target.slack.skipExistingOnStartupbooltrue
target.slack.customFieldsobject{}
target.slack.filterobject{}
target.slack.channelslist[]
target.discord.webhookstring""
target.discord.secretRefstring""
target.discord.mountedSecretstring""
target.discord.minimumSeveritystring""
target.discord.sourceslist[]
target.discord.skipExistingOnStartupbooltrue
target.discord.filterobject{}
target.discord.channelslist[]
target.teams.webhookstring""
target.teams.secretRefstring""
target.teams.mountedSecretstring""
target.teams.certificatestring""
target.teams.skipTLSboolfalse
target.teams.minimumSeveritystring""
target.teams.sourceslist[]
target.teams.skipExistingOnStartupbooltrue
target.teams.filterobject{}
target.teams.channelslist[]
target.webhook.hoststring""
target.webhook.certificatestring""
target.webhook.skipTLSboolfalse
target.webhook.secretRefstring""
target.webhook.mountedSecretstring""
target.webhook.headersobject{}
target.webhook.minimumSeveritystring""
target.webhook.sourceslist[]
target.webhook.skipExistingOnStartupbooltrue
target.webhook.customFieldsobject{}
target.webhook.filterobject{}
target.webhook.channelslist[]
target.telegram.tokenstring""
target.telegram.chatIdstring""
target.telegram.hoststring""
target.telegram.certificatestring""
target.telegram.skipTLSboolfalse
target.telegram.secretRefstring""
target.telegram.mountedSecretstring""
target.telegram.headersobject{}
target.telegram.minimumSeveritystring""
target.telegram.sourceslist[]
target.telegram.skipExistingOnStartupbooltrue
target.telegram.customFieldsobject{}
target.telegram.filterobject{}
target.telegram.channelslist[]
target.googleChat.webhookstring""
target.googleChat.certificatestring""
target.googleChat.skipTLSboolfalse
target.googleChat.secretRefstring""
target.googleChat.mountedSecretstring""
target.googleChat.headersobject{}
target.googleChat.minimumSeveritystring""
target.googleChat.sourceslist[]
target.googleChat.skipExistingOnStartupbooltrue
target.googleChat.customFieldsobject{}
target.googleChat.filterobject{}
target.googleChat.channelslist[]
target.s3.accessKeyIdstring""
target.s3.secretAccessKeystring""
target.s3.secretRefstring""
target.s3.mountedSecretstring""
target.s3.regionstring""
target.s3.endpointstring""
target.s3.bucketstring""
target.s3.bucketKeyEnabledboolfalse
target.s3.kmsKeyIdstring""
target.s3.serverSideEncryptionstring""
target.s3.pathStyleboolfalse
target.s3.prefixstring""
target.s3.minimumSeveritystring""
target.s3.sourceslist[]
target.s3.skipExistingOnStartupbooltrue
target.s3.customFieldsobject{}
target.s3.filterobject{}
target.s3.channelslist[]
target.kinesis.accessKeyIdstring""
target.kinesis.secretAccessKeystring""
target.kinesis.secretRefstring""
target.kinesis.mountedSecretstring""
target.kinesis.regionstring""
target.kinesis.endpointstring""
target.kinesis.streamNamestring

Deploy policy-reporter-preview with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has policy-reporter-preview 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 chartpolicy-reporter-preview is pinned at v3.0.0-beta.18 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