We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a444384 commit c55cc70Copy full SHA for c55cc70
ocis-pkg/service/grpc/client.go
@@ -74,6 +74,9 @@ func NewClient(opts ...ClientOption) (client.Client, error) {
74
}
75
switch options.tlsMode {
76
case "insecure":
77
+ if os.Getenv("OCIS_INSECURE") != "true" {
78
+ return nil, errors.New("insecure TLS mode is only allowed in development environments with OCIS_INSECURE=true")
79
+ }
80
tlsConfig = &tls.Config{
81
InsecureSkipVerify: true,
82
0 commit comments