News for hackers. Stuff that matters.
Re:Trello Desktop Application Stores Authentication Token in... by baronswindle on Wednesday July 03, 2019 @03:12PM (#20347614)
I might be an idiot to ask this, but how is this different from the AWS CLI storing IAM keys in ~/.aws/credentials ?
Re:Trello Desktop Application Stores Authentication Token in... by jbverschoor on Wednesday July 03, 2019 @03:16PM (#20347656)
Or the private keys in ~/.ssh?
Re:Trello Desktop Application Stores Authentication Token in... by javagram on Wednesday July 03, 2019 @03:17PM (#20347669)
The private keys in .ssh can be stored encrypted. I do that, and store the decryption key in macOS keychain.
Re:Trello Desktop Application Stores Authentication Token in... by poyu on Wednesday July 03, 2019 @05:09PM (#20348806)
Can you share how to achieve this?
Re:Trello Desktop Application Stores Authentication Token in... by simlevesque on Wednesday July 03, 2019 @05:27PM (#20348998)
On linux, I use ssh-agent. My key at ~/.ssh/id_rsa is encrypted.

When my shell starts, it boots ssh-agent (add "eval `ssh-agent`" to your ~/.bashrc)

Still in the shell boot, it tries to add the ssh key to the keychain (add "ssh-add" to your ~/.bashrc), and it asks for my private key password. Once I enter the password, my key is unlocked for as long at ssh-agent is running (usually until I shut down my computer).

My password is a long, I only need to enter it once a day so it's not really a problem. You can add multiple keys to the ssh-agent (ssh-add mykey.pem). The private key must have these permissions: 0400 (chmod 0400 mykey.pem).

Re:Trello Desktop Application Stores Authentication Token in... by imtringued on Wednesday July 03, 2019 @07:55PM (#20350222)
I can already see the headline "ssh-agent desktop application stores private keys in plain text".

There is no solution to the problem of the author beyond demanding a password on every single interaction.

Re:Trello Desktop Application Stores Authentication Token in... by javagram on Thursday July 04, 2019 @09:56AM (#20354663)
Re:Trello Desktop Application Stores Authentication Token in... by msbarnett on Wednesday July 03, 2019 @03:49PM (#20348034)
You almost certain should be storing your keys encrypted with a decent passphrase.
Re:Trello Desktop Application Stores Authentication Token in... by macspoofing on Wednesday July 03, 2019 @04:06PM (#20348212)
And if you want headless access this passphrase will be stored unencrypted. This is nothing more than security Kabuki theater.
Re:Trello Desktop Application Stores Authentication Token in... by simlevesque on Wednesday July 03, 2019 @05:28PM (#20349008)
Well, yeah, some keys must be unencrypted to be useful. But in a lot of cases you can and should encrypt your keys used to do manual stuff.
Re:Trello Desktop Application Stores Authentication Token in... by asadlionpk on Wednesday July 03, 2019 @06:31PM (#20349582)
In this scenario, wouldn't that mean the user will have to enter a passphrase on each Trello boot to be able to use it?

(ask for passphrase -> decrypt auth token -> Access API)

Re:Trello Desktop Application Stores Authentication Token in... by simlevesque on Thursday July 04, 2019 @11:23AM (#20355341)
No, you use ssh-agent.
Re:Trello Desktop Application Stores Authentication Token in... by macspoofing on Thursday July 04, 2019 @01:26PM (#20356252)
Or you can restrict the file with the key to a specific user and only run the process as that user.

The point is, you haven't actually solved the problem. It's not magic. In a 2-system authentication scheme, where headless access is necessary, a key needs to be somewhere in plaintext accessible to the process. You can obfuscate this, or add OS controls, or hardware chips, or ssh-agent, or keystores, or web-services for keys, but it doesn't change this reality.

Re:Trello Desktop Application Stores Authentication Token in... by msbarnett on Saturday July 06, 2019 @03:34PM (#20371419)
Indeed if you want to do something stupid, something stupid will be the result