Skip to content

Commit f9c139a

Browse files
committed
Add tls options for ciphers
1 parent a8c9b76 commit f9c139a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

codersdk/deployment.go

+22
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,28 @@ when required by your organization's security policy.`,
742742
YAML: "clientKeyFile",
743743
Annotations: clibase.Annotations{}.Mark(annotationExternalProxies, "true"),
744744
},
745+
{
746+
Name: "TLS Ciphers",
747+
Description: "Specify specific TLS ciphers that allowed to be used. See https://github.com/golang/go/blob/master/src/crypto/tls/cipher_suites.go#L53-L75.",
748+
Flag: "tls-ciphers",
749+
Env: "CODER_TLS_CIPHERS",
750+
Default: "",
751+
Value: &c.TLS.SupportedCiphers,
752+
Group: &deploymentGroupNetworkingTLS,
753+
YAML: "tlsCiphers",
754+
Annotations: clibase.Annotations{}.Mark(annotationExternalProxies, "true"),
755+
},
756+
{
757+
Name: "TLS Allow Insecure Ciphers",
758+
Description: "By default, only ciphers marked as 'secure' are allowed to be used. See https://github.com/golang/go/blob/master/src/crypto/tls/cipher_suites.go#L82-L95.",
759+
Flag: "tls-allow-insecure-ciphers",
760+
Env: "CODER_TLS_ALLOW_INSECURE_CIPHERS",
761+
Default: "false",
762+
Value: &c.TLS.AllowInsecureCiphers,
763+
Group: &deploymentGroupNetworkingTLS,
764+
YAML: "tlsAllowInsecureCiphers",
765+
Annotations: clibase.Annotations{}.Mark(annotationExternalProxies, "true"),
766+
},
745767
// Derp settings
746768
{
747769
Name: "DERP Server Enable",

0 commit comments

Comments
 (0)