From 24eee1d7fc4097cb64a98982bad1c5671eebac0c Mon Sep 17 00:00:00 2001 From: "Pablo F.G" Date: Mon, 20 Jul 2026 15:32:10 +0200 Subject: [PATCH] docs(ui): document UI_CLOUD_ENABLED runtime variable --- docs/developer-guide/environment-variables.mdx | 3 +++ ui/Dockerfile | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/developer-guide/environment-variables.mdx b/docs/developer-guide/environment-variables.mdx index 913444d84b..e2bec0f94b 100644 --- a/docs/developer-guide/environment-variables.mdx +++ b/docs/developer-guide/environment-variables.mdx @@ -36,6 +36,9 @@ The former build-time variables map to the new runtime variables as follows: | `NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID` | `UI_GOOGLE_TAG_MANAGER_ID` | | `NEXT_PUBLIC_SENTRY_DSN`, `SENTRY_DSN` | `UI_SENTRY_DSN` | | `NEXT_PUBLIC_SENTRY_ENVIRONMENT`, `SENTRY_ENVIRONMENT` | `UI_SENTRY_ENVIRONMENT` | +| `NEXT_PUBLIC_IS_CLOUD_ENV` | `UI_CLOUD_ENABLED` | + +`UI_CLOUD_ENABLED` is a plain runtime boolean flag that enables Prowler Cloud behavior when set to the exact string `"true"` and defaults to off; unlike the other renamed variables it has no legacy fallback, so `NEXT_PUBLIC_IS_CLOUD_ENV` is no longer read. The build-time-only Sentry variables used for source-map upload — `SENTRY_ORG`, `SENTRY_PROJECT`, `SENTRY_AUTH_TOKEN`, and `SENTRY_RELEASE` — keep their names, as they are not part of Prowler Local Server's runtime configuration. diff --git a/ui/Dockerfile b/ui/Dockerfile index 6ab9752972..4abfe1911a 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -79,6 +79,7 @@ ENV HOSTNAME="0.0.0.0" # Helm/K8s): # - required: UI_API_BASE_URL, AUTH_URL, AUTH_SECRET (missing ⇒ fail fast at boot) # - optional: UI_API_DOCS_URL +# - optional: UI_CLOUD_ENABLED ("true" only in Prowler Cloud deployments) # - gated integrations (load only when *_ENABLED="true"; the value is then # required or boot fails). Legacy names (NEXT_PUBLIC_*, POSTHOG_KEY/HOST) # still activate without the flag: