fix(build): disable OpenAPI key persistence
CI - Build & Test / Backend (.NET) (push) Failing after 18s
CI - Build & Test / Backend integration (PostgreSQL/Toxiproxy) (push) Failing after 18s
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled
CI - Build & Test / Deploy Nexus (push) Has been cancelled
CI - Build & Test / Backend (.NET) (push) Failing after 18s
CI - Build & Test / Backend integration (PostgreSQL/Toxiproxy) (push) Failing after 18s
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled
CI - Build & Test / Deploy Nexus (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Nexus.Api.Extensions;
|
||||
using Nexus.Api.Http;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.DataProtection.KeyManagement;
|
||||
using System.Reflection;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@@ -14,6 +15,8 @@ if (isOpenApiGeneration)
|
||||
"openapi-contract-generation-only-000000000000000000";
|
||||
builder.Services.AddDataProtection()
|
||||
.UseEphemeralDataProtectionProvider();
|
||||
builder.Services.Configure<KeyManagementOptions>(options =>
|
||||
options.AutoGenerateKeys = false);
|
||||
}
|
||||
|
||||
// --- Service Registration ---
|
||||
|
||||
Reference in New Issue
Block a user