Skip to content

[security] move sensitive config from ConfigMap to Secret#150

Open
siddimore wants to merge 3 commits intolivekit:masterfrom
siddimore:fix/move-secrets-from-configmap-to-secret
Open

[security] move sensitive config from ConfigMap to Secret#150
siddimore wants to merge 3 commits intolivekit:masterfrom
siddimore:fix/move-secrets-from-configmap-to-secret

Conversation

@siddimore
Copy link
Copy Markdown

Egress and ingress charts store API keys, secrets, and cloud storage credentials (S3, GCS, Azure) in ConfigMaps, which are not encrypted at rest and are visible to anyone with namespace read access.

Changes:

  • egress: add Secret template, deployment reads config from secretKeyRef when storeSecretsInSecret.enabled (default: true), with existingSecret support for external secret managers (Vault, ESO)
  • ingress: same pattern as egress for api_key/api_secret

All charts retain backward compatibility: set storeSecretsInSecret.enabled to false to keep using ConfigMap.

Egress and ingress charts stored API keys, secrets, and cloud storage
credentials (S3, GCS, Azure) in ConfigMaps, which are not encrypted at
rest and are visible to anyone with namespace read access.

Changes:
- egress: add Secret template, deployment reads config from secretKeyRef
  when storeSecretsInSecret.enabled (default: true), with existingSecret
  support for external secret managers (Vault, ESO)
- ingress: same pattern as egress for api_key/api_secret
- livekit-server: enable storeKeysInSecret by default (mechanism already
  existed but was disabled)

All charts retain backward compatibility: set storeSecretsInSecret.enabled
to false to keep using ConfigMap.
- Wrap egress/ingress configmap.yaml with conditional guard so ConfigMap
  is NOT created when storeSecretsInSecret is enabled (prevents secrets
  from existing in both ConfigMap and Secret)
- Add storeSecretsInSecret documentation to egress-sample.yaml,
  ingress-sample.yaml, and examples/egress.yaml
- Add labels to configmap templates for consistency
@siddimore siddimore changed the title fix(security): move sensitive config from ConfigMap to Secret [security] move sensitive config from ConfigMap to Secret Mar 23, 2026
@siddimore siddimore marked this pull request as ready for review March 23, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant