3 ms·
As hgimenez said, the best way is to not store your secrets in your source tree at all (12factor.net style). Keep them in the environment. Here's a great exampl
by bgentry 14y ago
As hgimenez said, the best way is to not store your secrets in your source tree at all (12factor.net style). Keep them in the environment. Here's a great example:
https://github.com/democrats/voter-registration/commit/2fa8796658fdbf18490cd2a3d7bf173e53b1cab8 https://github.com/democrats/voter-registration/commit/2fa87...
- nodata 14y agoIs that a good example? It doesn't warn if the env isn't set.
- bgentry 14y agoNo, it doesn't warn, it raises an error and prevents the application from booting: https://github.com/democrats/voter-registration/commit/2fa8796658fdbf18490cd2a3d7bf173e53b1cab8#L1R8 https://github.com/democrats/voter-registration/commit/2fa87...