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
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
It would be nice to be able to specify TLS versions to use and ciphers to comply with requirements such as FIPS.
Current options I am looking into are
Specify with TLS version to use, v1.2, v1.3 or both
Specify which ciphers to use
do this from the main config
apply to all TLS connections gui/transfers
Problem or use case
For some deployments like USG, not all TLS ciphers are approved to use. Scans are made of the network and Syncthing ports are flagged as they support not authorized ciphers.
Would allow to conform to the security standards required by deployment.
Alternatives or workarounds
Not sure, I currently put the gui behind nginx and can set the correct ciphers for it but not sure I can do that for the data TLS connection.
Syncthing currently uses TLS 1.3 exclusively for sync connections. I don't see a reason to use 1.2 instead. With TLS 1.3 in Go there are no configuration options for cipher suites.
It would take setting the MinVersion, MaxVerion and filtering the cipherSuites in tls.Config to TLS1.2.
Haven't coded with GO before so not sure what would be the best way to achieve it.
I think initial integration could be accomplished by:
lib/config/optionsconfiguration.go
Adding a TLS Profile option
lib/tlsutil/tlsutil.go
Exposing a LoadTLSProfileConfig(tlsprofile) function
Creating a few curated profiles based on demand, NIST Compliant Profile, FIPS Compliant Profile, Default Secure Profile (TLS1.3 only), ...
llib/syncthing/syncthing.go
Calling LoadTLSProfileConfig with the config option from here instead of SecureDefaultTLS13
More advanced and open would be
lib/config/optionsconfiguration.go
Adding TLS MaxVersion , TLS MinVersion and CipherSuites options
Default MaxVersion TLS1.3, MinVersion TLS1.3, CipherSuites null/empty/ALL (use all allowed in tlsutil.go)
lib/tlsutil/tlsutil.go
Exposing a LoadTLSConfig(tlsmax, tlsmin, ciphersuites) function
have it filter the cipherSuites variable based on the the value
llib/syncthing/syncthing.go
Calling LoadTLSConfig with the config options here instead of SecureDefaultTLS13
No. I realise you have specific requirements, I think they would be best served by a private fork. This is not something general users should need to concern themselves with and we'd be serving them a footgun.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Apr 20, 2025
Syncthing currently uses TLS 1.3 exclusively for sync connections. I don't see a reason to use 1.2 instead. With TLS 1.3 in Go there are no configuration options for cipher suites.
jose-pr commentedon Apr 20, 2025
While still using tls1.3 as default, could there be an option to select tls1.2 with specific ciphers when NIST validated ciphers are a requirement?
marbens-arch commentedon Apr 20, 2025
By default. There is a non-default option to enable TLS 1.2. It's called insecureAllowOldTLSVersions. I don't know of one for forcing TLS 1.2 though.
jose-pr commentedon Apr 21, 2025
It would take setting the MinVersion, MaxVerion and filtering the cipherSuites in tls.Config to TLS1.2.
Haven't coded with GO before so not sure what would be the best way to achieve it.
I think initial integration could be accomplished by:
Adding a TLS Profile option
Exposing a LoadTLSProfileConfig(tlsprofile) function
Creating a few curated profiles based on demand, NIST Compliant Profile, FIPS Compliant Profile, Default Secure Profile (TLS1.3 only), ...
Calling LoadTLSProfileConfig with the config option from here instead of SecureDefaultTLS13
More advanced and open would be
Adding TLS MaxVersion , TLS MinVersion and CipherSuites options
Default MaxVersion TLS1.3, MinVersion TLS1.3, CipherSuites null/empty/ALL (use all allowed in tlsutil.go)
Exposing a LoadTLSConfig(tlsmax, tlsmin, ciphersuites) function
have it filter the cipherSuites variable based on the the value
Calling LoadTLSConfig with the config options here instead of SecureDefaultTLS13
calmh commentedon Apr 21, 2025
No. I realise you have specific requirements, I think they would be best served by a private fork. This is not something general users should need to concern themselves with and we'd be serving them a footgun.
chore(syncthing): remove support for TLS 1.2 sync connections (#10064)