Closed velodromen closed 1 year ago
I continued to try other options and after making the subdirectory ".secrets" in the udm-le.env directory and then copy the password.txt file to that directory I got it to work. Though, first I obivously also had to change the actual path in udm-le.env to:
LOOPIA_API_PASSWORD=/root/.secrets/password.txt
Describe the bug I have followed the installation steps and tried to make use of the DNS provider "Loopia", supported by Lego, by adding the following to udm-le.env:
This works as intended but I do not want to write out my actual password in this configuration file. Instead I tried to make use of the _FILE suffix, e.g. LOOPIA_API_PASSWORD_FILE=/root/.secrets/password.txt but then received this message:
_2022/08/01 19:57:33 Failed to read the file /root/.secrets/password.txt (defined by env var LOOPIA_API_PASSWORD_FILE): open /root/.secrets/password.txt: no such file or directory 2022/08/01 19:57:33 loopia: some credentials information are missing: LOOPIA_API_PASSWORD
I tried chmod 777 for password.txt but that resulted in the same error message. I also tried to move the password file to the same location as where I keep the udm-le.env file. That did not work.
Expected behavior I expected "udm-le.env" to retrieve the password for my API-user from a separate file with restricted read access; For instance only root have read access to the password file.
Version Information (please complete the following information):
Additional context Add any other context about the problem here.