mastodon / chart

Helm chart for Mastodon deployment in Kubernetes
GNU Affero General Public License v3.0
152 stars 90 forks source link

store smtp credentials on a secret #38

Closed roobre closed 1 year ago

roobre commented 1 year ago

Porting https://github.com/mastodon/mastodon/pull/19919 to the new repo.


Sensitive data such as login credentials should not be rendered in a ConfigMap, as cluster operators are often more lenient granting applications read permissions for them.

This PR moves SMTP_LOGIN and SMTP_PASSWORD env vars to a new secret secret-smtp.yaml, unless .Values.mastodon.smtp.existingSecret is defined. In this case, no secret is created and sidekiq will source the login and password variables from .Values.mastodon.smtp.existingSecret.

This change is backwards-compatible.