Open gianmarcogg03 opened 11 months ago
FYI, readFile
-ing a secret wil put it in the (world-readable) store, so this doesn't sound like the best approach
This rewritten prosody module provide a new option environmentFile
, I think that is what you want. You can look at the description to see how to use it.
Describe the bug
In my Prosody configuration I have set a secret for a module that goes like this:
However, if I put a
builtins.readFile
function to read the secret file, since I don't want to hardcode the secret here, the system fails to rebuild with this error:When I go and check that lua file, I see that the closing apostrophe (or quotation mark) goes on a new line for some reason:
This does not happen when I hardcode the secret in the configuration file and the service runs fine.
Steps To Reproduce
Steps to reproduce the behavior:
turn_external
community moduleextraConfig
the turn secretExpected behavior
The secret should be printed in the lua config file without the closing apostrophe/quotation mark going on a new line.
Notify maintainers
@globin
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.