There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

owncloud.com

bardmoss , to selfhosted in Am I the only one who missed the Owncloud rewrite in Go?

Everyone moved to NextCloud by now

Lem453 OP ,

I know, I did as well.

The point of the post is that there is a very active full rewrite of the whole thing trying to ditch all the tech debt that NextCloud inherited from the OG owncloud (php, Apache etc)

possiblylinux127 ,

It isn’t perfect but it is better than everything else I tried. Also I’ve used it long enough to understand how to make it work

aaaaace , to selfhosted in Am I the only one who missed the Owncloud rewrite in Go?

Fuck their fucking cookies.

vzq , to selfhosted in Am I the only one who missed the Owncloud rewrite in Go?

I run seafile, but holy shit do I regret looking at the source code.

WeAreAllOne ,

Why is that?

vzq ,

There was something wonky with the mapping of OIDC attributes to user properties, so I decided to look at the seahub source and see if it would be easy to fix.

Turns out, the whole thing is held together with hope and spit. Literal beginner code.

Lem453 OP , (edited )

Also looking through some of the issues and comments on github about no plans to implement basic features (file search on the android app) does not inspire confidence at all. One of the reasons I’m hoping the OwnCloud rewrite is good.

Decronym Bot , (edited ) to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
NAT Network Address Translation
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
k8s Kubernetes container management package

5 acronyms in this thread; the most compressed thread commented on today has 11 acronyms.

[Thread for this sub, first seen 3rd Dec 2023, 04:05] [FAQ] [Full list] [Contact] [Source code]

possiblylinux127 , to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud

Nextcloud is the right answer

COASTER1921 ,

Any tips for speeding it up? Loading can be painfully slow at times. I was reading that it may be the database (I use MariaDB which in theory shouldn’t limit it with 32gb RAM and an R7 1700x).

possiblylinux127 ,

What are you using for your reverse proxy? Make sure you have caching

COASTER1921 ,

I reverse proxy over tailscale to a VPS because I have double NAT… The connection to the VPS is direct with wireguard at least, no relay node. Adds ~30ms latency. But even when I connect direct locally it’s not substantially faster.

I’ll check my config.php for caching. I don’t recall adding anything for it so if it’s not on by default then that’s a likely reason. Thanks!

possiblylinux127 ,

Yeah for my instance I remember I had to do a few performance optimizations. Also make sure you are up to date because nextcloud has gotten performance upgrades.

TechAdmin ,

Is MariaDB on spinning disk or ssd?

I initially set up Nextcloud with MariaDB on spinning disk but it was slow even completely empty. I moved that container to ssd & performance was a lot better. The web UI may still have some slow loading parts but I can’t say for sure since rarely use it. Caldav+carddav+Nextcloud client are how I usually interact with it.

COASTER1921 ,

NVME only. I suspect caching just isn’t enabled based on previous comment. If it’s not by default then I didn’t change it.

ShortN0te ,

Implement redis. Like shown here: ( you can ignore most stuff there) github.com/nextcloud/all-in-one/…/latest.yml

astraeus , to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud
@astraeus@programming.dev avatar

OwnCloud? More like PwnCloud

deepdive , to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud

That’s way exposing your home services to the internet is a bad idea. Accessing it through a secure tunnel is the way to go.

Also, they already “fixed” the docker image with an update, something todo with phpinfo…

i_am_not_a_robot ,

Nobody cares about your home services unless they can use them to send spam or mine bitcoin. Owncloud is a funny name because it seems to imply it’s for personal use: your own cloud. I didn’t know until I found myself in one, but apparently a lot of schools use Owncloud.

phpinfo is just a bad idea. It’s a built in facility that dumps everything without knowing whether it’s sensitive or not, right into the current page, making it trivial to add this vulnerability to your own application or library that an unsuspecting developer will include into their application. There’s not even a single security warning in the documentation. Here’s practically the same problem from 21 years ago: nvd.nist.gov/vuln/detail/CVE-2002-1725

TCB13 , to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud
@TCB13@lemmy.world avatar

“Docker is safer” sure.

sudneo ,

The only thing that makes this case worse in docker is that more info is in ENV variables. The vulnerability has nothing to do with containers though, and using ENV variables to provide sensitive data is in general a bad decision, since they can be leaked to any process with /proc access.

Unfortunately, ENV is still a common way which people use to pass data to applications inside containers, but it is not in any way a requirement imposed by the tech.

TCB13 ,
@TCB13@lemmy.world avatar

No, but it only happens because this tech exists in the first place and things got way more cumbersome and way overcomplicated than they should be.

sudneo ,

Absolutely not. Many applications used ENV variables for sensitive stuff even before. Let’s remember that the vulnerability here is being able to execute phpinfo remotely.

Containerization can do good for security, in general.

TCB13 ,
@TCB13@lemmy.world avatar

This is just a bad practice that was popularized by CI/CD solutions and later on by containers. I’m not saying containers aren’t good for security, what I’m saying is that they’re misused and abused and that images shouldn’t even be a thing. Isolation is great, blindingly trusting images made by someone and/or having people that don’t have any basic knowledge of security nor infrastructure suddenly being able to deploy complex solutions with a click ends up in situations like this.

sudneo ,

OK, but how do you solve the problem? Trusting an image is not so different than downloading a random deb and installing it, which maybe configures a systemd unit as well. If not containers you still have to run the application somehow.

Ultimately my point is that containers allow you to do things securely, exactly like other tools. You don’t even have to trust the image, you can build your own. In fact, almost every tool I add to my lab, I end up opening a PR for a hardened image and a tighter helm chart.

In any case, I would not expose such application outside of a VPN, which is a blanket security practice that most selhosters should do for most of their services…

TCB13 ,
@TCB13@lemmy.world avatar

My point was that “random deb” and/or “random web application” are way less likely to come with unsafe default ENV based configuration files and usually go with the config files securely stored in system directories with the proper permissions enforced during installation or simple .php config files that won’t get exposed and that will require the user to configure in a proper way (like WordPress does by providing wp-config-sample.php but not the final wp-config.php file required to run it). Those are the solutions people used before the containerization hype and things were just fine.

My second point: containers “lowered the bar”, allowing for almost anyone to be able to deploy complex solutions and this was / is bound to be a disaster. No matter how safe Docker and others become we can’t just expect people who know almost nothing about computers and networking to be able to safely deploy things. Even the ones that know a lot, like developers, sometimes use Docker to deploy things they wouldn’t be able to deploy otherwise and fall to the pitfalls of not understanding networking and computer security.

In any case, I would not expose such application outside of a VPN, which is a blanket security practice that most selhosters should do for most of their services…

Well, me too, however I understand that some people might want to expose it publicly because they might want to access their instances from public or work machines where they can’t install a VPN. For those cases I would recommend 2FA and only allowing specific IP addresses or ranges access to the thing - the office static IP, their ISP or eventually only the user’s country.

inspxtr ,

what are the other alternatives to ENV that are more preferred in terms of security?

synestine ,

A named volume for the config directory for one.

sphericth0r ,

That's just as insecure lol, env vars are far better

sphericth0r ,

It's probably best to look at what the devops industry is embracing, environment variables are as secure as any of the alternatives but poor implementations will always introduce attack vectors. Secret management stores require you to authenticate, which requires you to store the credential for it somewhere - no matter what there's no way to secure an insecure implementation of secrets access

sudneo ,

They are not as secure, because there are less controls for ENV variables. Anybody in the same PID namespaces can cat /proc/PID/environ and read them. For files (say, config file) you can use mount namespaces and the regular file permissions to restrict access.

Of course you can mess up a secret implementation, but a chmod’d 600 file from another user requires some sort of arbitrary read vulnerability or privilege escalation (assuming another application on the same host is compromised, for example). If you get low-privileged access to the host, chances are you can dump the ENV for all processes.

Security-wise, ENV variables are worse compared to just a mounted config file, for example.

sudneo ,

In general, a mounted file would be better, because it is easier to restrict access to filesystem objects both via permissions and namespacing. Also it is more future proof, as the actual ideal solution is to use secret managers like Vault (which are overkill for many hobbyist), which can render secrets to files (or to ENV, but same security issue applies here).

Anonymouse OP ,

I’m using Kubernetes and many of the apps that I use require environment variables to pass secrets. Another option is the pod definition, which is viewable by anybody with read privileges to K8s. Secrets are great to secure it on the K8s side, but the application either needs to read the secret from a file or you build your own helm chart with a shell front end to create app config files on the fly. I’m sure there are other options, but there’s no “one size fits all” type solution.

The real issue here is that the app is happy to expose it’s environment variables with no consideration given to the fact that it may contain data that can be misused by bad actors. It’s security 101 to not expose any more than the user needs to see which is why stack dumps are disabled on production implementations.

sudneo ,

The problem is in fact in the applications. If these support loading secrets from a file, then the problem does not exist. Even with the weak secrets implementation in kubernetes, it is still far better than ENV variables.

The disappointing thing is that in many “selfhost” apps, often the credentials to specify are either db credentials or some sort of initial password, which could totally be read from file or be generated randomly at first run.

I agree that the issue is information disclosure, but the problem is that ENV variables are stored in memory, are accessible to many other processes on the same system, etc. They are just not a good way to store sensitive information.

possiblylinux127 ,

If you do it right, possibly.

tagginator Bot , to selfhosted in Disclosure of sensitive credentials and configuration in containerized deployments - ownCloud

deleted_by_author

  • Loading...
  • Tiritibambix ,
    @Tiritibambix@lemmy.ml avatar

    Remove this bot already

    Decronym Bot , (edited ) to selfhosted in ownCloud becomes part of Kiteworks

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    HTTP Hypertext Transfer Protocol, the Web
    SSO Single Sign-On
    k8s Kubernetes container management package
    nginx Popular HTTP server

    3 acronyms in this thread; the most compressed thread commented on today has 4 acronyms.

    [Thread for this sub, first seen 25th Nov 2023, 20:25] [FAQ] [Full list] [Contact] [Source code]

    possiblylinux127 , to selfhosted in ownCloud becomes part of Kiteworks

    I’ll just stick with Nextcloud

    deepdive , to selfhosted in ownCloud becomes part of Kiteworks

    Hummm… This kinda sucks ! Moving to seafile then ! Hope their native apps are as good as owncloud’s !

    Goodtoknow ,
    @Goodtoknow@lemmy.ca avatar

    Why not nextcloud? Seafile files stores in a proprietary database

    deepdive ,

    I used nextcloud for a year or so, but found the web GUI/apps slow, bloated and sometimes way to buggy ! Switch to owncloud for the simplicity of only having a cloud system without to much bloat.

    I just read through the seafile documentation and yeah this is also not going to happen. Maybe I should switch to a simple webdav server…

    u_tamtam ,
    @u_tamtam@programming.dev avatar

    Couldn’t you just install nextcloud and none of the apps you don’t need? I mean, it’s pretty modular…

    possiblylinux127 ,

    How was it setup? Make sure you are using a good SQL backend or else it will be slow.

    Its also received a bunch of live recently so it may be worth another look. I would be very careful trusting seafile as it sounds like a locked down proprietary solution

    Tiritibambix , to selfhosted in ownCloud becomes part of Kiteworks
    @Tiritibambix@lemmy.ml avatar

    Fuck me. I switched to owncloud yesterday because I can’t stand nextcloud anymore.

    Owncloud feels lighter, faster, and just works.

    Whhhhhhyyyyyy ?

    PeachMan ,
    @PeachMan@lemmy.world avatar

    I wouldn’t assume that they’ll kill it. It’s entirely possible that they’ll keep moving forward as-is. Just wait and see.

    Sharpiemarker ,

    Lol I envy your optimism.

    PeachMan ,
    @PeachMan@lemmy.world avatar

    It’s entirely possible that they’ll shut it down. I’m just saying…chill the fuck out, wait and see what happens before we all start crying.

    Croquette ,

    Considering that any switch to a new platform takes a lot of effort to carry over everything correctly, people are in the right to worry about the future of a product that has an uncertain future.

    roofuskit ,

    Worst case, it gets forked again.

    Discover5164 , to selfhosted in ownCloud becomes part of Kiteworks

    well fuck. now i need to move my stuff off my own owncloud instace.

    AlpacaChariot ,

    Did you not switch to Nextcloud a while back?

    Discover5164 ,

    nop, i’m using owncloud infinity scale, the go version

    Catsrules ,

    You need to keep up that was so last year. The new hottnes is switching back to owncloud because it is so light weight. But now i am guessing the new new hotness is switch from owncloud to Nextcloud.

    PeachMan ,
    @PeachMan@lemmy.world avatar

    Why? They didn’t say they’re shutting the open source project down.

    computergeek125 ,

    You’ll find a lot of pessimistic people here because there are few unicorns when a commercial company buying an open source project didn’t go badly for the open source people. Most of the time after a sell-out the projects ends up under highly restrictive licensing, features behind paywalls, and many other problems making it a shadow of its former self.

    The most notable recent examples I can think of is IBM buys Red Hat buys CentOS, and that ended with forks as AlmaLinux and Rocky Linux. Oracle buys MySQL ended up forked as MariaDB. Businesses love to push their commercial offerings on open source products, and it’s not always in the form of plain old support agreements (like the people behind AlmaLinux). Often (this is common especially in databases) they’ll tax features like SSO, backups, or literally simple the privilege of having stable software. Projects like CentOS and VyOS don’t have stable OSS versions, and soooo many databases will put LDAP/Kerberos behind the commercial product, charging monthly or yearly operating costs.

    Even GitHub (which to be clear was closed source to begin with, but is a haven for F/OSS so I’ll give it an honorable mention here) started showing Microsoft-isms after M$ bought the platform.

    PeachMan ,
    @PeachMan@lemmy.world avatar

    Fair, but I would point out that OwnCloud kinda already went that direction years ago. There’s already a very limited free version and a fully featured enterprise version. So it’s not like we’re losing something that the community built here.

    Dirk , to selfhosted in ownCloud becomes part of Kiteworks
    @Dirk@lemmy.ml avatar

    What is a good selfhosted cloud service?

    HurlingDurling ,

    Nextcloud?

    drudoo ,

    Personally I think nextcloud is bloated with too many extra things. I’ve been using Seafile for 5+ years and it’s been great.

    LordKitsuna ,

    If you just want file storage Seafile. Idk about all the other crap it can do but id imagine there are plenty of good options for each one. Immich is great if your mostly concerned about pictures/videos for example

    smileyhead ,

    SFTP.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines