Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/fleet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@ spec:
{{- if .Values.database.tls.enabled }}
- name: mysql-tls
secret:
secretName: "{{ .Values.database.secretName }}"
# >>> OPENFRAME(helm): the server CA rides in the same externally managed Secret as
secretName: "{{ default .Values.database.secretName .Values.database.existingSecret }}"
# <<< OPENFRAME(helm)
{{- end }}
{{- if or (eq .Values.osquery.logging.statusPlugin "filesystem") (eq .Values.osquery.logging.resultPlugin "filesystem") }}
- name: osquery-logs
Expand Down
4 changes: 3 additions & 1 deletion charts/fleet/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ spec:
{{- if .Values.database.tls.enabled }}
- name: mysql-tls
secret:
secretName: "{{ .Values.database.secretName }}"
# >>> OPENFRAME(helm): the server CA rides in the same externally managed Secret as
secretName: "{{ default .Values.database.secretName .Values.database.existingSecret }}"
# <<< OPENFRAME(helm)
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
4 changes: 3 additions & 1 deletion charts/fleet/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ rules:
resources:
- secrets
resourceNames:
- {{ .Values.database.secretName }}
# >>> OPENFRAME(helm): mirror the mysql-tls volume source — openframe/docs/helm-chart.md
- {{ default .Values.database.secretName .Values.database.existingSecret }}
# <<< OPENFRAME(helm)
- {{ .Values.cache.secretName }}
- {{ .Values.fleet.secretName }}
- {{ .Values.osquery.secretName }}
Expand Down
4 changes: 3 additions & 1 deletion charts/fleet/templates/vulnprocessing/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ spec:
{{- if .Values.database.tls.enabled }}
- name: mysql-tls
secret:
secretName: "{{ .Values.database.secretName }}"
# >>> OPENFRAME(helm): the server CA rides in the same externally managed Secret
secretName: "{{ default .Values.database.secretName .Values.database.existingSecret }}"
# <<< OPENFRAME(helm)
{{- end }}
# >>> OPENFRAME(helm): fork-added CA truststore volumes (configmaps/secrets) — openframe/docs/helm-chart.md
{{- if include "fleet.additionalCAs.enabled" . }}
Expand Down
3 changes: 2 additions & 1 deletion charts/fleet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ osquery:
## Section: database
# All of the connection settings for MySQL
database:
# Name of the Secret resource containing MySQL password and TLS secrets
# Name of the Secret resource containing MySQL password and TLS secrets.
# Only used when existingSecret is empty — see existingSecret below.
secretName: mysql
# >>> OPENFRAME(helm): fork-externalized DB connection config (ConfigMap/Secret refs) — openframe/docs/helm-chart.md
# To read connection details from a ConfigMap instead of using static values below:
Expand Down
7 changes: 7 additions & 0 deletions openframe/docs/helm-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ just references them.
| Concern | values.yaml block | `existingConfigMap` / `existingSecret` override | Generated object (when no override) |
|---------|-------------------|--------------------------------------------------|-------------------------------------|
| Database | `database.*` | `database.existingConfigMap`, `database.existingSecret` | `fleet-database` ConfigMap (host/port/db/user) + Secret (password) |

`database.existingSecret` covers **both** MySQL secrets: the password (`database.passwordKey`) is read
from it as an env var, and — when `database.tls.enabled` — the same Secret is mounted at
`/secrets/mysql`, where `database.tls.caCertKey` names the server CA file. It therefore takes
precedence over the legacy `database.secretName`, which still applies when `existingSecret` is unset.
The mount is whole-Secret (no `items:` projection), so every key in it surfaces as a file in the Fleet
container; keep unrelated material out of that Secret if that matters to you.
| Cache (Redis) | `cache.*` | `cache.existingConfigMap` | `fleet-cache` ConfigMap (address, key prefix) |
| Tenant UUID (multi-tenancy) | `fleet.openframe.multiTenancy.*` | `fleet.openframe.multiTenancy.existingConfigMap` | `fleet-openframe-tenant` ConfigMap (`FLEET_OPENFRAME_TENANT_UUID` = `tenantUuid`, empty in shared mode) |
| Admin setup | `fleet.setup.*` | `fleet.setup.adminPassword.existingSecret` | `fleet-setup` Secret (`FLEET_SETUP_ADMIN_PASSWORD`) |
Expand Down
Loading