I'm about to deploy a small Dapp to Mainnet using infura. Built using express + truffle.
I'm curious to hear how people are storing their mnemonic value when deploying to mainnet using truffle + Infura.
All examples I've found thus far store the mnemonic value as plaintext inside truffle.js.. which seems to me like a giant red flag.
According to http://truffleframework.com/tutorials/using-infura-custom-provider :
Warning: In production, we highly recommend storing the mnemonic in another (secret) file, to reduce the risk of the mnemonic becoming known. If someone knows your mnemonic, they have all of your addresses and private keys!
I'm curious to hear how people are setting up this mnemonic secret file ? Are you just restricting perms to the mnemonic file to +r inside express (or whatever..)? Or are you encrypting the mnemonic file on the fs and then decrypting it inside express? The latter feels safer.
Perhaps someone has an example of a solution they have come up with.. ?