Live data from Hacker News

Open source security at Astral

astral.sh

21–30 of 120 posts

Re: Open source security at Astral

#21
If anyone from Astral sees this: at this level of effort, how do you deal with the enormous dependence on Github itself? You maintain social connections with upstream, and with PyPA... what if Github is compromised/buggy and changes the effect of some setting you depend on?

Re: Open source security at Astral

#22
post #19

The open source ecosystem has come very far and proven to be resilient. And while trust will remain a crucial part of any ecosystem, we urgently need to improve our tools and practices when it comes to sandboxing 3rd party code. Almost every time I bump into uv in project work, the touted benefit is that it makes it easier to run projects with different python versions and avoiding clashes of 3rd dependencies - basic…

meh not always. I do use uv IN docker all the time, its quite handy

Re: Open source security at Astral

#23
post #22
post #19

The open source ecosystem has come very far and proven to be resilient. And while trust will remain a crucial part of any ecosystem, we urgently need to improve our tools and practices when it comes to sandboxing 3rd party code. Almost every time I bump into uv in project work, the touted benefit is that it makes it easier to run projects with different python versions and avoiding clashes of 3rd dependencies - basic…

meh not always. I do use uv IN docker all the time, its quite handy

Honest question - what are the main benefits for you when you use it in docker?

ps. I feel like I've been doing python so long that my workflows have routed around a lot of legit problems :)

Re: Open source security at Astral

#24
post #20
post #16

Earlier quoted context omitted.

I don't see the connection though?

Nix provides declarative, reproducible builds. So, ostensibly, if you had your build system using Nix, then some of the issues here go away. Unfortunately, Nix is also not how most people function. You have to do things the Nix way, period. The value in part comes from this strong opinion, but it also makes it inherently niche. Most people do not want to learn an entire new language/paradigm just so they can get this…

There are different notions of "reproducible". Nix does not automatically make builds reproducible in the way that matters here:

https://reproducible.nixos.org

It is still good at that but the difference to other distros is rather small:

https://reproducible-builds.org/citests/

Re: Open source security at Astral

#26
post #23
post #22

Earlier quoted context omitted.

meh not always. I do use uv IN docker all the time, its quite handy

Honest question - what are the main benefits for you when you use it in docker? ps. I feel like I've been doing python so long that my workflows have routed around a lot of legit problems :)

Main reason I now use uv is being able to specify a cool down period. pip allows it but it's with a timestamp so pretty much useless..

And that doesn't prevent me from running it into a sandbox or vm for an additional layer of security.

Re: Open source security at Astral

#27
post #26
post #23

Earlier quoted context omitted.

Honest question - what are the main benefits for you when you use it in docker? ps. I feel like I've been doing python so long that my workflows have routed around a lot of legit problems :)

Main reason I now use uv is being able to specify a cool down period. pip allows it but it's with a timestamp so pretty much useless.. And that doesn't prevent me from running it into a sandbox or vm for an additional layer of security.

> pip allows it but it's with a timestamp

A PR to be able to use a relative timestamp in pip was merged just last week

https://github.com/pypa/pip/pull/13837/commits

Re: Open source security at Astral

#28
The only binaries of uv in the world you can get that were full source bootstrapped from signed package commits to signed reviews to multi-signed deterministic artifacts are the ones from my teammates and I at stagex.

All keys on geodistributed smartcards held by maintainers tied to a web of trust going back 25 years with over 5000 keys.

https://stagex.tools/packages/core/uv/

Though thankful for clients that let individual maintainers work on stagex part time once in a while, we have had one donation ever for $50 as a project. (thanks)

Why is it a bunch of mostly unpaid volunteer hackers are putting more effort into supply chain security than OpenAI.

I am annoyed.

Re: Open source security at Astral

#29
post #16

Lengths people will go to rediscover Nix/Guix is beyond me

I don't see the connection though?

Nix, if not used incorrectly (and they really make it hard to use it, both correctly and incorrectly lol), gives you reproducible and verifiable builds.

Unfortunately I have to agree with the sibling comment that it suffers from poor naming and the docs are very hard to grok which makes it harder to get traction.

I really hate the idea of `it's all sales at the end of the day` but if Nix could figure how to "sell" itself to more people then we would probably have less of those problems.

Re: Open source security at Astral

#30
post #6

One (amongst other) big problem with current software supply chain is that a lot of tools and dependencies are downloaded (eg from GitHub releases) without any validation that it was published by the expected author. That's why I'm working on an open source, auditable, accountless, self hostable, multi sig file authentication solution. The multi sig approach can protect against axios-like breaches. If this is of inte…

> without any validation that it was published by the expected author

SPOF. I'd suggest use automatic tools to audit every line of code no matter who the author is.

Post reply on HN