Skip to content

Commit 9d9efa2

Browse files
authored
fix: Add LOGDNA_REDACT_REGEX to redact secret values from logs (#13)
1 parent 7185e9c commit 9d9efa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chart/logdna-agent/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ spec:
5555
value: smallfiles
5656
- name: LOGDNA_DB_PATH
5757
value: /var/lib/logdna
58+
- name: LOGDNA_REDACT_REGEX
59+
# regex to redact secret values from logs. The regex is set to match base64-encoded values for each of {"kid":, {"typ":, and {"alg":, respectively.
60+
value: 'eyJ(?:raWQ|0eXA|hbGc)iOi[^"]+'
5861
- name: POD_APP_LABEL
5962
valueFrom:
6063
fieldRef:

0 commit comments

Comments
 (0)