Environments
What are Environments?
Environments in the Golain platform are configuration management containers that provide a centralized way to store and manage environment-specific variables and secrets for IoT projects.
They act as isolated configuration spaces, allowing you to maintain different settings for various deployment stages (such as development, staging, and production) within a single project.
Key Components
Variables (vars)
- Purpose: Store non-sensitive configuration data.
- Examples: API URLs, feature flags, service endpoints.
- Format: Key-value pairs stored as plain text.
- Use Cases: Environment-specific settings that don't require encryption.
Secrets (secrets)
- Purpose: Store sensitive configuration data securely.
- Examples: API keys, database passwords, authentication tokens.
- Format: Encrypted key-value pairs.
- Use Cases: Credentials and sensitive data that require protection.
How to Create an Environment?
Step 1:
- click on Add new environment button

Step 2:
- enter the environment name
- After entering the environment name, click on the "configure environment" button

Step 3:
- You can see environment is created successfully
- Click Environment Name

step 4:
- You have two secrets and variables
- click on the "add environment secret" button to add a new secret

step 5:
- click on the "add environment variable" button to add a new variable

step 6:
- Enter name and value of the variable
- click on add button to add the variables

step 7:
- You can see the variables and secrets are added successfully
