Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 36d785d

Browse files
authored
dotcom: Remove dotcom on-by-default Cloudflare trust mode (#63658)
sourcegraph/deploy-sourcegraph-cloud#18673 configures this env var explicitly. This feels cleaner than having yet-another-dependence-on-this-env-var. Test plan: Check in after rollout.
1 parent 702b346 commit 36d785d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

internal/requestclient/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ go_library(
1111
importpath = "github.com/sourcegraph/sourcegraph/internal/requestclient",
1212
visibility = ["//:__subpackages__"],
1313
deps = [
14-
"//internal/dotcom",
1514
"//internal/env",
1615
"//internal/grpc/propagator",
1716
"//internal/requestclient/geolocation",

internal/requestclient/http.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import (
44
"net/http"
55
"strings"
66

7-
"github.com/sourcegraph/sourcegraph/internal/dotcom"
87
"github.com/sourcegraph/sourcegraph/internal/env"
98
)
109

11-
var useCloudflareHeaders = env.MustGetBool("SRC_USE_CLOUDFLARE_HEADERS",
12-
dotcom.SourcegraphDotComMode(), "Use Cloudflare headers for request metadata")
10+
var useCloudflareHeaders = env.MustGetBool("SRC_USE_CLOUDFLARE_HEADERS", false, "Use Cloudflare headers for request metadata")
1311

1412
const (
1513
// Sourcegraph-specific client IP header key

0 commit comments

Comments
 (0)