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
| Name | Url | |
|---|---|---|
| Labs64 | [email protected] | https://labs64.io |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../chart-libs | chart-libs | 0.8.12 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment For more information: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity |
| applicationType | string | "java" | |
| applicationYaml | object | `{"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.host | default "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.auditflow | object | {"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.broker | object | {"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-queues | bool | true | Create 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-prefix | string | "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.region | string | "" | AWS region of the queues; empty = the AWS SDK default (AWS_REGION, set by IRSA / Pod Identity) |
| applicationYaml.auditflow.broker.type | string | "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.idempotency | object | {"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.pipelines | list | [] | 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.redaction | object | {"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.enabled | bool | false | Master switch — off by default |
| applicationYaml.auditflow.redaction.mask | string | "***" | Replacement value used by the "mask" action |
| applicationYaml.auditflow.redaction.rules | list | [] | One entry per field to redact: {field (dot/array path, e.g. extra.userEmail), action (mask |
| applicationYaml.secretRef | object | {"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.sink | object | {"discovery":{"mode":"local"},"local":{"url":"http://localhost:8082"},"service":{"name":"auditflow-sink","namespace":"default"}} | Sink configuration |
| applicationYaml.sink.discovery | object | {"mode":"local"} | Discovery mode; "local" or "kubernetes" |
| applicationYaml.sink.local | object | {"url":"http://localhost:8082"} | Local URL for the sink service |
| applicationYaml.sink.service | object | {"name":"auditflow-sink","namespace":"default"} | Service name and namespace for the sink |
| applicationYaml.spring | object | `{"autoconfigure":{"exclude":[]},"data":{"redis":{"host":"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.host | default "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.autoconfigure | object | {"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.host | string | `"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.host | default "redis.tools.svc.cluster.local" }}{{ else }}redis.tools.svc.cluster.local{{ end }}"` |
| applicationYaml.spring.data.redis.port | string | `"{{ if and .Values.global .Values.global.redis }}{{ .Values.global.redis.port | default 6379 }}{{ else }}6379{{ end }}"` |
| applicationYaml.spring.data.redis.ssl.enabled | bool | false | Use TLS for Redis (required by ElastiCache in-transit encryption) |
| applicationYaml.spring.datasource.url | string | `"jdbc:postgresql://{{ if and .Values.global .Values.global.postgresql }}{{ .Values.global.postgresql.host | default "postgresql.tools.svc.cluster.local" }}:{{ .Values.global.postgresql.port |
| applicationYaml.spring.rabbitmq.host | string | `"{{ if and .Values.global .Values.global.rabbitmq }}{{ .Values.global.rabbitmq.host | default "rabbitmq.tools.svc.cluster.local" }}{{ else }}rabbitmq.tools.svc.cluster.local{{ end }}"` |
| applicationYaml.spring.rabbitmq.port | string | `"{{ if and .Values.global .Values.global.rabbitmq }}{{ .Values.global.rabbitmq.port | default 5672 }}{{ else }}5672{{ end }}"` |
| applicationYaml.spring.rabbitmq.ssl.enabled | bool | false | Use TLS for AMQP (Amazon MQ accepts AMQPS on 5671 only) |
| applicationYaml.tenants | object | {"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-tenant | int | 32 | Deliveries 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.backend | string | "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.mode | string | "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.transformer | object | {"discovery":{"mode":"local"},"local":{"url":"http://localhost:8081"},"service":{"name":"auditflow-transformer","namespace":"default"}} | Transformer configuration |
| applicationYaml.transformer.discovery | object | {"mode":"local"} | Discovery mode; "local" or "kubernetes" |
| applicationYaml.transformer.local | object | {"url":"http://localhost:8081"} | Local URL for the transformer service |
| applicationYaml.transformer.service | object | {"name":"auditflow-transformer","namespace":"default"} | Service name and namespace for the transformer |
| autoscaling | object | {"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-libs | object | {} | 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 |
| enabled | bool | true | |
| env | list | [] | Environment variables to add to the container |
| envFrom | list | [] | |
| externalSecrets.enabled | bool | false | |
| externalSecrets.secretKey | string | "" | Key/path of this module's secret in the external backend; every key becomes an env var. Defaults to the release fullname. |
| externalSecrets.storeName | string | "local-kubernetes-store" | |
| extraContainers | string | `"- 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartauditflow is pinned at v0.15.43 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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