Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWT binary jars signing - "Invalid signature file digest for Manifest main attributes" #2189

Open
Phillipus opened this issue Jul 19, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Phillipus
Copy link

Download any SWT Binary file from https://download.eclipse.org/eclipse/downloads/drops4/R-4.32-202406010610/ (in the "SWT Binary and Source" section).

Unzip the file and then run the command jarsigner -verify swt.jar:

"java.lang.SecurityException: Invalid signature file digest for Manifest main attributes"

I don't know whether this is a known problem or if it's too late to do anything about it, but thought I'd report it anyway. Could be that a third-party app links to one of these and might get a security exception.

@Phillipus Phillipus added the bug Something isn't working label Jul 19, 2024
@Phillipus
Copy link
Author

Phillipus commented Jul 19, 2024

Actually, it's the same for the latest 4.33 I-builds.

Seems to be the case since 4.31. Verifying the jars from 4.30 gives jar is unsigned.

@Phillipus Phillipus changed the title 4.32 SWT binary jars signing - "Invalid signature file digest for Manifest main attributes" SWT binary jars signing - "Invalid signature file digest for Manifest main attributes" Jul 19, 2024
@merks
Copy link
Contributor

merks commented Jul 19, 2024

@MohananRahul
Copy link
Contributor

I think it is from swt build scripts.

@Phillipus
Copy link
Author

Phillipus commented Jul 19, 2024

Strange. The jars from I20240713-0130 are unsigned and the ones from I20240713-1800 are signed (although incorrectly).

@HannesWell
Copy link
Member

The signing of the native SWT binaries for Mac and Windows happens in
https://github.com/eclipse-platform/eclipse.platform.swt/blob/c3f74749040c35395336903cba360dbe2a354a1b/Jenkinsfile#L250-L269

Download any SWT Binary file from https://download.eclipse.org/eclipse/downloads/drops4/R-4.32-202406010610/ (in the "SWT Binary and Source" section).

But these jars are packaged in
https://github.com/eclipse-platform/eclipse.platform.swt/blob/c3f74749040c35395336903cba360dbe2a354a1b/binaries/pom.xml#L162-L187

and they are indeed not signed. But these packages are only created for the download section and are different from the artifacts in the p2 repository. The artifacts in the p2-repo are jar-signed (or at least shouled be singed) as usual.

@netomi
Copy link

netomi commented Sep 9, 2024

Could it be that the manifest is amended by some process after signing and thus breaking the digests of the manifest file?

@netomi
Copy link

netomi commented Sep 10, 2024

can the signing be disabled again till we figure out what messes with the manifest after signing?

it certainly gives a bad impression to release artifacts whose signature is bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants