csp-reporter

by foomo

Helm chartv3.0.0App 1.5.0Verified publisher

Content Security Policy Reporter

About this chart

csp-reporter

Content Security Policy Reporter

Homepage: https://www.foomo.org

Source Code

Upgrading to 3.0.0

The container now runs as uid/gid 65532 with a read-only root filesystem, no capabilities and the RuntimeDefault seccomp profile, and listens on http.port (8080) instead of 80. The Service keeps service.port (80) and targets the named port, so clients and ingresses need no change. The chart always runs /usr/bin/service --address=:<http.port> and appends args; an address flag in args fails the render. New resource defaults request 10m CPU and 64Mi memory and limit memory to 256Mi.

helm upgrade --reuse-values from 2.x keeps the old empty security contexts and resources, so the pod runs as root on port 8080. To return to root on container port 80, null every new default, because Helm merges these maps into the chart defaults. The result runs like 2.x but is not identical: the explicit command and its address flag stay.

http:
  port: 80
podSecurityContext:
  runAsUser: null
  runAsGroup: null
  runAsNonRoot: null
  seccompProfile: null
securityContext:
  allowPrivilegeEscalation: null
  readOnlyRootFilesystem: null
  capabilities: null
resources:
  requests: null
  limits: null

Values

KeyTypeDefaultDescription
affinityobject{}
argslist[]Extra flags for the reporter binary
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
fullnameOverridestring""
http.portint8080Container port of the report listener, passed to the reporter as its address flag; the Service keeps service.port
image.pullPolicystring"IfNotPresent"
image.repositorystring"foomo/csp-reporter"
image.tagstring"1.5.0"
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbeobject{}Liveness probe, tcpSocket on the http port when empty; a non-empty value replaces it and must include a handler
metrics.portint9200Container port of the Prometheus metrics listener; when not 9200, also pass a matching prometheus-address flag in args
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.runAsGroupint65532Run as group id
podSecurityContext.runAsNonRootbooltrueRefuse to start the container as root
podSecurityContext.runAsUserint65532Run as user id
podSecurityContext.seccompProfileobject{"type":"RuntimeDefault"}Restrict the container's syscalls with seccomp
readinessProbeobject{}Readiness probe, tcpSocket on the http port when empty; a non-empty value replaces it and must include a handler
replicaCountint1
resources.limits.memorystring"256Mi"Memory limit
resources.requests.cpustring"10m"CPU request
resources.requests.memorystring"64Mi"Memory request
securityContext.allowPrivilegeEscalationboolfalseControls whether a process can gain more privileges than its parent process
securityContext.capabilitiesobject{"drop":["ALL"]}Grant certain privileges to a process without granting all the privileges of the root user
securityContext.readOnlyRootFilesystembooltrueMounts the container's root filesystem as read-only
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createboolfalse
serviceAccount.namestring""
serviceMonitor.additionalLabelsobject{}Additional ServiceMonitor labels, e.g. the label your Prometheus selects on
serviceMonitor.enabledboolfalseCreate a Prometheus Operator ServiceMonitor and a metrics port on the Service (needs the ServiceMonitor CRD)
serviceMonitor.intervalstring""ServiceMonitor scrape interval, Prometheus default when empty
tolerationslist[]

Deploy csp-reporter with OpenTenant

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