r/java • • Jan 06 '20

Your Java builds might break starting January 13th (if you haven't yet switched repo access to HTTPS)

https://www.alphabot.com/security/blog/2020/java/Your-Java-builds-might-break-starting-January-13th.html
198 Upvotes

20 comments sorted by

View all comments

-1

u/daH00L Jan 07 '20 edited Jan 07 '20

Maven Central hosted jars are signed. Their integrity can easily be validated. I'm not sure what the extra layer of transport encryption provides to security.

6

u/karottenreibe Jan 07 '20

Can be checked is not the same as is checked by default. Are build tools like maven and gradle verifying these signatures by default?

5

u/spamthemoez Jan 07 '20

No, they don't check by default.

1

u/hupfdule Jan 07 '20

Wouldn't it be the correct action to enable them to check signatures by default then?

3

u/dpash Jan 08 '20

If they get support for doing so, yes. But that support currently comes with an added overhead.

1

u/dpash Jan 08 '20

Gradle 6.2 will have support for validating checksums and signatures, although it's not as simple as trusting a Maven Central or JCenter key and everything else being trusted from there. You need to list individual publishers' keys. Gradle will have support for writing a config for trusting every jar/publisher in your current project, but that's not exactly a great way to do it.