sensitive file

Is it safe to store a sensitive file in the src (not under "public") directory? Can't seem to find any docs on this. Basically I need that file when a function runs so I run this code: fs.readFileSync(path.join(process.cwd(), "", "sensitiveFile.text"));
4 Replies
Rhys
Rhys10mo ago
What's in the sensitive file? It should not be commited to your repostiory - if it's secrets like your database URL it should be stored in environment variables
shikishikichangchang
It’s a binary file
Rhys
Rhys10mo ago
What about the binary file is sensitive? How big is the binary file? What are you doing with the binary file?
shikishikichangchang
Do not want people to download to use it. 200Kb. Using it for digital signature. The GitHub repo is private
Want results from more Discord servers?
Add your server