Added data protection key persistance
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-13 23:51:21 +02:00
parent ec4c9d9689
commit 5204816370
3 changed files with 11 additions and 5 deletions
+3 -2
View File
@@ -18,13 +18,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="LiteCharms.Features" Version="1.125.0" />
<PackageReference Include="LiteCharms.Features" Version="1.127.0" />
</ItemGroup>
<!-- UI -->
<ItemGroup>
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.125.0" />
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.127.0" />
<!-- Global Usings -->
<Using Include="Blazored.Toast.Services" />
@@ -54,6 +54,7 @@
<Using Include="Microsoft.JSInterop" />
<Using Include="System.Globalization" />
<Using Include="System.Security.Claims" />
<Using Include="Microsoft.AspNetCore.HttpOverrides" />
<Using Include="Microsoft.Extensions.Options" />
<Using Include="Microsoft.AspNetCore.Components.Authorization" />
<Using Include="Microsoft.AspNetCore.Components.Routing" />
+1 -2
View File
@@ -2,7 +2,6 @@ using LiteCharms.Features.Extensions;
using LiteCharms.Features.Mediator;
using LiteCharms.Features.MidrandBooks.Extensions;
using LiteCharms.Features.MidrandBooks.Payments;
using Microsoft.AspNetCore.HttpOverrides;
using MidrandBookshop.Components;
using static LiteCharms.Features.Extensions.Quartz;
@@ -15,7 +14,7 @@ builder.AddMonitoring();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddMediator();
builder.Services.AddLiteCharmsWebSecurity(builder.Configuration);
builder.Services.AddLiteCharmsWebSecurity(builder.Configuration, builder.Environment);
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>));
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>));
+7 -1
View File
@@ -172,7 +172,10 @@ spec:
volumeMounts:
- name: data
mountPath: /app/wwwroot/content
resources:
subPath: bookshop-content
- name: shared-keys-volume
mountPath: /app/shared-keys
subPath: dataprotection-keys
livenessProbe:
httpGet:
path: /health
@@ -189,6 +192,9 @@ spec:
- name: data
persistentVolumeClaim:
claimName: midrandbooks-pvc
- name: shared-keys-volume
persistentVolumeClaim:
claimName: midrandbooks-pvc
---
apiVersion: v1
kind: Service