How do you manage secrets in a streamlined way?
I've searched the documentation and forums and couldn't find guidance on managing secrets in config files. All documentation suggests adding secrets directly in the config file.
Is there a streamlined process you would recommend? For example, is there a way to use dotenv?
Found a partial answer in this post, particularly, "You can pass credentials through environment variables and get them from script." Is that possible with jsreport-specific credentials and connection strings, as well, such as the admin credential and template storage database connection string?
Hi, thank you for the question.
Yes I would recommend using environment variables for your secrets.
The jsreport related configuration values can be also passed through environment variables and accesses in the jsreport custom scrips.
The related configuration is here
Thank you, Jan.
By the way, I'm extremely excited about jsreport. After years of working with Crystal Reports (only because I didn't have to create reports often...but now I need to overhaul all reports and create new ones), I'm happy to have an HTML-based designer (Node server is also a huge plus). No more tedious proprietary report designers or report file formats =D
Glad to hear that!!!