In some of my microcontroller testing code, I find it necessary to save things so that if I make a mistake, I can go back to a previously known-good configuration.
On a microcontroller, it's not as simple as grabbing a password/passphrase from an environment variable or file from disk, so until I get all of my code working, I set up temporary wifi/other-comms channels and embed the creds within the source (and subsequently save to Github (insert other online repo location if necessary)).
I understand completely how this is insecure, but throughout testing, I one-off my communication channel names, and flick out passphrases for them, then when I go to prod for real, I write code that will write to EEPROM, save the prod connection info, then go from there.
For me, if you're in my area (unlikely), you might bite on one of my SB5, SB9, SB66, SBx (etc) wifi (or 433MHz RF) networks, which is routed to a null VLAN, so my case is an easy one; I don't care about creds.
In the real world, if you *must* have creds in your source files (even initially), how do you deal with it?
Do you mask creds each push to your repo (prone to forgetting)? Do you set up temporary and fake comm channels until you go to production? Or do you first create the back-end compilation and storage of your creds somewhere else that isn't in a repo?
The last question in that last paragraph was loaded... even if you store creds to disk or otherwise, you *still* have to store them somehow... how do you maintain the code that does this within your Distributed Version Control System?
This might all seem like a smartass thing, but I've been fighting with committing/pushing code with passphrases and not, and the difference is that my efficiency goes downhill if I decide not to include them. I find myself without the commits to backtrack to after a major mistake because I haven't committed in some time, due to 'fear'.
Sick of banging my head due to lack of committing because of this nonsense. What do you do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passwords/passphrases in your Distributed Version Control System
by dsheroh (Monsignor) on Apr 01, 2019 at 08:06 UTC | |
|
Re: Passwords/passphrases in your Distributed Version Control System
by Corion (Patriarch) on Apr 01, 2019 at 08:34 UTC | |
by erix (Prior) on Apr 01, 2019 at 09:49 UTC | |
|
Re: Passwords/passphrases in your Distributed Version Control System
by duelafn (Parson) on Apr 01, 2019 at 10:27 UTC | |
|
Re: Passwords/passphrases in your Distributed Version Control System
by shmem (Chancellor) on Apr 01, 2019 at 11:51 UTC | |
|
Re: Passwords/passphrases in your Distributed Version Control System
by talexb (Chancellor) on Apr 01, 2019 at 21:03 UTC |