reporting

by Labs64

Helm chartv0.1.19App 0.0.14Verified publisher

Labs64.IO :: Reporting - read-only reports over the events stored by AuditFlow sinks

About this chart

reporting

Labs64.IO :: Reporting - read-only reports over the events stored by AuditFlow sinks

Homepage: https://labs64.io

Maintainers

NameEmailUrl
Labs64[email protected]https://labs64.io

Source Code

Requirements

RepositoryNameVersion
file://../chart-libschart-libs0.8.12

Values

KeyTypeDefaultDescription
affinityobject{}
applicationTypestring"java"
applicationYamlobject{"labs64":{"reporting":{"clickhouse":{"url":"http://labs64io-clickhouse:8123","username":"reporting"}}}}Additional application properties, including top-level prefixes owned by provider JARs @schema type: object additionalProperties: true @schema
applicationYaml.labs64.reporting.clickhouse.urlstring"http://labs64io-clickhouse:8123"The umbrella chart's pinned ClickHouse Service. The password is a Secret: CLICKHOUSE_PASSWORD.
autoscalingobject{"enabled":false,"maxReplicas":3,"minReplicas":1,"targetCPUUtilizationPercentage":80}This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
chart-libsobject{}Values passed to the chart-libs library dependency (present so the generated schema accepts the key Helm injects for the dependency) @schema type: object additionalProperties: true @schema
enabledbooltrue
envlist[]
envFromlist[]
externalSecrets.enabledboolfalse
externalSecrets.secretKeystring""Key/path of this module's secret in the external backend; every key becomes an env var. Defaults to the release fullname.
externalSecrets.storeNamestring"local-kubernetes-store"
fastStartupboolfalseOptimize for container startup time (-XX:TieredStopAtLevel=1, C1-only JIT) instead of sustained throughput. Local dev wants it on; prod wants it off (the default).
fullnameOverridestring""
gatewayobject{"annotations":{},"authPolicy":{"basePath":"","enabled":true},"enabled":false,"ingressClassName":"","parentRefs":[{"name":"labs64io-gateway","namespace":"tools"}],"prefix":"","routes":[{"path":"/api/v1","port":8080,"stripPath":true},{"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true}],"sharedMiddlewares":{"auth":"authgateway-auth","compress":"authgateway-compress","rateLimit":"authgateway-ratelimit"}}Gateway routes published by this module (rendered by chart-libs.gateway-routes)
gateway.annotationsobject{}Annotations for fallback Ingress
gateway.authPolicyobject{"basePath":"","enabled":true}Auth-policy publication. NOTE: the Auth Gateway no longer live-discovers per-module policies via /.well-known/auth-policy — it loads a generated routes manifest (charts/authgateway/routes/) and asks the central Cerbos PDP for every decision. This block is retained for backward compatibility and is a no-op for edge enforcement.
gateway.authPolicy.basePathstring""External base path prepended to the module's OpenAPI paths; defaults to /api/v1
gateway.authPolicy.enabledbooltruePublish this module's auth policy to the gateway ACS
gateway.enabledboolfalsePublish this module's routes on the Traefik gateway
gateway.ingressClassNamestring""Ingress Class Name for fallback Ingress
gateway.parentRefslist[{"name":"labs64io-gateway","namespace":"tools"}]Gateway API parent Gateway(s) this module's HTTPRoute attaches to
gateway.prefixstring""External path prefix; defaults to /
gateway.routeslist[{"path":"/api/v1","port":8080,"stripPath":true},{"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true}]Routes exposed by this module. The whole API surface is ONE route through ForwardAuth: the Auth Gateway is the PEP and derives public-vs-protected per operation from OpenAPI OAuth security plus x-labs64.auth (generated into the Auth Gateway routes manifest + the central Cerbos PDP). Public operations.
gateway.routes[0]object{"path":"/api/v1","port":8080,"stripPath":true}Whole Reporting API (ForwardAuth PEP decides per-op from OpenAPI; strips '/api/v1' — backend is root-mapped)
gateway.routes[1]object{"path":"/v3/api-docs","port":8080,"public":true,"stripPrefix":true}OpenAPI docs (springdoc endpoint — NOT an OpenAPI operation, so it has no generated OpenAPI auth policy at the Auth Gateway; public at the edge, prefix stripped)
gateway.sharedMiddlewaresobject{"auth":"authgateway-auth","compress":"authgateway-compress","rateLimit":"authgateway-ratelimit"}Names of the shared middlewares provided by the authgateway chart (fullnameOverride: authgateway)
globalobject{"security":{"allowInsecureImages":true}}Global values shared across Labs64.IO charts and Bitnami subcharts @schema type: object additionalProperties: true @schema
global.security.allowInsecureImagesbooltrueRequired by Bitnami subcharts when images are pulled from bitnamilegacy (image substitution guard)
gracefulShutdown.timeoutstring"30s"Max time Spring Boot waits for in-flight requests before forced shutdown
imageobject{"digest":"sha256:0d58ff98a35bf9add92f81ce41290380ca4dac0590d97469b3f54eee67115d8c","pullPolicy":"IfNotPresent","repository":"labs64/reporting","tag":""}This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image.digeststring"sha256:0d58ff98a35bf9add92f81ce41290380ca4dac0590d97469b3f54eee67115d8c"Pin the image by digest (sha256:<64 hex>). Takes precedence over tag — the release pipeline sets it so a deployment cannot follow a moved tag.
image.pullPolicystring"IfNotPresent"This sets the pull policy for images.
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
lifecycle.preStopDrainSecondsint5preStop sleep (seconds) so Traefik/kube-proxy deregister the pod before shutdown; 0 disables
livenessProbeobject{"failureThreshold":3,"httpGet":{"path":"/actuator/health/liveness","port":8080},"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":2}This is to setup the liveness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
nameOverridestring""This is to override the chart name.
networkPolicyobject{"egress":[],"enabled":false,"extraEgress":[],"extraIngress":[],"extraIngressFrom":[],"gatewayNamespace":"tools","ingressControllerLabels":{},"ingressFrom":[],"ingressPorts":[8080],"observabilityNamespace":"monitoring","toolsEgress":[]}NetworkPolicy: allow ingress from Traefik and same-namespace pods only (rendered by chart-libs.networkpolicy)
networkPolicy.egresslist[]ClickHouse and S3 are added per environment under extraEgress.
networkPolicy.extraEgresslist[]Additional raw egress rules
networkPolicy.extraIngresslist[]Additional raw ingress rules
networkPolicy.extraIngressFromlist[]Deployment-owned callers appended to ingressFrom without restating it (the umbrella chart adds its own helm test pod here). @schema type: array items: type: string @schema
networkPolicy.gatewayNamespacestring"tools"Namespace where Traefik runs
networkPolicy.ingressControllerLabelsobject{}Ingress controller pod-selector labels; defaults to the internal Traefik standard (app.kubernetes.io/name: traefik) when empty @schema type: object additionalProperties: true @schema
networkPolicy.ingressFromlist[]In-namespace workloads (app.kubernetes.io/name) allowed to call those ports, besides the ingress controller and this chart's own pods (helm test). []: no module calls it directly. Remove the key (set it to null) to fall back to the namespace-wide rule. @schema type: array items: type: string @schema
networkPolicy.ingressPortslist[8080]TCP ports open to the ingress controller and the in-namespace callers below.
networkPolicy.observabilityNamespacestring"monitoring"Namespace the observability/OTel collector runs in
networkPolicy.toolsEgresslist[]Tools-namespace destinations this service needs (name + port pairs); rendered as scoped egress rules — NOT a blanket allow to the whole tools namespace — to preserve isolation.
nodeSelectorobject{}
observabilityobject{"enabled":false,"metricsPath":"/actuator/prometheus","otlpEndpoint":"http://$(NODE_IP):4318"}Observability is infrastructure-owned: the same image runs with or without it. When enabled, the bundled OTel Java Agent is activated via JAVA_TOOL_OPTIONS and Prometheus scrape annotations (Micrometer /actuator/prometheus) are added.
observability.enabledboolfalseEnable runtime instrumentation (traces + logs via OTLP; metrics via Prometheus scrape)
observability.metricsPathstring"/actuator/prometheus"Prometheus metrics path scraped from the pod
observability.otlpEndpointstring"http://$(NODE_IP):4318"OTLP endpoint of the OpenTelemetry Collector
podAnnotationsobject{}This is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ @schema type: object additionalProperties: true @schema
podDisruptionBudgetobject{"enabled":false,"minAvailable":1}PodDisruptionBudget (rendered by chart-libs.pdb)
podLabelsobject{}This is for setting Kubernetes Labels to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podSecurityContextobject{}
rbac.createboolfalse
rbac.ruleslist[]
readinessProbeobject{"failureThreshold":3,"httpGet":{"path":"/actuator/health/readiness","port":8080},"initialDelaySeconds":0,"periodSeconds":5,"timeoutSeconds":2}This is to setup the readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
replicaCountint1This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
resources.limits.cpustring"500m"
resources.limits.memorystring"768Mi"
resources.requests.cpustring"100m"
resources.requests.memorystring"384Mi"
secretsobject{"data":{}}Secret data to be used as environment variables (delivered via envFrom). The ClickHouse reader's password, as CLICKHOUSE_PASSWORD.
securityContext.allowPrivilegeEscalationboolfalse
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
securityContext.runAsGroupint1064
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint1064
securityContext.seccompProfile.typestring"RuntimeDefault"
serviceobject{"port":8080,"type":"ClusterIP"}This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service.portint8080This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
service.typestring"ClusterIP"This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccountobject{"annotations":{},"automount":false,"create":true,"name":""}This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount.annotationsobject{}Annotations to add to the service account (e.g. eks.amazonaws.com/role-arn for IRSA) @schema type: object additionalProperties: true @schema
serviceAccount.automountboolfalseAutomatically mount a ServiceAccount's API credentials? This workload never calls the Kubernetes API — a mounted token is pure attack surface.
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
sloobject{"availability":{"targetRatio":0.999},"enabled":true,"latency":{"targetRatio":0.99,"thresholdSeconds":0.5}}SLO recording rules and dashboards (rendered by chart-libs.slo.*)
startupProbeobject{"failureThreshold":60,"httpGet":{"path":"/actuator/health/liveness","port":8080},"periodSeconds":2,"timeoutSeconds":2}Startup probe (rendered by chart-libs.startupProbe): guards slow cold starts (Spring Bo

Deploy reporting with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has reporting 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 chartreporting is pinned at v0.1.19 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