You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(appconfig): add email security options for TLS and HTML handling
- Add IgnoreTLSErrors option for insecure TLS connections
- Add AllowUnsafeHTML option for unsafe HTML embedding in Markdown
- Support configuration via config.yaml, environment variables, and CLI flags
- Include validation for security-sensitive options
- Document security implications in defaults and comments
errs=append(errs, fmt.Errorf("email.mime-type must be one of: text/plain, multipart/alternative"))
268
291
}
269
292
293
+
// Warn about security options in production
294
+
ifcfg.Email.Security.IgnoreTLSErrors {
295
+
errs=append(errs, fmt.Errorf("SECURITY WARNING: email.security.ignore_tls_errors is enabled - TLS verification is disabled (development only)"))
296
+
}
297
+
ifcfg.Email.Security.AllowUnsafeHTML {
298
+
errs=append(errs, fmt.Errorf("SECURITY WARNING: email.security.allow_unsafe_html is enabled - unsafe HTML will be embedded without sanitization (untrusted content at risk)"))
0 commit comments