Better HN
topnewbestaskshowjobs
Log inSign up

SethMLarson

1,019 karma · joined Jun 19, 2017 (9y ago) · 169 submissions

Security Developer-in-Residence at the Python Software Foundation, PSF Fellow, Minnesoootan, he/him

https://sethmlarson.dev

Submissions

comment 2y ago · link · parent

This is pure awesomeness and reminds me of how I got started programming: making games! Love it :)

comment 2y ago · link · parent

Oh really, podcasting 2.0 has payments? I need to look at that.

A big motivator for me is that I know I spend a lot on web creators already, but I want to spend money across more creators without necessarily linearly increasing my spend. Managing tons of tiny subscriptions is much harder without book-keeping technology. Having something machine-readable to help with that mission would be great.

63.

How do I pay the publisher of a web page?(sethmlarson.dev ↗)

4 points · by SethMLarson · 2y ago · 2 comments

comment 2y ago · link · parent

Hello! I believe I'm one of the "manifested" security experts you're hinting at :)

Good security doesn't demand perfection, that's why security is both prevention and preparedness. The response from our admin was in every way beyond what you'd expect from many other orgs: prompt response (on the order of minutes), full audit of activity for the credential (none found), and full public disclosure ahead of the security researcher's report.

> JFrog also discovered multiple malicious package exploits later.

If you're referencing malicious packages on PyPI then yes! We want to keep PyPI freely open to all to use, and that has negative knock-on effects. Turns out that exploiting public good code repositories is quite popular, but I maintain that the impact is quite low and that our ability to respond to these sorts of attacks is also very good due to our network of security engineers and volunteers who are triaging their reports. Thanks to the work of Mike Fiedler (quarantining packages, API for reporting malicious packages, better UI for triagers) our ability to respond to malicious packages will become even better.

> Now we get a Github centric new buzzword that could be replaced by trusted SHA256 sums.

In a way, this feature is what you're describing but is easier to automate (therefore: good for you as a user) and is more likely to be correct because every attestation is verified by PyPI before it's made available to others (which is also good for users). The focus on GitHub Actions is because this is where many Python projects publish from, there is little incentive to create a feature that no one will use.

> Python is also big on business speak like SBOM.

Indeed, there is legislation in many places that will require SBOMs for all software placed in their markets so there is plenty of interest in these standards. I'm working on this myself to try to do the most we can for users while minimizing the impact this will have on upstream open source project maintainers.

comment 2y ago · link · parent

Congratulations to everyone involved in this work! This is an incredible building block for not just supply-chain security both inside and downstream of the PyPI ecosystem but also for data analysis of open source projects (through strong linkage back to source repositories). Thank you all <3

comment 2y ago · link · parent

Because every CI/ID provider has a different set of claims and behaviors that would constitute a "secure" policy for verification. If there was one singular way to do that then we could, but there isn't yet so PyPI needs to onboard providers piecemeal. The work to add a new provider is not massive, the reason there are not tons of providers isn't because the work is hard but rather because people are voting with their feet so Github and Gitlab make sense as initial providers to support.

comment 2y ago · link · parent

Making billions but spending trillions for no moat (GPUs and models aren't moats) means that the only moat they have are users. Users aren't paying enough to offset costs, the only way to get value from non-subscription users for their scale is through ads.

comment 2y ago · link · parent

I'm saying that by moving towards explicit "search" and "linking to sources" they have set the stage for being able to charge to be recommended by their search features (ie, ads and pay-to-rank, same as Google search).

There aren't any ads in their demo, we haven't seen the real deal yet, but I'll be watching HN for that day.

comment 2y ago · link · parent

Hah, OpenAI is becoming an ads business too. So much for something new, same old funding model for every centralized platform on the web.

70.

How to Export OPML from Omnivore(sethmlarson.dev ↗)

1 points · by SethMLarson · 2y ago · discuss

comment 2y ago · link · parent

Hello! Great question.

I tried to cover this in PEP 761, this comes down to a few things:

Python release managers don't want to use PGP due to the ergonomic burden. They are volunteers too, after all. This is the key point, and we are making that sentiment clear early (and with an extendable timeline also defining who gets to choose: Steering Council) so that everyone else can plan and take action.

There have been past efforts to stop using PGP that failed likely due to a lack of alternative. Now there is an alternative, but having an alternative is not enough. Verifiers need to start using the new method. It's been 2 years and no Linux distributions support verifying with Sigstore.

From my perspective there has been little to no work to look into Sigstore and whether it's usable by Linux distros. There's a gap in understanding about how Sigstore works in some places. I would not have this perspective without starting this conversation, I've been sharing all the feedback with Sigstore folks along the way.

I hope this provides more context into the "why". This is why "do both forever" is not a solution for us.

comment 2y ago · link · parent

Potential solution? Works for me but some folks like history: https://sethmlarson.dev/youtube-without-youtube-shorts

comment 2y ago · link · parent

I've authored a proposal to deprecate the expectation of PGP signatures for future CPython releases. We've been providing Sigstore signatures for CPython since 3.11.

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

comment 2y ago · link · parent

Happily using pip, venv, and pip-tools for every project and still finding them more than suitable. They might not have the marketing budget or pizazz of others, but if you're looking for effective and boring tools that get the job done so you can solve more interesting problems they work just fine.

comment 2y ago · link · parent

Was great getting to meet you in person Kati! :) This is an awesome recap of PyCon US, so much happened!!

76.

GitHub Artifact Attestations public beta(github.blog ↗)

1 points · by SethMLarson · 2y ago · discuss

77.

Thanks Andres Freud(github.com ↗)

3 points · by SethMLarson · 2y ago · discuss

comment 2y ago · link · parent

Love the "on a business card" format, thank you for creating this and sharing!

79.

Software Bill-of-Materials documents are now available for CPython(pyfound.blogspot.com ↗)

2 points · by SethMLarson · 2y ago · discuss

80.

The paradox of open: Policies for the Digital Commons(paradox.openfuture.eu ↗)

1 points · by SethMLarson · 2y ago · discuss

comment 2y ago · link · parent

Enshittification is a possible outcome for all platforms.

comment 2y ago · link · parent

Oh wow, thanks for this story! Would love to hear more if you have time :) Good luck with testing it out.

Note that we found an issue w/ emitting an InsecureRequestWarning by default. The request is perfectly secure, it's just we aren't telling the ConnectionPool that information (see: https://github.com/urllib3/urllib3/issues/3331)

comment 2y ago · link · parent

Correct! The examples we used were making requests to httpbin.org, but I also was able to query GitHub's API :)

`data = urllib3.request("GET", "https://api.github.com").json()`

comment 2y ago · link · parent

Browsers limit the ability for these platforms to use raw sockets, there simply is no API for it. The best that can be done /today/ is to use WebSockets, which are not the same thing and can't be used for HTTP requests without the server expecting a WebSocket connection:

https://github.com/emscripten-core/emscripten/issues/5196#is...

comment 2y ago · link · parent

Lead maintainer of urllib3 here: We're tracking all the options for how we can make the experience better for folks looking to use Python in the browser. Today our biggest blocker is that there's no socket or TLS APIs for Emscripten/WASI. If those were to become available we'd jump on them right away :)

I think the biggest benefit of a foundational project like urllib3 getting browser support is that /many/ Python projects are built on top of urllib3 and many of them likely work in browsers now that urllib3 works in the browser.

For example, Requests is built on top of urllib3 and now gets browser support for free! And this is recursive, how many projects use Requests (spoiler: many). Pretty exciting IMO :)

86.

Python HTTP library 'urllib3' now works in the browser(github.com ↗)

108 points · by SethMLarson · 2y ago · 32 comments

comment 2y ago · link · parent

Nice! This is similar to the solution here: https://github.com/python-trio/unasync

88.

Platform Tilt(mozilla.github.io ↗)

404 points · by SethMLarson · 2y ago · 111 comments

comment 2y ago · link · parent

Isolation and ephemerality can still be accomplished using virtualization while providing the benefits of self-hosted resources.
123456