Describe the bug
The Insecure bool field in config/config.go disables all TLS certificate verification. Issues:
- No distinction between self-signed and compromised/expired certs
- No audit logging when insecure mode is active
- No custom CA certificate support (would eliminate most insecure mode usage)
- No cipher suite control for IMAP/SMTP TLS connections
- No TLS certificate pinning
To reproduce
- Set
insecure: true in account config
- All TLS verification disabled silently
- MITM attacks go undetected
Expected behavior
- Add custom CA certificate path config option
- Log warning on every connection when insecure mode active
- Support certificate pinning (TOFU model)
- Allow cipher suite configuration
Describe the bug
The
Insecure boolfield in config/config.go disables all TLS certificate verification. Issues:To reproduce
insecure: truein account configExpected behavior