SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Plugin signing

Open kashike opened this issue 8 years ago • 5 comments

As seen in Forge, mods are able to verify jar integrity using fingerprints/signatures: https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/fml/common/Mod.java#L151 https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/fml/common/event/FMLFingerprintViolationEvent.java https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/fml/common/FMLModContainer.java#L452-L540

I think this would be a useful thing to have as part of the Sponge API.

kashike avatar Nov 18 '15 22:11 kashike

Yeah I certainly agree, I was already talking to gabizou about this earlier. There are several validation steps that we could perform. Another thing we can do with Ore served plugins is check if plugins are up to date and notify the server admin if there are updates available.

Deamon5550 avatar Nov 18 '15 23:11 Deamon5550

@Deamon5550 The Ore stuff should probably go in a separate issue.

JBYoshi avatar Nov 19 '15 03:11 JBYoshi

I'm curious whether this is still valid to contain in the API. As I can see at the moment, many things have changed since 2015, and while Ore does have a system to verify the validity of a plugin's jar being signed, I'm not sure whether we should be relying on plugin jars being verified as signed and opening remote connects to grab the signature files for verification. @windy1 may have more input on this.

gabizou avatar Apr 18 '17 03:04 gabizou

My understanding is that the way that Ore signs is completely different to the forge jar signing system?

Will need someone to look into this if we plan on supporting it.

Personally, the large reason I think forge jar's were being signed was to prevent mod rehosting modifying the jar files, and having different mods and authors back each other up.

Do we have this problem yet? And if we did, I'm not sure we want the same solution.

ryantheleach avatar Feb 14 '18 05:02 ryantheleach

Perhaps instead of a per-plugin thing it could be a per-plugin-host thing, where the server by default only accepts signatures from the Ore public key.

pie-flavor avatar Aug 19 '19 02:08 pie-flavor