News for hackers. Stuff that matters.
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by rasengan on Saturday November 03, 2018 @05:56PM (#18372709)
I would not put all of this on the same machine.

Edit: To clarify - if one line of code is fd in any of the daemons you’re running you’ll lose everything.

Practice defense in depth.

Minimize the damage possible.

Re:Dank-selfhosted: automated deployment of email, web, DNS,... by yellowapple on Saturday November 03, 2018 @06:18PM (#18372813)
OpenBSD's standard practice is for all daemons to run as unprivileged users in chroots (after using pledge and - nowadays - unveil to restrict themselves further). If one line of code is fd in any of the daemons, it will by default be constrained to that daemon.
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by rasengan on Saturday November 03, 2018 @06:24PM (#18372836)
Absolutely, and pledge is amazing.

That being said, for example, let’s say pledge or unveil have one line of code that is fd.

Re:Dank-selfhosted: automated deployment of email, web, DNS,... by upofadown on Saturday November 03, 2018 @07:22PM (#18373045)
You mean as opposed to your container/virtualization having one line of code that is "fd"?
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by rasengan on Sunday November 04, 2018 @08:41AM (#18375807)
The point of my statement is you have tens upon thousands of lines of code, systems are complex.

You can’t put all your eggs in a basket given the probability that something is fd.

Downvoting my statement is fine as long as it’s noobs learning from this script and not someone who is running critical infrastructure. :)

Re:Dank-selfhosted: automated deployment of email, web, DNS,... by yellowapple on Monday November 05, 2018 @02:32PM (#18385167)
"You can’t put all your eggs in a basket given the probability that something is fd."

But you'd be doing that no matter what unless you're running each daemon on a different physical machine. That basket's just called "Xen" now instead of "OpenBSD". Worse, if the hypervisor has a bug that can be triggered from unprivileged guest code (i.e. as a non-root user in the guest OS), then any layers added in the guest are moot.

Re:Dank-selfhosted: automated deployment of email, web, DNS,... by im3w1l on Saturday November 03, 2018 @06:07PM (#18372760)
I can see how that kind of makes sense. But if you ask people to run it from multiple machines chances are they will throw their hands up and say too hard and not self host at all?
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by rasengan on Saturday November 03, 2018 @06:16PM (#18372804)
Agreed and that would be a reason not to self host at all, if security is critical, because it IS difficult.

For example, driving is convenient. That doesn’t mean someone who has never driven before should just drive. It’s definitely better for them to taxi.

It’s a hard problem - we have to make things easier for people.

When King Sejong saw that people were illiterate, he didn’t try to force everyone to suddenly learn a difficult language - he just made an easier one.

Now korea is 99.9% literate.

Re:Dank-selfhosted: automated deployment of email, web, DNS,... by seattleeng on Saturday November 03, 2018 @07:16PM (#18373025)
what is `fd` in this context?
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by elchief on Saturday November 03, 2018 @07:21PM (#18373038)
I think he meant "f'd" as in fucked
Re:Dank-selfhosted: automated deployment of email, web, DNS,... by rasengan on Saturday November 03, 2018 @10:59PM (#18373869)
foobar'd