Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Blog Pricing

Nicholas Zakas

๐Ÿ‘ค Speaker
455 total appearances

Appearances Over Time

Podcast Appearances

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

It's just not all the way there yet.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

So trusted publishing is basically you go into NPM and for your individual package,

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

you say, I want to enable trusted publishing from this source code repository specifically, and then this workflow specifically, the exact name of the file.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And when you enable that, then you can

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

upload your GitHub Actions workflow file into your repository and set the permissions for ID token.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And then GitHub Actions will, when it runs that workflow,

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

will request a token on your behalf from npm and then bring it back in and use it just for as long as the workflow is running and then that token is no longer useful anymore so basically it's on demand one-time use tokens for npm is that uh used by a lot of maintainers is it well it's not fully implemented though right

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

Well, so it's partially implemented now without two-factor authentication.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

That's the big thing that's missing.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And there are a lot of people who are moving to it specifically because they don't want to have to deal with rotating tokens every 90 days.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

That's just a lot of work.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And especially if you consider, I think for me, I might be a maintainer for something like

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

100 packages, maybe more than that.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

Some of them are pretty small and inconsequential, but sometimes those are the ones that make their way into larger dependency trees and you can get in trouble with those.

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And so the initial reaction from myself and a lot of maintainers, we read the post about the changes,

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

was like, how are we going to scale this?

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

How am I going to update all of these packages to do all of this?

The Changelog: Software Development, Open Source
Securing npm is table stakes (Interview)

And there was no batch operation to update a bunch of packages.