Skip to content

Drop dependency signatures from the shaded blobstore-migrator jar - #9360

Open
rzo1 wants to merge 1 commit into
masterfrom
fix-blobstore-migrator-signatures
Open

rzo1 wants to merge 1 commit into
masterfrom
fix-blobstore-migrator-signatures

Conversation

@rzo1

@rzo1 rzo1 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

The shaded blobstore-migrator jar (external/storm-blobstore-migration) keeps the signature files of a signed dependency (META-INF/BCRSA204.SF and .RSA from BouncyCastle). They do not match the shaded jar, so the JVM rejects it and the migrator cannot start:

$ java -jar blobstore-migrator-3.3.0-SNAPSHOT.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

This adds the signature filter that the other shaded modules (e.g. storm-kafka-migration, storm-starter) already use. With it, the jar starts and prints its usage.

artifact:compare also fails on this jar for the same reason, so the reproducible-builds check in the follow-up PR depends on this fix.

The stale BouncyCastle signature files made the jar fail to start.
@rzo1 rzo1 added this to the 3.3.0 milestone Dec 4, 2026
@rzo1 rzo1 added the bug label Dec 4, 2026
@rzo1
rzo1 requested review from GGraziadei and reiabreu December 4, 2026 09:30

@reiabreu reiabreu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review was generated with the help of an LLM (Claude).

Claude built the jar locally with and without this change. Without it, the jar contains META-INF/BCRSA204.SF/.RSA and java -jar fails with Invalid signature file digest. With it, both files are gone and the migrator starts and prints its commands. The filter matches the other shaded modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants