.env(contains real API keys)azure-config.env(Azure credentials)- Any file with real API keys or passwords
.env.example(template without real keys)*.env.example(example configurations)- Configuration documentation
# Copy the template
cp .env.example .env
# Edit with your real credentials
nano .env
# or
code .envFill in these sections in your .env file:
# Required for core functionality
AZURE_SPEECH_KEY=your_actual_key_from_azure_portal
AZURE_OPENAI_KEY=your_actual_openai_key
# Get these from Azure Portal:
# 1. Speech Services β Keys and Endpoint
# 2. OpenAI β Keys and Endpoint- Rotate keys regularly (every 90 days)
- Use separate keys for dev/staging/production
- Monitor usage in Azure Portal
- Set usage limits to prevent unexpected charges
# Development
.env.development
# Staging
.env.staging
# Production (most secure)
.env.production- Use Azure Key Vault for credential management
- Enable Azure AD authentication
- Configure network restrictions
- Set up monitoring and alerts
-
.envfiles are in.gitignore - No real credentials in committed code
- Azure keys are from your own Azure account
- Usage limits are configured
- Monitoring is enabled
- Immediately regenerate all affected keys in Azure Portal
- Update your
.envfile with new keys - Review Azure billing for unexpected usage
- Check git history for exposed credentials