Skip to content

Commit

Permalink
Update audit log persistent volume mount path (#45)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
coreydaley authored Oct 24, 2024
1 parent d2b08c7 commit 3fe69f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion charts/backstage/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,11 @@
"app": {
"baseUrl": "https://{{- include \"janus-idp.hostname\" . }}"
},
"auditLog": {
"rotateFile": {
"enabled": true
}
},
"backend": {
"auth": {
"externalAccess": [
Expand Down Expand Up @@ -2532,7 +2537,7 @@
"name": "dynamic-plugins-root"
},
{
"mountPath": "/var/log/audit",
"mountPath": "/var/log/redhat-developer-hub/audit",
"name": "audit-log-data"
}
],
Expand Down
5 changes: 4 additions & 1 deletion charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}'
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3fe69f8

Please sign in to comment.