Better HN
topnewbestaskshowjobs
Log inSign up

mreinsch

31 karma · joined Feb 27, 2009 (17y ago) · 21 submissions

I’m a passionate software developer & architect with a background in software engineering and computer science.

Professionally I’ve been building web based solutions since 2000, using Ruby since 2006 with Ruby on Rails following in 2008. I love working on general architecture and backend topics and used a wide range of tools and technologies there.

[ my public key: https://keybase.io/mreinsch; my proof: https://keybase.io/mreinsch/sigs/A9OLELaI2cpWzrv_qpouqEdjxm0KWYGtHcuJkpG70bs ]

Submissions

comment 11y ago · link · parent

Why is that? Isn't that exactly the same problem whether you're using environment variables or a config file?

comment 11y ago · link · parent

This is indeed an issue, though with a modern cloud based infrastructure and management systems there is no longer a need to create backups from your production servers. They can be automatically recreated and no important data is stored on them.

comment 11y ago · link · parent

as long as you don't store your config then in the same repository as your code, that works fine for me.

comment 11y ago · link · parent

sniffing isn't the main issue I'm trying to avoid, it's accidental exposure. I.e. minimising the risk that during normal operations the secrets get exposed somehow.

comment 11y ago · link · parent

I have to admit that I don't know a thing about TPM. Like is it also available in virtual environments like AWS is providing? How could this be automated? You don't want to enter a passphrase every time a server (re)boots. Would love to hear if anybody successfully used that.

comment 11y ago · link · parent

Thanks for that idea of deleting sensitive environment variables. I like that for hosters such as heroku which use ENV variables for config (including secrets) by default.

comment 11y ago · link · parent

Thanks. I'm mainly looking at this from the point of how your secrets could be accidentally exposed.

I applaud to postfix for sanitising the ENV, and it's very good practice to do so. But are all the frameworks doing it correctly? Maybe some code is then also just spawning new processes without sanitising? You could argue that's a bug then (which I completely agree), but not all projects are run like postfix...

comment 11y ago · link · parent

I agree that ENV variables are useful for general configuration, that's exactly what they were invented for...

ENV variables are not restricted by user though, your process can spawn another process under a different user and give it the same environment. It's the nature of the environment that it is usually inherited from the parent which causes the issues when we're talking about secrets.

comment 11y ago · link · parent

The permissions on our chef repository are different. We can give access to the main code repository without giving access to the chef repository.

Alternatively, if you're running on AWS you could also fetch the secrets config file from an S3 bucket which is only accessible by your production servers.

comment 11y ago · link · parent

You're right that a tool which runs under the same user could read your config file and thus could access to your secrets.

But there is one main difference: that tool would need to do so explicitly, with the intent of reading (and possibly exposing) your secrets. For me, that's a huge difference from having the secrets being implicitly available to the process through the processes environment.

11.

Samurai Loren Fykes of the Third Gundan releases recommendation app Quchy(beaconreports.net ↗)

3 points · by mreinsch · 13y ago · discuss

12.

Hacker News Tokyo Japan Meetup #19 – 6th of February, 2013(hntokyo.doorkeeper.jp ↗)

22 points · by mreinsch · 13y ago · 8 comments

comment 15y ago · link · parent

yeah!

comment 15y ago · link · parent

great, looking forward!

comment 15y ago · link · parent

Asiajin (http://asiajin.com/) is covering Japanese startups (among other stuff)

comment 15y ago · link · parent

Yes, you'll be able to get in. But it'll be ¥3,000 and you'll get two drink tickets instead of the buffet ticket. Check the event description on http://tbtpe.doorkeeper.jp/ for all the details. Anyway, hope to see you there. I'll be helping out at the door as well...

17.

Updating a real world application to Rails 3(mobalean.com ↗)

1 points · by mreinsch · 15y ago · discuss

comment 16y ago · link · parent

How are you running delayed_job or other custom daemons?

comment 16y ago · link · parent

Great! I'll make sure to come along again!