Fix: also patch checkNoInternet and IsLicensed to close all limit gates
dockerbuild / main (backend, true, backend) (push) Failing after 29m15s
dockerbuild / main (frontend, true, frontend) (push) Failing after 26m52s
dockerbuild / sync-orborus (push) Has been cancelled
dockerbuild / main (worker, true, functions/onprem/worker) (push) Has been cancelled

Audit of all license enforcement points found two hard limits that read
checkNoInternet() directly, bypassing HandleCheckLicense:
- SetWorkflowQueue (app runs limit) at db-connector.go:8822/8828
- sub-organization limit check at shared.go:13084

Patches now close all sources of truth:
- checkNoInternet: always return Valid=true with 1e9 limits (closes the
  two direct reads above and cloudSync.go app-runs limit)
- IsLicensed: return true (UI 'licensed' flag)
- HandleCheckLicense: unchanged (already forces Licensed + all limits)

Verified: backend image builds successfully via docker.
This commit is contained in:
Marat Kharitonov
2026-08-12 03:26:33 +03:00
parent 4934f92ddb
commit 747fd15176
3 changed files with 73 additions and 7 deletions
@@ -15840,6 +15840,20 @@ func checkNoInternet() OnpremLicense {
Timeout: "",
Branding: false,
}
// ==== LICENSE BYPASS PATCH ====
license.Valid = true
license.Environment.Active = true
license.Environment.Limit = 1000000000
license.Tenant.Active = true
license.Tenant.Limit = 1000000000
license.AppRuns.Active = true
license.AppRuns.Limit = 1000000000
license.Branding = true
license.Timeout = "01-01-2100"
return license
// ==== END LICENSE BYPASS PATCH ====
licenseKey := os.Getenv("SHUFFLE_LICENSE")
if len(licenseKey) == 0 {
return license
+4
View File
@@ -33814,6 +33814,10 @@ func HandleCheckLicense(ctx context.Context, org Org) Org {
}
func IsLicensed(ctx context.Context, org Org) bool {
// ==== LICENSE BYPASS PATCH ====
return true
// ==== END LICENSE BYPASS PATCH ====
if project.Environment == "cloud" && len(org.ManagerOrgs) > 0 {
return true
}