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

@@ -1,14 +1,15 @@
#region ========================================================================= USING =====================================================================================
using Microsoft.Extensions.DependencyInjection;
using Nemera.Application.Common.DataAccess.Entities.Plugins;
using Nemera.Application.Fixtures.Common.DataAccess.Entities.Plugins;
using Nemera.DataAccess.Core.UoW;
using Nemera.Domain.SharedKernel.Common.Enums.Plugins;
using Nemera.Presentation.Api.Core.Endpoints.Plugins.GetPlugins;
using Nemera.Presentation.Api.IntegrationTests.Common.Setup;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Json;
@@ -66,9 +67,16 @@ public class GetPluginsEndpointTests : IClassFixture<AuthenticatedNemeraApiFacto
// Assert
response.EnsureSuccessStatusCode();
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
List<Nemera.Contracts.Responses.Plugins.PluginResponse>? plugins = await response.Content.ReadFromJsonAsync<List<Nemera.Contracts.Responses.Plugins.PluginResponse>>(_jsonOptions);
string content = await response.Content.ReadAsStringAsync();
List<Nemera.Contracts.Responses.Plugins.PluginResponse>? plugins = JsonSerializer.Deserialize<List<Nemera.Contracts.Responses.Plugins.PluginResponse>>(content, _jsonOptions);
Assert.NotNull(plugins);
Assert.Contains(plugins!, plugin => plugin.Id == pluginId && plugin.Name == "Test Plugin");
using (JsonDocument document = JsonDocument.Parse(content))
{
JsonElement seededPlugin = document.RootElement.EnumerateArray().Single(element => element.GetProperty("id").GetGuid() == pluginId);
Assert.True(seededPlugin.TryGetProperty("isOfficial", out JsonElement isOfficial));
Assert.False(isOfficial.GetBoolean());
}
}
[Fact]