News for hackers. Stuff that matters.
Re:CapRover: Build your own PaaS by julianwachholz on Tuesday June 09, 2020 @09:32AM (#23466494)
I have been using CapRover for about half a year now on my personal server running multiple projects. It does what you'd expect and the configuration format is pretty easy to use, using any docker image directly works without any extra steps, just enter the image name and it'll do the rest. I'm pretty happy with it and will probably stay with it for the time being.

It's not the best for hosting many static pages, as you'll need a HTTP server for each site anyway.

But my main gripe is that there is only single factor authentication and you can't easily secure it more other than using a strong password and a hidden subdomain. (because of webhooks, acme, etc. I guess)

Re:CapRover: Build your own PaaS by babaganoosh89 on Tuesday June 09, 2020 @02:28PM (#23469260)
If you have a vpn, you can edit the nginx config for the admin panel and make it only accept connections from your vpn ip address.
Re:CapRover: Build your own PaaS by sneak on Tuesday June 09, 2020 @04:16PM (#23470407)
Single factor is more than fine in the case where you know the admin (yourself) is going to use a 30 char random password and use a password manager that won’t autofill it on phishing domains.
Re:CapRover: Build your own PaaS by umaar on Tuesday June 09, 2020 @07:57PM (#23472362)
Hi sneak, I left a comment explaining my journey with CapRover in this HN thread. In there I explained one thing which concerned me was "netdata image in use is spyware #553" which you raised last year.

I haven't yet gone through the discussion but would you mind letting me know if you're satisfied with the outcome? You appeared to be fighting for increased privacy, so thank you.

Also you'll see that in my comment, I raised another issue RE: lack of two factor auth. I'm curious, why do you think single factor auth is fine? Simply because brute force for a 30 char password is not practical on todays hardware? Or is there something I'm missing?

Re:CapRover: Build your own PaaS by kasra85 on Tuesday June 09, 2020 @08:18PM (#23472522)
Kasra here from CapRover. Regarding "netdata image":

- sneak and I have fundamental differences in what we call spyware. The issue that was brought up in that thread is standard analytics events - nothing like stealing passwords or etc.

- Regardless, CapRover uses NetData 1.8 [1] . According to NetData's github page, they added analytics in NetData 1.12 [2] , so even if you're concern with analytics events, this issue won't apply to you anymore.

Regarding two factor auth: CapRover blocks brute-force attacks by limiting number of wrong passwords per minute.

[1] https://github.com/caprover/caprover/blob/48440db14aa115aca1...

[2] https://github.com/netdata/netdata#quickstart

Re:CapRover: Build your own PaaS by umaar on Tuesday June 09, 2020 @08:31PM (#23472591)
Thanks Kasra, yes it seemed 'spyware' was disputed and I didn't want to jump to any conclusions. But it's good to know it's a non issue.

RE: 2fa. Brute force protection is a step in the right direction, but passwords can leak in various ways, brute force isn't the only attack vector. I'll comment in the actual two factor auth discussion on the CapRover GitHub issue though.

Re:CapRover: Build your own PaaS by sneak on Tuesday June 09, 2020 @09:03PM (#23472758)
The version of NetData included in CapRover is a version from before when NetData became spyware, so it’s fine. (Note that I haven’t audited it, that’s just what I’ve been told.) NetData is also optional; I use CapRover and do not opt to install it.

Brute forcing a 30 char (or even 20 char) password over the network is infeasible. Do the math. Regardless, as the CapRover developer pointed out in a sibling comment, it rate limits attempts, but in the case where you are using a long, random password, it would be fine even if it didn’t.

Re:CapRover: Build your own PaaS by throwaway13239 on Wednesday June 10, 2020 @03:22AM (#23474779)
Could you quickly explain the math behind this please? Genuinely curious
Re:CapRover: Build your own PaaS by rockland on Wednesday June 10, 2020 @09:18AM (#23476662)
For every character in the password, you have 26 possible letters to choose from in an English alphabet.

Brute forcing this, you would have to try every combination. Which means for a four-letter long password: 26x26x26x26 = 456 976 possible passwords.

For a 10 letter long password: 26^10 = 141167095653376 possible passwords.

Re:CapRover: Build your own PaaS by sneak on Thursday June 11, 2020 @02:22AM (#23485742)
You forgot the other 26 uppercase letters, and the 10 digits 0-9. Looks good otherwise, but the result is much larger with a base of 62.

Clarifying it further is “number of days to brute-force if you can try (eg) 10k requests/sec”.

Re:CapRover: Build your own PaaS by rockland on Thursday June 11, 2020 @03:48AM (#23486210)
Absolutely, you are of course correct. The uppercase letters and digits - together with the special characters like "!._-,...".

I kept it to 26 letters to keep the math simpler (or rather - the numbers smaller, for myself, really).

Number of days to brute-force if 10k requests/sec (26 letters still...):

4-length password = 45 seconds

10-length password = 453 years

Please give me a heads up if my math is off.

Re:CapRover: Build your own PaaS by liotier on Tuesday June 09, 2020 @10:07AM (#23466769)
How does it handle upgrades ?
Re:CapRover: Build your own PaaS by mromanuk on Tuesday June 09, 2020 @10:32AM (#23466979)
for me it was seamlessly and I needed to jump a few minor versions.
Re:CapRover: Build your own PaaS by 867-5309 on Tuesday June 09, 2020 @11:13AM (#23467340)
> you'll need a HTTP server for each site

isn't that what virtualhosts are for?

Re:CapRover: Build your own PaaS by julianwachholz on Friday June 12, 2020 @07:55AM (#23498309)
CapRover creates virtual hosts for each "app" which is then proxy_pass'ed to the container for said app.

You could try and mount the static site's container files to the local filesystem and serve from there I suppose, but there's currently no easy way to do so.

Re:CapRover: Build your own PaaS by znpy on Tuesday June 09, 2020 @03:02PM (#23469628)
he's still in the early 90s
Re:CapRover: Build your own PaaS by 867-5309 on Wednesday June 10, 2020 @04:34AM (#23475098)
awaiting TIL..