News for hackers. Stuff that matters.
Re:Codeberg a GitHub Alternative from Europe by bee_rider on Monday October 17, 2022 @01:34PM (#33236984)
I think we should emphasize that Sourcehut is just currently free while it is in alpha. Mr. DeVault been very upfront about the fact that he's planning to start charging eventually. From his FAQ,

https://man.sr.ht/billing-faq.md#why-should-i-pay-when-githu...

The point is to set up a responsible financial situation between himself and the users and avoid the bad incentive structures that "free" services have ("Free" until VC money runs out, at which point it is roll of the dice whether they'll be monetized through acquisition, or some annoying scheme).

Re:Codeberg a GitHub Alternative from Europe by Funes- on Monday October 17, 2022 @02:07PM (#33237472)
I think that makes a whole lot of sense. The actual post explains it wonderfully:

>Most other companies are financially supported by venture capital, in the form of large investments from a small number of people. If you use their services for free, or even if you pay the modest fees for their paid plans, they are not incentivized to serve your needs first. They are beholden to their investors, and at their behest, they may implement changes you don't like: invasive tracking, selling your data, and so on.

>SourceHut has not accepted, and will never accept, any outside investments. Our sole source of revenue is from sr.ht users making their account payments. This incentivizes us to only consider your needs, and not to use you as a resource to be exploited. The financial relationship is much more responsible for both parties.

A very commendable stance.

Re:Codeberg a GitHub Alternative from Europe by albert180 on Monday October 17, 2022 @02:16PM (#33237567)
Well Codeberg is also just an German association. Everyone can become a member and the member dues finance the server costs
Re:Codeberg a GitHub Alternative from Europe by jabo on Monday October 17, 2022 @04:36PM (#33239208)
Thank you for calling this out! It's great to see other products adopt this stance and this is one of the reasons we chose to not raise funds for Typesense [1].

From an article I wrote recently on this topic [2]:

> Selling Stock vs Selling Search

One key realization we had is that when we bring on investors, we are essentially bringing on a new group of customers - customers for whom the product is our company stock.

The value this group of customers (investors) gets from the product they are buying (stocks) is appreciating stock prices. And the way we can keep this group of customers happy is by regularly raising the next round of funding which is when stock prices appreciate, or having a liquidity event to make a return on investment.

We are concerned that “launching” a new “product line” (selling stocks) and bringing on a whole new group of customers (investors), would cause us to lose our precious bandwidth that could have otherwise been spent on our core search product that our primary group of users and customers expect from us. After all, the “company stock” product line would not exist without the core search product.

[1] https://typesense.org

[2] https://typesense.org/blog/why-we-are-not-raising-funds/

Re:Codeberg a GitHub Alternative from Europe by NeutralForest on Monday October 17, 2022 @05:43PM (#33239905)
The guy very SourceHut is very nice and dedicated to the project, his blog is also interesting to understand the philosophy being SourceHut.
Re:Codeberg a GitHub Alternative from Europe by endgame on Monday October 17, 2022 @05:53PM (#33240015)
I've been paying for years, because I agree with these principles. It's a good service.
Re:Codeberg a GitHub Alternative from Europe by kodah on Monday October 17, 2022 @06:01PM (#33240077)
Does SourceHut still have an aversion to Kubernetes and Docker? Last year I was trying to setup SourceHut on my home infra (which is Docker/SystemD based, but was Kubernetes based) and I was told I'd be banned if I asked about it, and that they don't support that kind of software. Super weird interaction from someone I otherwise used to admire.
Re:Codeberg a GitHub Alternative from Europe by dspillett on Monday October 17, 2022 @06:36PM (#33240387)
Some Kubernetes and Docker people get somewhat religious about it, and rather than taking “I/we don't support that and don't have any immediate plans to, but feel free to try it yourself” as a valid response will plead, nag, and otherwise try to cajole a project's maintainer's to reconsider, sometimes being irritatingly persistent and calling into question a person's overall intelligence because they don't currently want to directly support that plumbing. Such discussions can become time-consuming, tiresome, and (if really persistent) difficult to just ignore.

> be banned if I asked about it

I assume this means the maintainer(s) have experienced the above a few times, and have given up trying to be more polite about it!

Don't take it personally. If you want to use a tool with that plumbing then feel free to DIY. If you make it work well, perhaps publish your process and/or images and support it for others who need/want that support.

Re:Codeberg a GitHub Alternative from Europe by sph on Monday October 17, 2022 @07:25PM (#33240898)
Bah, what a dumb argument. There's a whole ocean between "we don't really support Docker, you're on your own" and "if you dare ask this again, you'll get banned." That's not the Kubernetes guys being religious here.

Also, it doesn't even make sense on the engineering point of view. I understand not liking Docker the company or Kubernetes the product, but Linux namespaces are a kernel level facility, and banning people because they dare ask how to integrate this product with a native subsystem seems absolute zealotry from people with oversized ego.

Nothing wrong with that, but let's call a spade a spade. It's their project, so it's their right to be a prick about it, but that shouldn't stop other people to call them out on it.

Re:Codeberg a GitHub Alternative from Europe by dspillett on Monday October 17, 2022 @07:36PM (#33241006)
> There's a whole ocean between "we don't really support Docker" and "if you dare ask this again, you'll get banned."

There is. And I'm suggesting that the water filling that ocean has come from having the same discussion over and over again with people who have asked in the past, each thinking they might be the one to finally help you see the light. I've not personally dealt with it from the point of view of infrastructure choices, but I hear tale of those who have, and I've been subject to it with regard to people who didn't agree with a licence choice so can speak for how much it makes you not want to engage at all just-in-case.

I'm not suggesting you'd be like that, but I understand not wanting to engage on the matter based on previous experiences.

Re:Codeberg a GitHub Alternative from Europe by d3nj4l on Monday October 17, 2022 @10:57PM (#33242454)
Perhaps there is a difference between "not wanting to engage on the matter" and "banning someone on sight"? Maybe there's polite ways to say, "Sorry, but we're not interested in supporting docker, and we don't care about any arguments for it" that would take less effort than rudely telling someone to fuck off?
Re:Codeberg a GitHub Alternative from Europe by dspillett on Tuesday October 18, 2022 @06:51AM (#33245411)
Of course the suggestion of “banning on sight” could have been an attempt at humour by way of hyperbole, something I should have noted in my previous reply.

> that would take less effort than

Unfortunately, not always. Sometimes the only way to convince people that it isn't worth their time continuing to try to change your mind, is to blatantly be a dick about it. I try not to jump straight to dickishness though: I'll state my position politely once, I may have time to repeat that once or twice more, then out come the big guns.

On a public mailing list or similar I might be more blunt: linking to past discussions in the first instance then jumping to DickCon1. On a public group the discussion is taking more than just my time and might encourage others to chime in and drag the matter instead of letting it close.

And again: the suggestion of “banning on sight” could have been intended as an attempt at humour by way of hyperbole, rather than the direct “off you fuck” that was felt. Communication of sentiment online is very prone to errors like that.

Re:Codeberg a GitHub Alternative from Europe by d3nj4l on Tuesday October 18, 2022 @07:16AM (#33245602)
> Communication of sentiment online is very prone to errors like that

This is exactly my point: given that online communication is low bandwidth, why are you attempting humour with someone new, who is therefore very unlikely to get it? (And, given Drew's track record, I find it extremely unlikely that he is just trying to be funny, but that's a different matter.)

Also, your point about not wanting to spend more time on a discussion than is necessary, you can simply... not. Say not interested, post a link to a FAQ that covers your stance, and simply don't engage. You don't need to be offensive. You don't need to be worried about people dragging the matter. It's just a discussion.

Re:Codeberg a GitHub Alternative from Europe by kodah on Tuesday October 18, 2022 @11:08AM (#33248405)
It was on Libera in a public channel. It wasn't humor. I'm very used to the IRC crowd and recognizing even the cringiest of humor tactics. There's also another person on this thread now who Drew reacted similarly on a mailing list.

I will be very surprised if Drew isn't called in by his communities at some point.

Re:Codeberg a GitHub Alternative from Europe by kodah on Monday October 17, 2022 @09:49PM (#33242049)
> Some Kubernetes and Docker people get somewhat religious about it

I asked once and didn't get a response for what I think was 3-5 days and asked again (it is a low frequency channel, but that gap seemed appropriate). I wasn't making a religious argument, literally just asking about the availability of images.

> Don't take it personally. If you want to use a tool with that plumbing then feel free to DIY. If you make it work well, perhaps publish your process and/or images and support it for others who need/want that support.

I mean Drew was pretty clear that I couldn't even ask questions related to either subject in that channel. I don't take it personally, but it certainly affected the way that I view the project and Drew as a human being.

Re:Codeberg a GitHub Alternative from Europe by js2 on Monday October 17, 2022 @06:39PM (#33240418)
Re:Codeberg a GitHub Alternative from Europe by sph on Monday October 17, 2022 @07:39PM (#33241044)
Pretty feeble argument. Basically it boils down to "if you use Docker you risk not learning how it works and hurting yourself." As I mention in the sibling comment, it would feel less patronising just saying out loud "we do not like containers, roll your own."
Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @04:16AM (#33244420)
I don't think so.

I was researching Keycloak integration with Kubernetes (a project needed it at the office).

I installed it on bare metal, set-up its TLS certificates and enabled native HTTPS. While searching for integration I found a video. The person installed Keycloak Docker image, and dropped an HTTPS proxy container in front of it to enable TLS/HTTPS.

If this is not both bad practice and being misinformed about Keycloak in one step, I don't know what it is.

The person didn't learn how to use and administer Keycloak, didn't make good judgement calls about security and published bad information while doing that.

Docker is easy to abuse and creates people who think know stuff, but do not in reality.

Docker. Pull Responsibly (TM).

Re:Codeberg a GitHub Alternative from Europe by sph on Tuesday October 18, 2022 @05:05AM (#33244718)
Oh, so there's people that don't know how to use containers, so they're bad? What kind of patronising, nanny state kind of argument is that?

Listen, I understand not liking containers. That's fine. But just say so, or try to give more concrete arguments to the table than "I saw a guy in a video creating an insecure container. Thus Docker creates ignorance."

As if configuring servers by hand isn't prone to misconfiguration or bad security practices. Perhaps we have namespaces today because people have been creating insecure, unmaintainable pet systems since the stone age, yet it doesn't save you from hurting yourself if you don't know what you're doing.

Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @05:16AM (#33244778)
> Oh, so there's people that don't know how to use containers, so they're bad? What kind of patronising, nanny state kind of argument is that?

You're building rest of your comment on this misinterpretation of my comment.

What I say is "Docker is easy, but it lowers the bar for making mistakes too much. Using Docker without enough information creates bigger problems, faster".

You can do a lot of mistakes, and fatal ones at that, while working on bare metal too. I'm managing systems for 15+ years, using Linux close to 20, and had my fair share on any abstraction level (metal, VM, container, etc.).

However, K8S and Docker is susceptible to create a whole set of problems, and more importantly without knowing it, until it's too late. VMs and bare metal fail relatively early and with more noise. If you do something wrong with your K8S deployment, you can't mend it, and need to re-deploy it.

I do not prefer Docker and K8S, and avoid the latter if I can, but I'm not an hard-line extremist against any of them. I also manage containers and a K8S cluster at work, too.

And no, I never patronize anyone. This is not my style. I just shared my experience, and told that "learning wrong things is easier with Docker", that's all.

I know excellent developers and sysadmins who do wonders with containers, too. Docker and K8S are sharp knives with no warnings on them. That's all.

Re:Codeberg a GitHub Alternative from Europe by sph on Tuesday October 18, 2022 @08:36AM (#33246235)
> Docker and K8S are sharp knives with no warnings on them.

And that's nothing wrong with that. You might also "hurt" yourself by installing software by hand.

Let's agree to disagree, this "it could be dangerous!" argument feels like doubling down on a weak position, but I honestly do not care about fighting someone over the internet about it. Your computer, your rules :-)

Re:Codeberg a GitHub Alternative from Europe by bayindirh on Tuesday October 18, 2022 @08:41AM (#33246286)
> And that's nothing wrong with that.

Yes, except poor documentation and lots of open secrets.

There is no need to fight. We're just discussing. We can do things differently and obtain the same brilliant or disastrous results regardless of the underlying abstraction layer/platform.

All approaches have advantages and disadvantages, so all takes are equally weak IMHO.

Have a nice day,

Cheers.

Re:Codeberg a GitHub Alternative from Europe by lapinot on Tuesday October 18, 2022 @05:25PM (#33254228)
Docker != containers. You're arguing as if the srht or generally the diy anti-kubernetes crowd was against containers. Or as if docker was the only mean of secure isolation. More likely than not you'll find them running bwrap, lxc, qemu, etc. You're missing your opponents here, it's very much the opposite of conservative sysadmins that went incompetent and don't understand the new tech. It's (imho) people that are fed up with the "click here to deploy a production server", the "infinite elastic scaling" and the fact that most of these false promises are hidden by bloated software. Nobody is saying that docker gets nothing right, just that most of the time others do more of the good and less of the bad.

> I saw a guy in a video creating an insecure container. Thus Docker creates ignorance

It's more than a guy. Once you see that kubernetes is corporate bloat you gotta ask for the responsability of the people making it. Yes it's creating people that don't understand how things are actually wired (and no, this is not a "natural" direction of history). It's making people dependent on complex stuff and it's actually hiding from mainstream knowledge the simple ways to do simple stuff. I recently had to help someone deploy stuff on an openshift hosting and i must say the experience is infuriating (not even talking about the runtime efficiency of managing the bazillion moving parts).

Re:Codeberg a GitHub Alternative from Europe by KronisLV on Tuesday October 18, 2022 @02:20PM (#33251697)
> I installed it on bare metal, set-up its TLS certificates and enabled native HTTPS. While searching for integration I found a video. The person installed Keycloak Docker image, and dropped an HTTPS proxy container in front of it to enable TLS/HTTPS.

> If this is not both bad practice and being misinformed about Keycloak in one step, I don't know what it is.

Would you mind sharing your argumentation about this, both in the context of Keycloak and in general?

In my eyes, enabling TLS on whatever application you want to run directly is almost always a bad choice, because you now need to deal with its unique implementation, as well as any vulnerabilities that the implementation could have. For example, even if all of your services run Java, you might find that a Spring application, a Spring Boot application, a Quarkus and a Vert.X application all have different ways of enabling it:

  Spring example: https://www.baeldung.com/spring-channel-security-https
  Spring Boot example: https://www.baeldung.com/spring-boot-https-self-signed-certificate
  Quarkus example: https://quarkus.io/guides/http-reference#ssl
  Vert.X example: https://github.com/eclipse-vertx/vert.x/blob/master/src/main/java/examples/EventBusExamples.java#L106 (couldn't even find docs)
And that's before you have parts of your stack running Node, Python, .NET, Ruby, PHP, Go or whatever else you might have to deal with. You can basically forget about automatically provisioning ACME certificates through Let's Encrypt, as well as being able to (easily) have all of your certificates in one place (at least for whatever that node needs), for easier renewals. This is especially noticeable when you want to serve dozens of different sites/applications from the same node.

In contrast, when you have a web server as your point of ingress, that then acts as a transparent reverse proxy in front of your applications:

  - it takes care of all of the certificates, in a common format, they're easy to renew or can be provisioned thanks to ACME
  - it can take care of other concerns, like path rewriting, HTTP to HTTPS redirects, rate limiting, additional caching or headers
  - your applications can talk to one another in the internal network through HTTP, whereas encryption there can be added transparently
  - with containers, this might be an overlay network where the clustering/networking solution takes care of internal certificates and rotates them often
So, how is that a bad choice? Some reasonable arguments that I can come up with are:

  - it's easier to screw things up and expose stuff directly (e.g. port mappings, instead of overlay networks)
  - one could feasibly argue that sometimes the application itself might want to look at the certificates and do something with them (e.g. expiry alerts)
  - one could also argue that reverse proxies won't necessarily be perfect and some software might not correctly deal with headers
Perhaps I'm missing something that's staring me in the face.
Re:Codeberg a GitHub Alternative from Europe by toastal on Monday October 17, 2022 @08:06PM (#33241299)
Speaking from the user side on CI usability, SourceHut, while not supporting a cache (which would be dope), has been pretty good with Nix and supports running NixOS unstable as an image for CI. This has been better for me than wasting steps building containers from Nix and then running the containers that some CIs require. I believe the SourceHut setup is in nixpkgs too to run yourself easily.
Re:Codeberg a GitHub Alternative from Europe by gavinray on Monday October 17, 2022 @11:31PM (#33242648)
Drew seemed irritated when I posted a Dockerfile for setting up the Hare language language compiler for development on the mailing list, trying to save other folks the effort.

https://gist.github.com/GavinRay97/e3c166c5ba24c2c1bc4a09d7b...

He said "Docker isn't a supported installation mechanism."

I wasn't aware of Drew's anti-docker stance, whoops.

Re:Codeberg a GitHub Alternative from Europe by ddevault on Tuesday October 18, 2022 @06:33AM (#33245286)
We're going to start looking into k8s and Docker soon as one of the candidates for infrastructure in our new datacenter rollout, but don't hold your breath. It will be a while before this bears any fruit and we may decide it's not worth it.
Re:Codeberg a GitHub Alternative from Europe by kodah on Tuesday October 18, 2022 @12:19PM (#33249790)
Orchestrators and runtimes should always be carefully chosen, if at all, so that's great. Sounds like you have some smart people working on it. My post was less about the tech and more around the culture that's been established at SourceHut with respect to those technologies. If I can't even join #sr.ht and ask about images or strategies others are using that's going to be an issue.
Re:Codeberg a GitHub Alternative from Europe by ddevault on Tuesday October 18, 2022 @12:30PM (#33249987)
#sr.ht is an on-topic channel for end-user support and development discussion. Since Docker/k8s has been rejected upstream, it's off-topic for #sr.ht. The channel needs to keep quiet and keep a high signal:noise ratio to make sure that users get attention when they need support. That said, you could discuss it on the off-topic channel, #sr.ht.watercooler, if you like.
Re:Codeberg a GitHub Alternative from Europe by throwup on Monday October 17, 2022 @06:03PM (#33240098)
Has ddevault ever commented on how much build minutes will cost out of alpha? From their pricing page it seems like a fixed monthly cost for unlimited minutes, which doesn't seem sustainable to me.
Re:Codeberg a GitHub Alternative from Europe by gbear605 on Monday October 17, 2022 @08:30PM (#33241492)
Right now it’s unlimited*, where the * means that you’re not allowed to abuse it by doing things like Bitcoin mining. So far the model seems to be financially sustainable (they release quarterly financial statements).