Skip to content

Ability to specify TLS options #10062

Closed as not planned
Closed as not planned

Description

@jose-pr

Feature description

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.

Activity

  1. added
    enhancement
    needs-triage
    on Apr 19, 2025
  2. calmh commented on Apr 20, 2025

    @calmh
    Member

    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.

  3. jose-pr commented on Apr 20, 2025

    @jose-pr
    Author

    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?

  4. marbens-arch commented on Apr 20, 2025

    @marbens-arch
    Member

    Syncthing currently uses TLS 1.3 exclusively for sync connections.

    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.

  5. jose-pr commented on Apr 21, 2025

    @jose-pr
    Author

    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
  6. calmh commented on Apr 21, 2025

    @calmh
    Member

    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.

  7. removed
    needs-triage
    on Apr 24, 2025
  8. added
    frozen-due-to-age
    on Jul 1, 2026
  9. locked and limited conversation to collaborators on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions