Configured security

This commit is contained in:
Khwezi Mngoma
2026-06-04 14:45:33 +02:00
parent 9b3e889d89
commit 097ecd6421
4 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -18,13 +18,13 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="LiteCharms.Features" Version="1.71.0" /> <PackageReference Include="LiteCharms.Features" Version="1.80.0" />
</ItemGroup> </ItemGroup>
<!-- UI --> <!-- UI -->
<ItemGroup> <ItemGroup>
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" /> <PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.71.0" /> <PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.80.0" />
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="Blazored.Toast.Services" /> <Using Include="Blazored.Toast.Services" />
+1
View File
@@ -13,6 +13,7 @@ builder.AddMonitoring();
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
builder.Services.AddMediator(); builder.Services.AddMediator();
builder.Services.AddAuthentikUiSecurity(builder.Configuration);
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>)); builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TelemetryPipelineBehavior<,>));
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>)); builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(LoggingPipelineBehavior<,>));
+4 -1
View File
@@ -1,5 +1,8 @@
{ {
"HasherSettings": { "AuthentikSettings": {
"Authority": "https://id.khongisa.co.za/application/o/midrand-books-uat/"
},
"HasherSettings": {
"MinHashLength": 11 "MinHashLength": 11
}, },
"BookshopS3Settings": { "BookshopS3Settings": {
+13
View File
@@ -26,6 +26,7 @@ data:
ValidPayfastHosts__4: "ips.payfast.co.za" ValidPayfastHosts__4: "ips.payfast.co.za"
ValidPayfastHosts__5: "api.payfast.co.za" ValidPayfastHosts__5: "api.payfast.co.za"
ValidPayfastHosts__6: "payment.payfast.io" ValidPayfastHosts__6: "payment.payfast.io"
AuthentikSettings__Authority: "https://id.khongisa.co.za/application/o/midrand-books-api-uat/"
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@@ -41,6 +42,8 @@ data:
hasher-payfastpassphrase: OUdBSVIwdFdwaFgwcU8= hasher-payfastpassphrase: OUdBSVIwdFdwaFgwcU8=
bookshop-s3-accesskey: R0s1MTRkMmNlOGRjNjkyMzdhMDVjMDFlZWY= bookshop-s3-accesskey: R0s1MTRkMmNlOGRjNjkyMzdhMDVjMDFlZWY=
bookshop-s3-secretkey: ZWFhZmVkYTFhZWQ0MDllY2ZlNjA3MTRlY2RhNTQ5YjgyYmRmNWEzZGFmOWYxOGRkNjFmNjZiNDk3M2E2NDgyZQ== bookshop-s3-secretkey: ZWFhZmVkYTFhZWQ0MDllY2ZlNjA3MTRlY2RhNTQ5YjgyYmRmNWEzZGFmOWYxOGRkNjFmNjZiNDk3M2E2NDgyZQ==
authentik-clientid: Nm9oZk1lSndQNWR0YWY1RFMzZU9MY2NNSHF6WXlma1YzRTNGeE5Tbw==
authentik-clientsecret: TXV2a0FLQklHR3BkdEsyaFlabVU1dFRaUmNuM2FhRzhoMWhlVE1nazFYOGVwczYyMzNCS0REWGdpNXo0T01RalVzMGZEUEFmakpmVVRNN1h3ZjllMU01MTQyVGlvOXRycUdmZTM1THhPaExEUnp6N2gxSm5jVkNLYXZXUllndmQ=
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@@ -93,6 +96,16 @@ spec:
- configMapRef: - configMapRef:
name: midrandbooks-config name: midrandbooks-config
env: env:
- name: AuthentikSettings__ClientId
valueFrom:
secretKeyRef:
name: midrandbooksapi-secrets
key: authentik-clientid
- name: AuthentikSettings__ClientSecret
valueFrom:
secretKeyRef:
name: midrandbooksapi-secrets
key: authentik-clientsecret
- name: BookshopS3Settings__AccessKey - name: BookshopS3Settings__AccessKey
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: