Currently, variables and environment variables are stored in the robot.toml file, which is kept in the Git repository. This poses a significant risk if any passwords or secrets are accidentally committed.
A safer approach is to separate secrets from the main configuration by:
- Creating a file such as robot.toml.local that contains environment variables and passwords.
- Adding this file to .gitignore so it is not tracked by Git and does not get committed to the repository.
- Configuring the application to load or override settings from robot.toml.local during runtime.