Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dockerproxy/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ func authorizeRequest(ctx context.Context, appName, authToken string) bool {
return true
}

if allowThirdPartyOrgSlug == app.Organization.Slug {
log.Warnf("Allowed %s from third party organization %s", appName, app.Organization.Slug)
return true
}

builderAppName, ok := os.LookupEnv("FLY_APP_NAME")
if !ok {
log.Warn("FLY_APP_NAME env var is not set!")
Expand Down
11 changes: 6 additions & 5 deletions dockerproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ var (
pruneThresholdFreeBytes = 15 * 1000 * 1000 * 1000

// dev and testing
noDockerd = os.Getenv("NO_DOCKERD") == "1"
noAuth = os.Getenv("NO_AUTH") == "1"
noAppName = os.Getenv("NO_APP_NAME") == "1"
noHttps = os.Getenv("NO_HTTPS") == "1"
noFilter = true
noDockerd = os.Getenv("NO_DOCKERD") == "1"
noAuth = os.Getenv("NO_AUTH") == "1"
noAppName = os.Getenv("NO_APP_NAME") == "1"
noHttps = os.Getenv("NO_HTTPS") == "1"
allowThirdPartyOrgSlug = os.Getenv("ALLOW_THIRD_PARTY_ORG_SLUG")
noFilter = true

// build variables
gitSha string
Expand Down
Loading