Skip to main content

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
e-map

Step 2:

  • enter the environment name
  • After entering the environment name, click on the "configure environment" button
e-map

Step 3:

  • You can see environment is created successfully
  • Click Environment Name
e-map

step 4:

  • You have two secrets and variables
  • click on the "add environment secret" button to add a new secret
e-map

step 5:

  • click on the "add environment variable" button to add a new variable
e-map

step 6:

  • Enter name and value of the variable
  • click on add button to add the variables
e-map

step 7:

  • You can see the variables and secrets are added successfully
e-map