Adds bundled plugin trust and cross-platform native deployment

- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading
- builds and records the current plugin manifest only for official release builds
- deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest
- records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line
- documents the release flow, the supported runtimes and the plugin installer limits
This commit is contained in:
BinaryAlley committed 2026-11-28 18:00:00 +02:00
1 parent 3fb8912c7f
commit b30cbd6b9e
114 files changed
+2708 -243

No files matched your search

+9 -3
View File
@@ -44,9 +44,9 @@ The `Needs web` column is worth pausing on: the providers marked `yes` reach out
## Installing a plugin
Plugins are managed from the administration area, on the Plugins page, which only administrators can open. To install one, upload either a single `.dll` assembly or a `.zip` archive that holds the assembly together with any dependencies it needs.
Plugins are managed from the administration area, on the Plugins page, which only administrators can open. To install one, upload either a single `.dll` assembly or a `.zip` archive that holds the assembly together with any managed dependency assemblies it needs. Only `.dll` entries are installed from the archive; dependency manifests, native `.so` and `.dylib` libraries, and the original directory structure are not.
The uploaded files are placed in the plugin storage directory, `plugins` by default, and are picked up at the **next startup of the API**. In other words, after installing a plugin, restart the API server for it to take effect. Installing is a supervised operation: the archive is unpacked into a flat set of assemblies inside the plugin directory, and any directory component in the upload is stripped, so a crafted archive cannot write outside that directory.
The uploaded files are placed in the plugin storage directory, `plugins` by default, and are picked up at the **next startup of the API**. In other words, after installing a plugin, restart the API server for it to take effect. Installing is a supervised operation: the archive is unpacked into a flat set of `.dll` files inside the plugin directory, and any directory component in the upload is stripped, so a crafted archive cannot write outside that directory.
Once installed and restarted, the plugin appears on the Plugins page with its name, author, version and description.
@@ -59,6 +59,12 @@ Each plugin is listed with one of two states:
Nemera reconciles the list at every startup. A plugin that is no longer present in the storage directory is forgotten, together with the per library settings that referenced it.
Every official release of Nemera embeds the SHA-256 checksum of each bundled plugin's main assembly, plus an append-only list of checksums from earlier official releases. A plugin whose main assembly matches an entry is marked **Official**. The checksum covers only that main assembly; the libraries and native files shipped next to it are not checksummed. The list keeps older bundled versions recognized, so shipping a new version does not make an older one unofficial. A checksum can be revoked through the project's deny list; a revoked binary is no longer marked Official, but it still loads.
The **Official** mark is meaningful only when Nemera itself came from an official release published by the project. If you built Nemera yourself or are running a modified build, that build does not generate the current release's trust entries, so a plugin you rebuild locally is not marked Official unless it matches a binary from an earlier official release. Nemera does not call home to check plugin checksums against a server-side list, because that would conflict with the project's no outbound calls policy. The release channel is the trust anchor instead.
The **Official** mark is informational. It never prevents a plugin from loading, and plugins always work whether they are marked or not.
## Uninstalling a plugin
There is no uninstall button. To remove a plugin, delete its assembly (and any files that came with it) from the plugin storage directory and restart the API. The plugin then disappears from the list, and the settings that enabled it for your libraries are cleaned up.
@@ -81,7 +87,7 @@ The shipped plugins use these settings for practical things, such as the base ad
## Writing your own plugin
Anyone can write a plugin, and it is the intended way to teach Nemera about a new source or a new format. A plugin is a .NET assembly targeting the same framework as the server, referencing the `Nemera.Plugins.Contracts` project. To be a plugin it implements `IPlugin`, which describes it and lists its settings, and `IPluginServiceRegistrator`, which wires its services up. To contribute a capability it also implements one or more of `IMetadataProvider`, `IArtworkProvider` and `IBookReader`. Package the built assembly, and any dependencies, into a ZIP and install it like any other plugin.
Anyone can write a plugin, and it is the intended way to teach Nemera about a new source or a new format. A plugin is a .NET assembly targeting the same framework as the server, referencing the `Nemera.Plugins.Contracts` project. To be a plugin it implements `IPlugin`, which describes it and lists its settings, and `IPluginServiceRegistrator`, which wires its services up. To contribute a capability it also implements one or more of `IMetadataProvider`, `IArtworkProvider` and `IBookReader`. Package the built assembly, and any managed dependency assemblies, into a ZIP and install it like any other plugin. Only `.dll` files are installed from an archive, so the upload flow does not support plugins that need native `.so` or `.dylib` libraries.
## Security