Environment Types
mFoundry offers three standard environment types, each designed for a distinct stage of your development lifecycle.- Development — A sandbox for active work. Workflows run freely, errors are expected, and no production systems are affected. Use this environment to build and iterate quickly.
- Staging — A production-mirror environment used for final validation. Connect staging to your pre-production infrastructure so you can run end-to-end tests with realistic data before releasing.
- Production — The live environment that serves real users and systems. Access to production environment variables is restricted by role, and all changes are logged in the audit trail.
Creating an Environment
1
Open a project
From your mFoundry dashboard, click the project in which you want to add an environment. You land on the project’s Overview tab.
2
Click the Environments tab
In the project navigation, select the Environments tab. You see a list of all existing environments for this project.
3
Click New Environment and choose a type
Click New Environment in the top-right corner. In the dialog that appears, enter a name for the environment (e.g.,
staging-us-east) and select an environment type — Development, Staging, or Production.4
Set environment-specific variables
Add key/value pairs that your workflows will use in this environment. For example, set
API_BASE_URL to your staging endpoint or LOG_LEVEL to debug. Each value is encrypted before it is stored.5
Save and publish
Click Save. The new environment becomes immediately available to your project’s workflows. Workflows reading environment variables will pick up the new values on their next execution.
Environment Variables
Environment variables are the recommended way to pass configuration and secrets into your workflows. Each environment maintains its own isolated variable store, so the same key — for example,API_BASE_URL — can hold different values in development and production without any workflow changes.
Adding variables:
- Open the target environment from the Environments tab.
- Click Add Variable, enter the key and value, then click Save.
- To update an existing variable, click the pencil icon next to it, edit the value, and save.
${{ env.VARIABLE_NAME }} syntax. mFoundry resolves the value at runtime based on the environment the workflow is running in.
Security:
All variable values are encrypted at rest using AES-256. Encrypted values are never displayed in plaintext after initial entry — you can overwrite a value but not retrieve the original. This applies to all environment types, including development.