Using Environment Variables
Using Environment Variables in Bindplane
Environment variables enable secure credential management in Bindplane by leveraging the OpenTelemetry Collector's environment variable substitution capabilities. This approach ensures sensitive values remain outside of the platform's storage.
Overview
Bindplane supports environment variable references in collector configurations through the standard ${ENV_VAR}
syntax. During deployment, these references are automatically resolved to their corresponding values in the collector agent's runtime environment.
note
Environment variable values remain exclusively within your deployment environment and are not persisted in Bindplane's database.
note
Proper configuration of environment variables on agent hosts is essential. Misconfigured variable names or values may lead to deployment failures or pipeline execution errors.
Implementation Guide
Step 1: Configuration Setup
Create or modify collector configurations in the Bindplane UI by incorporating environment variable references for sensitive values.

Step 2: Environment Configuration
Configure the required environment variables on all systems hosting OpenTelemetry collectors.
For Linux systems:
For Windows systems:
For additional information about Windows Environment Variables in PowerShell, consult the Microsoft PowerShell documentation.
Step 3: Deployment and Validation
Deploy the configuration through Bindplane and validate collector functionality with the configured environment variables.
Implementation Best Practices
- Naming Conventions: Implement clear, descriptive environment variable names (e.g.,
DB_MYSQL_PASSWORD
rather thanPASSWORD
) - Documentation: Maintain comprehensive documentation of required environment variables for each collector configuration
- Access Control: Implement appropriate permissions to restrict environment variable access to authorized collector service accounts
- Deployment Automation: Incorporate environment variable configuration into deployment automation or service definitions
- Security Integration: Consider integrating with enterprise secrets management solutions for automated environment variable population