auditflow

by Labs64

Helm chartv0.15.43App 0.1.24Verified publisher

Labs64.IO :: AuditFlow - Scalable Audit Logging for Modern Microservices

About this chart

auditflow

Labs64.IO :: AuditFlow - Scalable Audit Logging for Modern Microservices

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{}Affinity for pod assignment For more information: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
applicationTypestring"java"
applicationYamlobject`{"auditflow":{"broker":{"sqs":{"create-queues":true,"queue-prefix":"labs64-audit-","region":""},"type":"rabbitmq"},"idempotency":{"store":"redis"},"pipelines":[],"redaction":{"enabled":false,"mask":"***","rules":[]}},"secretRef":{"resolver":"k8s-secret"},"sink":{"discovery":{"mode":"local"},"local":{"url":"http://localhost:8082"},"service":{"name":"auditflow-sink","namespace":"default"}},"spring":{"autoconfigure":{"exclude":[]},"data":{"redis":{"host":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.hostdefault "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}","port":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port
applicationYaml.auditflowobject{"broker":{"sqs":{"create-queues":true,"queue-prefix":"labs64-audit-","region":""},"type":"rabbitmq"},"idempotency":{"store":"redis"},"pipelines":[],"redaction":{"enabled":false,"mask":"***","rules":[]}}AuditFlow application properties (bound by @ConfigurationProperties(prefix = "auditflow"))
applicationYaml.auditflow.brokerobject{"sqs":{"create-queues":true,"queue-prefix":"labs64-audit-","region":""},"type":"rabbitmq"}Message broker the backend buffers events on. Keys are exact Spring property paths (kebab-case). Exactly one broker is used; the other one's settings are ignored.
applicationYaml.auditflow.broker.sqs.create-queuesbooltrueCreate missing queues (IAM sqs:CreateQueue on *). Tenant DLQs are created on first use, so with false every tenant's DLQ must exist beforehand
applicationYaml.auditflow.broker.sqs.queue-prefixstring"labs64-audit-"Queue name prefix: ingest, ingest-dlq, delivery, quarantine and one dlq- per tenant (at most 40 characters of [A-Za-z0-9_-])
applicationYaml.auditflow.broker.sqs.regionstring""AWS region of the queues; empty = the AWS SDK default (AWS_REGION, set by IRSA / Pod Identity)
applicationYaml.auditflow.broker.typestring"rabbitmq""rabbitmq" (default; connection in spring.rabbitmq below, credentials SPRING_RABBITMQ_USERNAME/PASSWORD in secrets.data) or "sqs" (Amazon SQS; sqs below, credentials from the pod's IAM role via IRSA or EKS Pod Identity — set serviceAccount.annotations — and egress to the SQS endpoint on 443 in networkPolicy.extraEgress)
applicationYaml.auditflow.idempotencyobject{"store":"redis"}Idempotency/dedup store. "redis" (default) is required for more than one replica; "memory" is single-replica only and lets a self-hoster skip running Redis entirely — pair it with tenants.ratelimit.backend: in-memory below and the autoconfigure exclude further down, or Redis connection beans still get created even though nothing uses them.
applicationYaml.auditflow.pipelineslist[]Legacy global pipelines — MUST stay empty: pipelines are per-tenant now (see tenants.platform.pipelines below and the tenant ConfigMaps), and a non-empty list fails application startup by design.
applicationYaml.auditflow.redactionobject{"enabled":false,"mask":"***","rules":[]}PII de-identification, applied at ingest before publish. Global (not per-pipeline) — a rule matches the field across every tenant's events. Disabled by default.
applicationYaml.auditflow.redaction.enabledboolfalseMaster switch — off by default
applicationYaml.auditflow.redaction.maskstring"***"Replacement value used by the "mask" action
applicationYaml.auditflow.redaction.ruleslist[]One entry per field to redact: {field (dot/array path, e.g. extra.userEmail), action (mask
applicationYaml.secretRefobject{"resolver":"k8s-secret"}Resolver for ${secretRef:<key>} sink-credential indirection; "k8s-secret" reads the tenant's own Secret auditflow-tenant-<tenantId>-creds (requires rbac.create), "env" reads AUDITFLOW_TENANT_<TENANTID>_<KEY> environment variables
applicationYaml.sinkobject{"discovery":{"mode":"local"},"local":{"url":"http://localhost:8082"},"service":{"name":"auditflow-sink","namespace":"default"}}Sink configuration
applicationYaml.sink.discoveryobject{"mode":"local"}Discovery mode; "local" or "kubernetes"
applicationYaml.sink.localobject{"url":"http://localhost:8082"}Local URL for the sink service
applicationYaml.sink.serviceobject{"name":"auditflow-sink","namespace":"default"}Service name and namespace for the sink
applicationYaml.springobject`{"autoconfigure":{"exclude":[]},"data":{"redis":{"host":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.hostdefault "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}","port":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port
applicationYaml.spring.autoconfigureobject{"exclude":[]}Spring Boot auto-configuration classes to exclude. Empty by default (Redis auto-config stays active, matching idempotency.store: redis above). For a single-replica, no-Redis deployment, set both auditflow.idempotency.store: memory and tenants.ratelimit.backend: in-memory above, and list these four classes here so Spring Boot never creates a Redis connection it won't use — this is the exact list the bundled docker-compose dev stack already runs with: exclude: - org.springframework.boot.data.redis.autoconfigure.DataRedisAutoConfiguration - org.springframework.boot.data.redis.autoconfigure.DataRedisReactiveAutoConfiguration - org.springframework.boot.data.redis.autoconfigure.health.DataRedisHealthContributorAutoConfiguration - org.springframework.boot.data.redis.autoconfigure.health.DataRedisReactiveHealthContributorAutoConfiguration
applicationYaml.spring.data.redis.hoststring`"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.hostdefault "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}"`
applicationYaml.spring.data.redis.portstring`"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.portdefault 6379 }}{{ else }}6379{{ end }}"`
applicationYaml.spring.data.redis.ssl.enabledboolfalseUse TLS for Redis (required by ElastiCache in-transit encryption)
applicationYaml.spring.datasource.urlstring`"jdbc:postgresql://{{ if and .Values.global .Values.global.postgresql }}{{ .Values.global.postgresql.hostdefault "postgresql.tools.svc.cluster.local" }}:{{ .Values.global.postgresql.port
applicationYaml.spring.rabbitmq.hoststring`"{{ if and .Values.global .Values.global.rabbitmq }}{{ .Values.global.rabbitmq.hostdefault "rabbitmq.tools.svc.cluster.local" }}{{ else }}rabbitmq.tools.svc.cluster.local{{ end }}"`
applicationYaml.spring.rabbitmq.portstring`"{{ if and .Values.global .Values.global.rabbitmq }}{{ .Values.global.rabbitmq.portdefault 5672 }}{{ else }}5672{{ end }}"`
applicationYaml.spring.rabbitmq.ssl.enabledboolfalseUse TLS for AMQP (Amazon MQ accepts AMQPS on 5671 only)
applicationYaml.tenantsobject{"consumer":{"max-in-flight-per-tenant":32},"ratelimit":{"backend":"redis"},"source":{"mode":"gitops-configmap"}}Tenant model (silo isolation) — the chart pins the Kubernetes-native modes; the application's built-in defaults are the cluster-free ones (local-dir / in-memory / env). Keys below are exact Spring property paths (@Value binding, no relaxed naming) — keep kebab-case.
applicationYaml.tenants.consumer.max-in-flight-per-tenantint32Deliveries of one tenant processed at once per pod (fairness layer 2); over it a delivery waits briefly, then is deferred without spending a retry attempt. Half of the pod's delivery units (4 consumers x 16)
applicationYaml.tenants.ratelimit.backendstring"redis"Per-tenant ingest rate-limit backend; "redis" is correct with >1 replica (the application default "in-memory" is single-replica only)
applicationYaml.tenants.source.modestring"gitops-configmap"Tenant config source; "gitops-configmap" watches ConfigMaps labelled auditflow.io/tenant in the release namespace (requires rbac.create), "local-dir" polls a mounted directory
applicationYaml.transformerobject{"discovery":{"mode":"local"},"local":{"url":"http://localhost:8081"},"service":{"name":"auditflow-transformer","namespace":"default"}}Transformer configuration
applicationYaml.transformer.discoveryobject{"mode":"local"}Discovery mode; "local" or "kubernetes"
applicationYaml.transformer.localobject{"url":"http://localhost:8081"}Local URL for the transformer service
applicationYaml.transformer.serviceobject{"name":"auditflow-transformer","namespace":"default"}Service name and namespace for the transformer
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[]Environment variables to add to the container
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"
extraContainersstring`"- name: auditflow-transformer\n image: '{{ include "chart-libs.image" (dict "imageRoot" .Values.transformer.image "context" $) }}'\n imagePullPolicy: '{{ .Values.transformer.image.pullPolicy }}'\n securityContext:\n allowPrivilegeEscalation: false\n readOnlyRootFilesystem: true\n capabilities:\n drop:\n - ALL\n ports:\n - name: http-trn\n containerPort: {{ .Valu

Deploy auditflow with OpenTenant

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