Variables and secrets
A variable is either a plain value or a secret:- Plain variables are readable back in the dashboard by the organization that set them.
- Secrets you set are write-only: once saved, the value is never returned in an API response, logged, or shown again. Meridian keeps only a reference to the version in the secret store.
ENV format (^[A-Z][A-Z0-9_]*$, up to 128 characters). Meridian normalizes them for you.
Scope and precedence
Each variable or secret you add on the Environment page has a scope, shown in its Scope column. Pick it with the toggle next to Variable / Secret when you add the entry. It lists All environments and then each environment the app has:- All environments (the default) applies to every environment of the app: Development, Staging and Production. Use it for values that are the same everywhere.
- Production, Staging or Development applies to that environment only, shown as Only Production (and so on) in the Scope column. You can add a value for any environment from any tab: a value for another environment is saved there and shows on that environment’s tab. An environment your plan includes but that does not exist yet is greyed out until it is created. Use it for values that differ per environment, such as
SENTRY_ENVIRONMENTor a sandbox API key.
When changes take effect
Adding, editing or deleting a variable or secret doesn’t touch the running app. The change reaches it with the next deploy, which creates a new revision with the current values. A change to an All environments entry concerns every environment of the app. The same goes for the other settings a deploy reads: the Shopify credentials on the app’s Meridian SDK page, a rotated API key or webhook signing secret (the change concerns every environment of the app), and an environment’s health check path and release command. Saving the same value again is not a change. Capacity changes and add-ons are not on this list: they update the live service on their own. See Configuration takes effect on deploy. Until a deploy starts, Secrets and variables and the Hosting overview show Changes apply on the next deploy. on the tab of each environment the change concerns. Members who can deploy to that environment also get Deploy now, which redeploys that environment’s live commit with the current values and settings after you confirm. On production that needs the hosting.promote permission, like any production deploy. It reuses that commit’s build when its image still exists, so it is quick and ships no new code. Any deploy started after your change clears the banner too, including an automatic one from a push or a build brought forward from another environment. The banner comes back if that deploy fails or is cancelled, because the previous revision keeps serving with the previous values. It also comes back after a rollback to a release deployed before your change, since the restored revision runs with the values it was deployed with. One nuance for secrets: after you replace a secret’s value, instances that start later (when the app scales out or wakes from zero) can already read the new value, while instances already running keep the old one. Deploy to move every instance to the new value at once.Managed variables
Meridian also injects its own variables at deploy time. You don’t set these; they’re provided.
Names starting with
HOSTING_ are reserved for Meridian’s own platform secrets, so you can’t create a variable with that prefix.
The Managed by Meridian section of the Environment page lists the managed variables the environment gets at its next deploy, an add-on’s only while that add-on is ready. The Source column names the page each one comes from and links to it: Meridian SDK for the Shopify pair, MERIDIAN_APP_ID and MERIDIAN_API_KEY, Pub/Sub webhooks for MERIDIAN_WEBHOOK_SECRET, and the database or add-on page for theirs. Platform (no link) marks the values that have no page of their own. Secret values are never shown.
When you type the name of a managed variable in the add row, the page warns that Meridian already injects it, names the page or file it comes from (a platform variable has none), and says whether your value or Meridian’s will be used. The warning does not stop you from saving.
Your own MERIDIAN_API_KEY or MERIDIAN_WEBHOOK_SECRET overrides the managed value. The same applies to the Shopify credential pair and to the database and add-on variables: their row in Managed by Meridian reads Overridden. Delete your override and redeploy to restore the managed value. Platform identifiers (MERIDIAN_APP_ID, MERIDIAN_API_URL and MERIDIAN_OAUTH_CLIENT_ID/SECRET) always use Meridian’s values. See SDK credentials for key rotation and redeployment.
On the Environment page, a row marked Overrides managed offers Use managed value, which deletes your entry after a confirmation that warns when the values differ or can’t be compared.
Managed database and Redis passwords can be revealed separately from their hosting screens. Those actions require access to credentials and are recorded in the organization audit log.
Your own SHOPIFY_APP_URL wins: set it when the app URL in shopify.app.toml is a custom domain. The readiness checks warn when the SHOPIFY_APP_URL an environment runs with differs from application_url in that file.
SCOPES from shopify.app.toml
Meridian readsSCOPES from the Shopify app configuration at the root of the connected repository, so you don’t add it by hand:
- The file is the one whose
client_idis the environment’s client ID (your own plainSHOPIFY_API_KEY, else the client ID in App settings > Meridian SDK). With none, it isshopify.app.toml. A repository withshopify.app.tomlfor development andshopify.app.production.tomlfor production gives each environment its own scopes. - A deploy reads the file at the commit it deploys, so the scopes change with the commit that changes them.
- Your own
SCOPESwins, set for All environments or for one environment, as a variable or a secret. The readiness checks warn when aSCOPESyou set lists other scopes than the file (scopes_mismatch). Delete it to use the file’s. - Nothing is injected when no repository is connected, when the root has no configuration for the app, when the file has no
scopesline or an empty one, or when GitHub doesn’t answer during the deploy. - A pull request preview gets no
SCOPES, like the other managed variables.
SCOPES with the file it comes from, read on the default branch. managed_variables_list returns the same file in source_file.
Your AI client can list the managed set (names only) through Meridian MCP (managed_variables_list) so it doesn’t write a workaround for a variable the platform already provides.
It can also write your variables and secrets there: secrets_set adds one or replaces its value, and secrets_unset deletes one. Each needs the permission the same change needs on this page (Hosting: Edit to add or change, Hosting: Delete to delete), and each change is recorded in the activity log. The value goes in and is never returned, and like any change here it reaches the app at the next deploy. When one of your variables overrides a managed one, managed_variables_list says whether the two values match with override_value: same, different, or unknown when Meridian can’t compare them. Only the Shopify pair and NODE_ENV are compared. Deleting an override that is same changes nothing for your app. Deleting one that is different or unknown makes the app take Meridian’s value at its next deploy, so secrets_unset asks for confirmation first. A variable of a ready add-on, such as REDIS_HOST, counts as unknown, and so do the DB_HOST, DB_PORT and DB_SSL_CA Meridian sets for a database the app reaches over TCP. The confirmation also applies to an environment’s override that a value set for every environment replaces.
From a terminal, the Meridian CLI does the same: meridian env list lists an environment’s variables and secrets (names only, on every environment), meridian env set adds one or replaces its value, and meridian env unset deletes one, with the same permissions and the same entries in the activity log. set and unset write one environment with --env, or the All environments entries with --all-environments. A change on production or for all environments asks you to confirm first and needs production access, approved in your browser (meridian login --production), and CLI 1.9.0 or later. The CLI never takes a value on the command line.
Because values you save as secrets are never read back, an agent or teammate can confirm a variable exists and is spelled correctly, but can never retrieve its value, which is what almost every “missing env var” check actually needs.