News for hackers. Stuff that matters.
Re:Show HN: Lockbox – simple encryption with key management by heavenlyblue on Friday December 08, 2017 @05:00PM (#15882442)
What is the supposed use-case for this library?
Re:Show HN: Lockbox – simple encryption with key management by charanda on Friday December 08, 2017 @05:10PM (#15882523)
Sometimes you need your secrets to be secure, it can be some passphrases or encryption keys for your apps. This might give you an idea https://www.vaultproject.io/
Re:Show HN: Lockbox – simple encryption with key management by starekrow on Friday December 08, 2017 @05:51PM (#15882813)
I use it to store database passwords and AWS API keys on EC2 instances that are running web servers. When combined with a dead simple key distribution client/server setup, you can sleep a bit better knowing that even if someone managed to copy the entire hard drive, they wouldn't get your keys. Of course, if they get root on the box in operation it's all over, but anything short of that should be survivable. It beats the hell out of writing them all in the clear to "config.php" and checking that in with the rest of your site source.

I've also used similar code to manage an encrypted file store for a small business - since each file gets its own locks (essentially a cryptographic ACL) and each attached key is publicly identified, it's easy to see who can read (or change) any given file. Being able to remove lockboxes without decrypting the data means that a sysadmin can strip access from someone who leaves the company without needing an all-powerful "root" key.

Re:Show HN: Lockbox – simple encryption with key management by otterley on Friday December 08, 2017 @10:51PM (#15884182)
Since you're running in AWS, is there any particular reason you're not using Parameter Store?
Re:Show HN: Lockbox – simple encryption with key management by starekrow on Saturday December 09, 2017 @01:14AM (#15884592)
When I did the first pass at this architecture about 6 years ago, we had a few servers in a rack at a local datacenter as well as virtual servers at Rackspace and AWS.

Since then, I haven't shed the habit of designing for the general case (this is also known as avoiding vendor lock-in :)