From 2b476c8e1ee76ad5debe01ba797fac2ae7654db7 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Wed, 8 Jan 2025 09:46:08 +0530 Subject: [PATCH] add audit logging --- helm/Chart.yaml | 1 + helm/templates/ingestor-statefulset.yaml | 9 +++++++++ helm/templates/querier-statefulset.yaml | 9 +++++++++ helm/templates/standalone-deployment.yaml | 9 +++++++++ helm/values.yaml | 7 +++++++ 5 files changed, 35 insertions(+) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 356c1b697..a4c42b3fa 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -4,6 +4,7 @@ description: Helm chart for Parseable Server type: application version: 1.7.0 appVersion: "v1.7.0" +icon: "https://raw.githubusercontent.com/parseablehq/.github/main/images/logo.svg" maintainers: - name: Parseable Team email: hi@parseable.com diff --git a/helm/templates/ingestor-statefulset.yaml b/helm/templates/ingestor-statefulset.yaml index 06b2b50d2..bc9b3d803 100644 --- a/helm/templates/ingestor-statefulset.yaml +++ b/helm/templates/ingestor-statefulset.yaml @@ -73,6 +73,15 @@ spec: fieldPath: metadata.name {{- end }} + {{- if .Values.parseable.auditLogging.enabled }} + - name: P_AUDIT_LOGGER + value: {{ .Values.parseable.auditLogging.p_server | quote }} + - name: P_AUDIT_USERNAME + value: {{ .Values.parseable.auditLogging.p_username | quote }} + - name: P_AUDIT_PASSWORD + value: {{ .Values.parseable.auditLogging.p_password | quote }} + {{- end }} + {{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }} {{- range $secret := .Values.parseable.s3ModeSecret.secrets }} {{- range $key := $secret.keys }} diff --git a/helm/templates/querier-statefulset.yaml b/helm/templates/querier-statefulset.yaml index 4a9e7ad8c..85b1c7f1a 100644 --- a/helm/templates/querier-statefulset.yaml +++ b/helm/templates/querier-statefulset.yaml @@ -61,6 +61,15 @@ spec: value: {{ tpl $value $ | quote }} {{- end }} + {{- if .Values.parseable.auditLogging.enabled }} + - name: P_AUDIT_LOGGER + value: {{ .Values.parseable.auditLogging.p_server | quote }} + - name: P_AUDIT_USERNAME + value: {{ .Values.parseable.auditLogging.p_username | quote }} + - name: P_AUDIT_PASSWORD + value: {{ .Values.parseable.auditLogging.p_password | quote }} + {{- end }} + {{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }} {{- range $secret := .Values.parseable.s3ModeSecret.secrets }} {{- range $key := $secret.keys }} diff --git a/helm/templates/standalone-deployment.yaml b/helm/templates/standalone-deployment.yaml index 78a25df1b..b12ceb98a 100644 --- a/helm/templates/standalone-deployment.yaml +++ b/helm/templates/standalone-deployment.yaml @@ -61,6 +61,15 @@ spec: {{- end }} {{- end }} + {{- if .Values.parseable.auditLogging.enabled }} + - name: P_AUDIT_LOGGER + value: {{ .Values.parseable.auditLogging.p_server | quote }} + - name: P_AUDIT_USERNAME + value: {{ .Values.parseable.auditLogging.p_username | quote }} + - name: P_AUDIT_PASSWORD + value: {{ .Values.parseable.auditLogging.p_password | quote }} + {{- end }} + {{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }} {{- range $secret := .Values.parseable.s3ModeSecret.secrets }} {{- range $key := $secret.keys }} diff --git a/helm/values.yaml b/helm/values.yaml index a3e7785c1..3b8a55151 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -34,6 +34,13 @@ parseable: requests: cpu: 250m memory: 1Gi + ## Enable audit logging on parseable nodes + auditLogging: + enabled: false + p_server: "http://parseable-ingestor-service.parseable.svc.cluster.local" + p_username: "admin" + p_password: "admin" + ## Add environment variables to the Parseable Deployment env: RUST_LOG: warn