Skip to content

Commit b886f04

Browse files
committed
[scalardl-auditor] Support HMAC authentication method (#300)
1 parent 3fda535 commit b886f04

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

charts/scalardl-audit/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Current chart version is `2.9.2`
1515
|-----|------|---------|-------------|
1616
| auditor.affinity | object | `{}` | the affinity/anti-affinity feature, greatly expands the types of constraints you can express |
1717
| auditor.auditorProperties | string | The default minimum necessary values of auditor.properties are set. You can overwrite it with your own auditor.properties. | The auditor.properties is created based on the values of auditor.scalarAuditorConfiguration by default. If you want to customize auditor.properties, you can override this value with your auditor.properties. |
18+
| auditor.authentication.method | string | `"digital-signature"` | Specify the authentication method of ScalarDL. Available value is "digital-signature" or "hmac". |
1819
| auditor.existingSecret | string | `""` | Name of existing secret to use for storing database username and password |
1920
| auditor.extraVolumeMounts | list | `[]` | Defines additional volume mounts. |
2021
| auditor.extraVolumes | list | `[]` | Defines additional volumes. |

charts/scalardl-audit/templates/auditor/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
{{- toYaml . | nindent 8 }}
3737
{{- end }}
3838
volumes:
39-
{{- if not .Values.auditor.extraVolumes }}
39+
{{- if and (not .Values.auditor.extraVolumes) (not (eq .Values.auditor.authentication.method "hmac")) }}
4040
- name: "{{ .Values.auditor.scalarAuditorConfiguration.secretName }}"
4141
secret:
4242
secretName: "{{ .Values.auditor.scalarAuditorConfiguration.secretName }}"
@@ -85,7 +85,7 @@ spec:
8585
{{- end }}
8686
imagePullPolicy: {{ .Values.auditor.image.pullPolicy }}
8787
volumeMounts:
88-
{{- if not .Values.auditor.extraVolumeMounts }}
88+
{{- if and (not .Values.auditor.extraVolumeMounts) (not (eq .Values.auditor.authentication.method "hmac")) }}
8989
- name: "{{ .Values.auditor.scalarAuditorConfiguration.secretName }}"
9090
mountPath: "/keys"
9191
readOnly: true

charts/scalardl-audit/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
"auditorProperties": {
1212
"type": "string"
1313
},
14+
"authentication": {
15+
"type": "object",
16+
"properties": {
17+
"method": {
18+
"type": "string"
19+
}
20+
}
21+
},
1422
"existingSecret": {
1523
"type": "string"
1624
},

charts/scalardl-audit/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,7 @@ auditor:
329329
- localhost
330330
# -- Issuer references of cert-manager.
331331
issuerRef: {}
332+
333+
authentication:
334+
# -- Specify the authentication method of ScalarDL. Available value is "digital-signature" or "hmac".
335+
method: "digital-signature"

0 commit comments

Comments
 (0)