Security issue with aesbackend.go environment variable
Author: ProfpatschCreated Dec 6, 2020Updated Jan 2, 2022
The -encrypt option introduced in https://github.com/muesli/beehive/pull/295 allows the config file to be encrypted via the BEEHIVE_CONFIG_PASSWORD environment variable:
In general, using an environment variable for a password is more secure than using a command line argument, with one caveat:
You need to unset the variable after reading it. Otherwise it will leak into any process that beehive spawns directly or indirectly and any library that is used by the bees, which is a security risk.
Source: muesli/beehive