News for hackers. Stuff that matters.
Re:Migrating old artifacts from JCenter to MavenCentral by vbezhenar on Thursday February 11, 2021 @05:24AM (#26100034)
I wish Java would move to more distributed artifact storage. Just specify URL and let your build tool download library there. Why does it have to be some kind of central storage? It's not like they perform some curating or static analysis or something like that.
Re:Migrating old artifacts from JCenter to MavenCentral by flurdy on Thursday February 11, 2021 @05:38AM (#26100117)
Mostly to avoid a situation like this https://www.bleepingcomputer.com/news/security/researcher-ha...

(This week's hack using npm, gems etc to trick non-java build tools to not use internal repos but the hacker's compromised packages instead)

Re:Migrating old artifacts from JCenter to MavenCentral by kuschku on Thursday February 11, 2021 @06:29AM (#26100398)
And with signed artifacts that wouldn't have happened.

https://docs.gradle.org/current/userguide/dependency_verific...

> Note that a variation of a compromised library is often name squatting, when a hacker would use GAV coordinates which look legit but are actually different by one character, or repository shadowing, when a dependency with the official GAV coordinates is published in a malicious repository which comes first in your build.

Best part is that the documentation literally describes the attack used here.

Another example where npm and co are reinventing the same issues that Java has already solved long ago.

Re:Migrating old artifacts from JCenter to MavenCentral by TheRealBrianFox on Friday February 12, 2021 @01:34PM (#26116872)
Actually we do validate several aspects of things being published to Central and always have. There have been many other repos that have come and gone over the years, many of them without the same standards and it ultimately creates a federated tragedy of the commons. More about the history here https://blog.sonatype.com/why-namespacing-matters-in-public-...
Re:Migrating old artifacts from JCenter to MavenCentral by hocuspocus on Thursday February 11, 2021 @07:24AM (#26100726)
> Just specify URL and let your build tool download library there.

All build tools let you do just that. Many companies set up internal mirrors and encourage/force employees not to use Maven central and third party repositories. In fact, Maven central will blacklist IPs that generate too much traffic.

Re:Migrating old artifacts from JCenter to MavenCentral by stepbeek on Thursday February 11, 2021 @06:24AM (#26100369)
You have to prove ownership of a domain to publish to maven central fwiw.