Free tool · AEM as a Cloud Service
Cloud Manager environment variable and secret gap check
See every variable and secret your AEM project expects, and which environment is missing one, before the deployment shows it. Pick a zip of the project or paste files, then paste the variable names set per environment.
For release managers and lead developers before a go-live or when a new environment is added. It runs in your browser: nothing you pick or paste is uploaded, sent to our server or stored. It asks for names and types only, never for values, and it never shows a suspected secret. The rules were read on Adobe's pages on 2 Dec 2026. The tool was not run against Cloud Manager or a real environment.
The sample is made up for this page: a small project and variable lists for three environments, with common mistakes. It was not taken from a real project or a real Cloud Manager program.
If a line holds more than a name, a type and a service, the rest is ignored and not kept. The table that the aio command prints has a value column: remove it, or use --json.
Runs in your browser. Nothing you paste or pick is sent to our server or stored.
What it does and does not do
A comparison before the deployment, not a deployment test
What it reads
OSGi configuration files, Dispatcher files, config pipeline YAML and pom.xml, from a zip of up to 50 MB, picked files or a paste. Up to 2,000,000 characters and 3,000 files are read in one run. If you add them, it also reads the names and types of the variables set in each Cloud Manager environment. All of it is read in your browser.
What you get
A table of every variable reference with file and line. A table of gaps per environment: missing, set but not referenced, set with another type, set for one service only. Findings with a level (error, warning or note), a fix to review and the Adobe page each rests on. Downloads as CSV and Markdown.
What it does not do
It does not connect to Cloud Manager and cannot see which variables are really set. It never asks for a value and never shows one: a default or a suspected literal secret is reported by its length only. It does not read Java code. It does not say the deployment will work.
A clean result. A clean result here does not mean the deployment will work. This is a comparison of the references in the files you gave with the names you pasted, against the points listed under Sources. It cannot see Cloud Manager, the values, or code that reads a variable in another way.
Three levels. Error: Adobe's documentation states the rule or says what happens. Warning: Adobe's pages point that way without stating the outcome, or the finding is a guess from a name. Note: Adobe states no rule. Worth a look, not called wrong.
Run mode folders. A reference counts for an environment only when its config folder applies there. When the same PID is configured in several folders, the folder with the most matching run modes is taken for each service and environment type, as Adobe describes. Name your lists dev, stage, prod or rde so the tool knows the type.
Not checked. Not checked: variable values and their length, Java code that reads environment variables, files outside the kinds listed on this page, Dispatcher files included from outside the files read, and whether a default value is right.
Limits. One run reads up to 2,000,000 characters of text, and a zip of up to 50 MB. From a zip, OSGi configuration is read first, then Dispatcher files, then YAML and pom.xml; the result says how many files were left out. These limits are ours, not Adobe's. No account is needed. Questions: contact us
How files are read. This is not a JSON, Apache or YAML parser. It looks for the placeholder forms line by line, and reads a property name only when it starts the line. A placeholder inside a comment is still listed for OSGi files. A commented line in a Dispatcher or YAML file is skipped.
Sources
The rules it follows, and where they are stated
Every statement below was read on the page linked beside it and checked 2 Dec 2026.
- An OSGi configuration value can be inline, a secret written as $[secret:SECRET_VAR_NAME], or an environment-specific value written as $[env:ENV_VAR_NAME]. One file can mix all three. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- Variable names have a minimum length of 2, a maximum length of 100 and must match [a-zA-Z_][a-zA-Z_0-9]*. Values must not exceed 2048 characters. This applies to environment-specific and secret values alike. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- Names that start with INTERNAL_, ADOBE_ or CONST_ are reserved by Adobe, and a customer-set variable with such a prefix is ignored. Customers must not reference variables that start with INTERNAL_ or ADOBE_. Names that start with AEM_ are defined by the product: customers can use and set them, but should not define their own with this prefix. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- If no per-environment value is set, the placeholder is not replaced at runtime and is left in place. To avoid this a default can be given: $[env:ENV_VAR_NAME;default=<value>]. This applies to environment-specific and secret values alike. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- AEM as a Cloud Service requires $[secret:SECRET_VAR_NAME] for any secret OSGi configuration value, such as passwords and private API keys, which cannot be stored in Git. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- Non-secret environment-specific values are meant for values that differ between development environments or for the preview tier. Adobe says to avoid them for Stage and Production and to use inline values there. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- The placeholder technique is only for OSGi configuration properties of your own code. It must not be used to override Adobe-defined OSGi configuration. Placeholders cannot be used in repoinit statements. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- For a value that differs between author and publish, Adobe recommends the same variable name in config.author and config.publish, with the tier chosen by the "service" parameter of the variable (author, publish or preview). Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- A variable is set with a name, a value and a type: string (the default) or secretString. The command aio cloudmanager:list-environment-variables prints the columns Name, Type and Value, and shows **** for a secretString. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- The OSGi page says up to 200 variables per environment can be declared. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- In the Cloud Manager dialog a variable name can only contain alphanumeric characters and the underscore, must be 100 characters or less, and there is a limit of 400 variables per environment. Each variable has a Step Applied (All, Author, Publish or Preview) and a type (normal or secret). Adobe, Environment variables in Cloud Manager (updated 29 Sep 2026)
- Regular environment variables and secrets can be used on Author, Preview and Publish and in OSGi configurations. With the Dispatcher only regular environment variables can be used: secrets cannot, and environment variables cannot be used in IfDefine directives. Adobe, Environment variables in Cloud Manager (updated 29 Sep 2026)
- AEM as a Cloud Service supports an exact set of run modes and no custom run modes. The config folders Adobe lists are config, config.author, config.publish, config.dev, config.rde, config.stage, config.prod and the service-then-environment pairs such as config.author.dev. The order is service first. When several folders match, the one with the most matching run modes is used, for the whole PID. Adobe, Deploying to AEM as a Cloud Service, Run modes (updated 9 Oct 2026)
- A config.preview folder cannot be declared. The preview tier takes its OSGi configuration from the publish tier. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- Older OSGi file formats (.cfg, .config and XML sling:OsgiConfig) are superseded by .cfg.json. Adobe, Configuring OSGi for Adobe Experience Manager as a Cloud Service (updated 9 Oct 2026)
- Dispatcher: Apache variables can be defined in conf.d/variables/custom.vars and used as ${NAME}. The runtime provides ENVIRONMENT_TYPE and the defines ENVIRONMENT_DEV, ENVIRONMENT_STAGE and ENVIRONMENT_PROD. Cloud Manager environment variables, but not secrets, can be used with the same ${NAME} form, in which case no Define is written. Adobe, Validating and Debugging using Dispatcher Tools (updated 24 Nov 2026)
- Adobe's default Dispatcher files use ${AEM_HOST}, ${AEM_PORT}, ${DOCROOT}, ${POD_NAME}, ${FORWARDED_HOST_SETTING}, ${EXPIRATION_TIME}, ${AEM_HTTP_PROXY_HOST} and ${AEM_HTTP_PROXY_PORT} with no Define in the project. Adobe on GitHub, AEM Project Archetype, dispatcher.cloud default files (develop branch)
- Config pipeline YAML files can reference a secret-type environment or pipeline variable as ${{NAME}}, for example token: "${{SPLUNK_TOKEN}}". The OpenTelemetry example uses ${{secrets.OTEL_CUSTOMER_AUTH}}. Adobe prefers pipeline secrets here: environment variables are not deployed with the config pipeline, so they must exist before the pipeline runs. Adobe, Use config pipelines (updated 23 Oct 2026)
- A pipeline variable name can only contain alphanumeric characters and the underscore, should be all upper case and must be 100 characters or less. There is a limit of 200 variables per pipeline. In a pom.xml a variable is read as ${env.VARIABLE_NAME}. Adobe, Pipeline variables in Cloud Manager (updated 29 Sep 2026)
- Cloud Manager adds CM_BUILD, BRANCH, CM_PIPELINE_ID, CM_PIPELINE_NAME, CM_PROGRAM_ID, CM_PROGRAM_NAME, ARTIFACTS_VERSION and CM_AEM_PRODUCT_VERSION to every build. Adobe, Build environment of Cloud Manager (updated 12 Nov 2026)
- aio cloudmanager:environment:list-variables ENVIRONMENTID lists the variables set on an environment. It has --json and --yaml options. Its table has the columns name, type, value, service and status, and a secretString value is printed as ****. Adobe on GitHub, aio-cli-plugin-cloudmanager 4.2.4, README and list-variables command
Adobe's pages do not settle these points, or say them in two ways. This is how the page behaves there. None of it was tested against Cloud Manager.
- This tool was not run against Cloud Manager or a real environment. It cannot see which variables are set: it compares only with the names you paste.
- Adobe states two limits for variables per environment: 200 on the OSGi page and 400 on the Cloud Manager page. This tool gives a warning above 200 and an error above 400.
- Adobe's naming rule allows letters, digits and the underscore, but the examples on the same page are server-api-key and server-url, with hyphens. A name that breaks the rule only by a hyphen is a warning here, not an error.
- Adobe does not say whether the reserved prefixes are case sensitive. This tool matches them as written, in upper case.
- Adobe does not say what happens when $[secret:NAME] meets a variable of type string, or $[env:NAME] meets a secretString. Both are warnings here.
- Adobe does not say which folder wins when two config folders match with the same number of run modes, such as config.author and config.dev on a dev author. This tool treats both as in use.
- Adobe does not say how a variable applied to Preview only, or to one service only, behaves for the Dispatcher. Dispatcher variables are compared by name and type only.
- Adobe publishes no full list of the variables its runtime gives the Dispatcher. The names this tool accepts without a Define are the ones on Adobe's page and in the default files of Adobe's project archetype. Any other ${NAME} with no Define is a warning, and may still be valid.
- Adobe does not state what Apache does on AEM as a Cloud Service with a ${NAME} that is defined nowhere. It is a warning here.
- Adobe does not say whether a config pipeline accepts a variable of type string in ${{NAME}}. Its text speaks of secret-type variables, so a string type is a warning. It also does not explain the secrets. prefix beyond the OpenTelemetry example.
- The literal secret check is a guess from the property name (password, secret, token, key and the like) and from a private key header. It can miss a secret and it can flag a harmless value. AEM-encrypted values are not recognised.
- The aio command prints a value column. This tool reads the first word of each line as the name and looks for a type and a service word. It keeps nothing else. A value that happens to be the word author, publish, preview or all could be read as the service. The --json output has no such doubt.
- The layout of the Cloud Manager Configuration table when copied as text was not checked against a real program. Lines that start with the name, followed by other columns, are read.
- Whether a Rapid Development Environment takes variables in the same way was not checked. An RDE list is compared like any other.
Questions
Common questions
What happens when an $[env:NAME] variable is not set in an environment?
Adobe's OSGi configuration page says the placeholder is not replaced at runtime and is left in place. If the placeholder carries a default, as in $[env:NAME;default=value], the default is used instead, with no message. This page reports the first case as an error for that environment and the second as a note, so that a default does not hide a variable you meant to set.
How do I list the variables set in a Cloud Manager environment?
In Cloud Manager, open the environment and its Configuration tab. From the command line, Adobe's plugin has aio cloudmanager:environment:list-variables ENVIRONMENTID, with a --json option. Its table has the columns name, type, value, service and status, and a secret is printed as ****. Paste names and types only here. If you paste the --json output, only name, type and service are read from it.
Does this tool need the values of my variables or secrets?
No. It compares names and types. Do not paste values. If a line in a list holds more than a name, a type and a service, the rest is dropped and not kept, and the result tells you how many lines that happened on. A literal value in an OSGi file that looks like a secret is reported by its property name and length. The value itself is never shown and never written to a download.
Which names are allowed for Cloud Manager environment variables?
Adobe's OSGi page says a name has 2 to 100 characters and must match [a-zA-Z_][a-zA-Z_0-9]*. The prefixes INTERNAL_, ADOBE_ and CONST_ are reserved by Adobe, and a variable you set with one of them is ignored. AEM_ is for variables the product defines. The Cloud Manager page says a name can only contain alphanumeric characters and the underscore.
How many variables can one environment have?
Adobe's pages give two figures. The OSGi configuration page says up to 200 variables per environment can be declared. The Cloud Manager environment variables page states a limit of 400 per environment. This page warns above 200 and reports an error above 400. For pipeline variables Adobe states a limit of 200 per pipeline.
Can I use a Cloud Manager secret in the Dispatcher configuration?
No. Adobe says only regular environment variables can be used with the Dispatcher, that secrets cannot, and that environment variables cannot be used in IfDefine directives. This page reports a Dispatcher variable that is set as a secret in one of your lists, and a ${NAME} that has no Define in the files read and is not in a list.
Which run mode folders does AEM as a Cloud Service support?
Adobe lists config, config.author, config.publish, config.dev, config.rde, config.stage and config.prod, and the pairs with the service first, such as config.author.dev and config.publish.prod. Custom run modes are not supported, and a config.preview folder cannot be declared. A folder outside the list is reported as an error, and the references in it are not compared with any environment.
Are my files or my variable names sent to your server?
No. The check runs in your browser. The files you pick or paste and the lists are not uploaded and not stored, and they are gone when you close the tab. The page counts that the tool was used, without the input.
Does a clean result mean my deployment will work?
No. This page compares what is written in the files with the names you paste, against the points listed under Sources. It was not run against Cloud Manager or a real environment, and it cannot see values, code that reads a variable in another way, or a list that is out of date.
Surge Migrate is not affiliated with Adobe and is not an Adobe partner.