Better HN
topnewbestaskshowjobs
Log inSign up

pdonis

18,530 karma · joined Aug 9, 2010 (16y ago) · 9,510 submissions

Email me at peterdonis {at} alum {dot} mit {dot} edu
Submissions

comment 1w ago · link · parent

I've always liked Bertrand Russell's comment on Kant in History of Western Philosophy:

"Hume, with his criticism of the concept of causality, awakened him from his dogmatic slumbers--so at least he says, but the awakening was only temporary, and he soon invented a soporific which enabled him to sleep again."

comment 1w ago · link · parent

> The thing done today weren't even computationally possible a decade ago.

Not the things that are breaking, no. The FAA was doing ATC a decade ago. We had email and cloud servers a decade ago. We had bank websites a decade ago. The scale of those things today is perhaps larger than a decade ago, but not enormously larger; indeed, the increase in scale in those things is much smaller than the increase in computing power in the world from a decade ago. So these things should have gotten more reliable--but they haven't.

comment 1w ago · link · parent

> the party that does that binding

In other words, you only trust parties to do the binding whose key management you find to be acceptable, and "I keep my private key on my local machine that nobody else ever has access to" is not acceptable. Correct?

> PyPI also supports self-hosted GitLab instances for organizations

How does PyPI verify that those organizations are doing key management in a way you find acceptable?

comment 1w ago · link · parent

> The Web PKI does not allow self-signed certificates.

That's not what the rest of your post says. The rest of your post says that you can use one for your website--which of course is true since no one can stop you if you insist on doing it--but that the rest of the Web infrastructure will treat your certificate poorly.

I am simply pointing out that it looks to me like PyPI's attestation mechanism is taking a similar viewpoint to the Web infrastructure in this respect.

> You can embed a signature into a Python package if you want.

I'm talking about the attestation mechanism. That mechanism, unless I'm missing something, does not support self-signed certificates.

comment 1w ago · link · parent

> the Web PKI

The Web allows self-signed certificates. I can put one on my website and people can use HTTPS to connect to it that way. And then it's up to each person who goes to my website to decide how secure my self-signed certificate is, as opposed to one that comes from a CA.

But of course the browser vendors don't look at it that way, they'll put serious warnings up to the user if they see a self-signed certificate, which they won't for a CA-signed certificate. That's basically your thought process as well, yes? Except that since you control the equivalent of the "website" and its certificate here (namely PyPI and its upload process), you won't even allow the equivalent of a self-signed certificate at all.

comment 1w ago · link · parent

So basically, you are viewing an attestation as making some kind of promise about how carefully the attester handles their private keys. And you're willing to trust a small number of large tech companies to do that, but you're not willing to trust individuals like me to do it. Am I reading that right?

comment 1w ago · link · parent

Ok, thanks for the information.

comment 1w ago · link · parent

> it's way more viable to review how Github or Gitlab or Codeberg handles key material and security

Only if you already trust them.

> dropping the signing key on disk on whatever servers you want to run your builds from

I run my builds on my local machine. The private key I would use to sign them if PyPI supported that is not anywhere in the repo I'm using.

Of course you would have to trust that I'm telling the truth in what I just said. But, as above, you also need to trust what the large tech forges are telling you in order to review how they handle their keys.

comment 1w ago · link · parent

> this type of attestation is hard to weigh as a trust signal, vs the cloud CI version

In the sense that I'm not a large corporation and nobody else is auditing my personal computer, yes, that's true. Note, though, that large corporations are also subject to nefarious actors misusing their infrastructure. What if a rogue employee hacks their internal system? Or Russia or China manages to get a backdoor into it?

In any case, all this doesn't make the method I described impossible. It just means that attestations produced by an individual workflow need to be clearly labeled to distinguish them from attestations produced using a tech forge's workflow, so people will understand what, specifically, is being attested to. Then people could weigh each trust signal as they choose.

> Hand PGP signing

To be clear, I wasn't talking specifically about this method of signing with a personal key. I agree there are lots of issues with PGP as an overall system. I was only talking about the general idea of having some way for individuals to independently generate an attestation without having to go through a tech forge's workflow.

comment 1w ago · link · parent

> There is no expectation of privacy in public spaces.

The devices the article is talking about don't stop recording when you exit a "public space". They record everywhere.

comment 1w ago · link · parent

They can't. But they can't tell for sure if large tech corporations are doing that either. Data breaches are a thing. Auditing Github workflows doesn't prevent them.

comment 1w ago · link · parent

> email attestations

From what I can gather from the github issue that was linked to, those would still require the email identity to be vouched for by a provider. (Though if whoever already is hosting my email could be a "provider", that would at least greatly expand the list of providers from the current small number of forges.) There doesn't seem to be any way for me to, for example, link a public key I generate myself to an email address that PyPI already has on file for me.

comment 1w ago · link · parent

So are there any plans for PyPI to do this?

comment 1w ago · link · parent

> nobody should care or even think about this stuff.

Does that mean I, as someone who has projects on PyPI, shouldn't care if I am unable to provide any attestations because I don't want to have to go through one of the recognized forges?

> Authenticity and minimally-scoped credentials should be ambient properties of a system

But if the only way to get them is to go through one of the recognized forges, then they're not "ambient properties" of just PyPI alone, because there's no way for me to use them just with PyPI alone.

comment 1w ago · link · parent

> what they are is a cryptographic signature over a set of claims, which allows for authenticated auditing of a project's state over time.

Which is great--but does not in any way require that the attestation can only be produced by working through one of a small set of recognized "forges". You could do this just as easily by, for example, letting me upload to my PyPI account a public key (the same as forges like Github do to allow SSH access), and then letting me sign builds that I upload using the corresponding private key. But that kind of workflow is not being supported. Why not?

comment 1w ago · link · parent

Thanks, I'll comment further in that subthread.

comment 1w ago · link · parent

That's easy to handle: if the signature isn't secure, it doesn't count as an attestation. I have no problem with putting the onus on the person doing the signing to do it right. But at present doing it right on your own is not even an option. Only going through one of the tech giants is.

comment 1w ago · link · parent

Is "a public key that I personally upload to my PyPI account, using the credentials you already have that allow me to use that account" on the list of targets that will ever be supported?

If not--i.e., if only recognized "forges" are ever going to be supported--why not?

comment 1w ago · link · parent

So what? Ultimately the trust model is supposed to be there to validate that this latest blob of code is coming from the same source as the last blob of code for the same project, authenticated with the same public key. And that's all it is telling you, and all that it can tell you, whether the attestation is generated during a Github workflow or by a program running on my personal computer that you can't see. It is not telling you that this latest blob of code is safe and free from problems. It's just telling you that it comes from the same source.

comment 1w ago · link · parent

It would be even nicer if there were a way to have an attestation without publishing with a workflow controlled by one of the tech giants. There's no way for me, someone who has had a PyPI account for many years and has used it for all that time to upload packages, to attach my own public key to my PyPI account and then sign uploaded distributions with my private key so the signature can be verified and count as an attestation.

comment 1w ago · link · parent

> There's more to it if you start reading though.

I agree.

comment 1w ago · link · parent

> One could infer that the core of the issue is that Tim started to ask questions about why the board would grant itself additional powers (see bylaws), advocating for transparency and accountability. They were not happy about that and locked the discussion.

It's not even much of an inference. The discussion went sideways because Steering Council members in the thread kept responding to Tim's questions about why the proposed bylaws change was being made (and pushed through very quickly with no real discussion) by saying "there are reasons, but they're secret and we can't talk about them, trust us", and getting very hot and bothered when that answer was not accepted (and not just by Tim, there were multiple people in the thread who were not satisfied with it and explained why at some length).

After quite a bit of back and forth, one SC member (I think Thomas Wouters but I'm not sure) admitted that there were specific PSF Fellows (giving no names) who the Board planned to use this new power to remove. And it's at this point that Tim's ban becomes even more of a footgun on the PSF's part, because when Tim saw this, he said that knowing it made him more likely to vote for the proposed bylaw change, since apparently the need for it was not just hypothetical. (Others in the thread took a much more negative view of the revelation than Tim did.) So the whole discussion that Tim prompted ended up with Tim supporting what the PSF were doing in this case--which should have been a cue for the PSF to say, hey, good, I'm glad we've addressed your concern and you're ok with this now. But instead--they banned him.

comment 1w ago · link · parent

> It was definitely for frivolous reasons.

I'm not saying a reasonable person looking in from the outside couldn't think they were frivolous. I'm just saying the PSF leadership themselves didn't think they were.

I personally, looking in from the outside, wouldn't necessarily describe the reasons as "frivolous", but I think "unjustified" certainly fits the bill.

comment 1w ago · link · parent

> So you think

The OP said:

"we also ask the candidate to open a PR"

So I think the OP meant to have the candidate, um, open a PR. Which is not the same thing as making a commit and pushing it to a remote. Maybe you always conflate those operations, but that doesn't make them the same operation. If the OP actually meant that they ask the candidate to make a commit, push it to the remote, and then open a PR, I would have expected the OP to say, um, all of those things, instead of just the last one.

I couldn't say how the OP expected the candidate to open a PR, since I don't know what their standard workflow is. There are ways of doing it from the CLI, as well as through the web interface, as well as through various IDEs.

> I started out by assuming this was some kind of good-faith disagreement, but I guess you're just trying to be funny.

Please save your patronizing for another time. And stop trying to put words in my mouth.

comment 1w ago · link · parent

> If we had stuck with 0 and 1, we would have avoided all this confusion.

I don't see how. Indeed, using 0 and 1, the int values, as if they were boolean false and true created more confusion. First, int has more values than just 0 and 1--and all of them are "truthy". Second, treating 0 and 1 as booleans is still treating boolean-ness as a noun--but also confusing that with treating it as an adjective for those int values.

PEP 285, which introduced the bool type, gives other rationales as well:

https://peps.python.org/pep-0285/

comment 1w ago · link · parent

> When I tell my LLM to "open a PR for those changes" (which is how I do it nowadays), my LLM understands that what I mean is "make a commit, push it to a remote and raise a PR".

This makes it seem like all of those things are part of a single operation to you. That doesn't make sense to me.

On the occasions where I've submitted a PR to a project (anywhere, not just on Github), making the commit was not part of the same operation. I'd already made the commit and satisfied myself that it captured everything I wanted, before making the PR. I don't see those things as part of a single operation. I don't think the poster you were responding to does either.

comment 1w ago · link · parent

> wouldn't you want them to at least know the steps of `git add` -> `git commit` -> `git push`

The GP said "open a PR", not "make a commit and push it to a remote".

comment 1w ago · link · parent

I don't think the ban issue is as cut and dried as you appear to believe. Of course the PSF didn't think their reasons were "frivolous", but that doesn't mean they were reasonable reasons either.

comment 1w ago · link · parent

> it became possible to compare things as equal to True or False

Not if you just use the objects as their natural types. For example:

    >>> "" == False
    False
    >>> "a" == True
    False
> "if x" and "if x == True" are now very similar, but subtly different, ways to express the same thing.

No, they're not. See above.

comment 1w ago · link · parent

But None has its own type; it's not a value of any of the other primitive types. Which makes sense if you use None to represent "no data present" vs. "data present, value is the null value".
12345
317