Repository navigation
v1.4.2
Feature: User-Defined Environment Variables
- Added
env_varsconfiguration option to pass custom environment variables into the container- Supports any key/value pair (e.g.
AZURE_RESOURCE_NAME,OPENAI_API_KEY) - Variables are available to OpenCode, the terminal shell, and all child processes
- Configurable from the add-on's Configuration tab in Home Assistant
- Supports any key/value pair (e.g.
- Security hardening:
- Variable names validated against strict shell identifier regex
- Critical system variables (
HOME,PATH,SUPERVISOR_TOKEN, etc.) are blocked from being overridden - Values are single-quote escaped to prevent shell injection
- File permissions set to 600 and excluded from backups to protect secrets
- Removed unused legacy
run.shentry point (dead code cleanup)
Closes #12