From 3fe69f8a1463c790f0edf4fbcea66395c9e6d9d3 Mon Sep 17 00:00:00 2001 From: Corey Daley Date: Thu, 24 Oct 2024 10:27:27 -0400 Subject: [PATCH] Update audit log persistent volume mount path (#45) Update the audit log persistent volume mount path to be consistent with the path that the audit logs are being written to by default https://github.com/janus-idp/backstage-showcase/blob/main/packages/backend/src/logger/customLogger.ts#L68-L70 Update the default configuration to write the audit log to the pvc Signed-off-by: Corey Daley --- charts/backstage/Chart.yaml | 2 +- charts/backstage/README.md | 2 +- charts/backstage/values.schema.json | 7 ++++++- charts/backstage/values.yaml | 5 ++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/charts/backstage/Chart.yaml b/charts/backstage/Chart.yaml index 9c295503..b6767b09 100644 --- a/charts/backstage/Chart.yaml +++ b/charts/backstage/Chart.yaml @@ -45,4 +45,4 @@ sources: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.20.0 +version: 2.20.1 diff --git a/charts/backstage/README.md b/charts/backstage/README.md index 859af78a..f2302e1f 100644 --- a/charts/backstage/README.md +++ b/charts/backstage/README.md @@ -2,7 +2,7 @@ # RHDH Backstage Helm Chart for OpenShift (Community Version) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rhdh-chart&style=flat-square)](https://artifacthub.io/packages/search?repo=rhdh-chart) -![Version: 2.20.0](https://img.shields.io/badge/Version-2.20.0-informational?style=flat-square) +![Version: 2.20.1](https://img.shields.io/badge/Version-2.20.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) A Helm chart for deploying Red Hat Developer Hub. diff --git a/charts/backstage/values.schema.json b/charts/backstage/values.schema.json index b0732910..7aaee2f9 100644 --- a/charts/backstage/values.schema.json +++ b/charts/backstage/values.schema.json @@ -954,6 +954,11 @@ "app": { "baseUrl": "https://{{- include \"janus-idp.hostname\" . }}" }, + "auditLog": { + "rotateFile": { + "enabled": true + } + }, "backend": { "auth": { "externalAccess": [ @@ -2532,7 +2537,7 @@ "name": "dynamic-plugins-root" }, { - "mountPath": "/var/log/audit", + "mountPath": "/var/log/redhat-developer-hub/audit", "name": "audit-log-data" } ], diff --git a/charts/backstage/values.yaml b/charts/backstage/values.yaml index b05d8ef7..d3618e54 100644 --- a/charts/backstage/values.yaml +++ b/charts/backstage/values.yaml @@ -47,6 +47,9 @@ upstream: # create multiple DBs. Since Backstage requires by default 5 different DBs, we # can't accommodate that properly. appConfig: + auditLog: + rotateFile: + enabled: true app: # Please update to match host in case you don't want to configure hostname via `global.clusterRouterBase` or `global.host` if not deploying on an openshift cluster. baseUrl: 'https://{{- include "janus-idp.hostname" . }}' @@ -120,7 +123,7 @@ upstream: mountPath: /opt/app-root/src/dynamic-plugins-root # Audit Log data will be stored in this volume mount. - name: audit-log-data - mountPath: /var/log/audit + mountPath: /var/log/redhat-developer-hub/audit extraVolumes: - name: dynamic-plugins-root persistentVolumeClaim: