Architecture remediation: P1 tier (process & hardening) #121

Merged
dohertj2 merged 19 commits from fix/archreview-p1 into main 2026-07-09 09:59:49 -04:00
3 changed files with 27 additions and 6 deletions
Showing only changes of commit 197731ae2d - Show all commits
@@ -22,8 +22,8 @@
(IntegrationTests-028).
-->
<ItemGroup>
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.4" />
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.7" />
</ItemGroup>
@@ -6,10 +6,10 @@
<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="2.76.0" />
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.ApiKeys" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.AspNetCore" Version="0.1.2" />
<PackageReference Include="ZB.MOM.WW.Auth.Abstractions" Version="0.1.4" />
<PackageReference Include="ZB.MOM.WW.Auth.Ldap" Version="0.1.4" />
<PackageReference Include="ZB.MOM.WW.Auth.ApiKeys" Version="0.1.4" />
<PackageReference Include="ZB.MOM.WW.Auth.AspNetCore" Version="0.1.4" />
<PackageReference Include="ZB.MOM.WW.Audit" Version="0.1.0" />
<PackageReference Include="ZB.MOM.WW.Theme" Version="0.3.1" />
<PackageReference Include="ZB.MOM.WW.Configuration" Version="0.1.0" />
@@ -623,6 +623,27 @@ public sealed class DashboardSnapshotServiceTests
{
return Task.FromResult(false);
}
/// <summary>Does nothing; the fake never changes scopes (added to IApiKeyAdminStore in Auth 0.1.3).</summary>
/// <param name="keyId">Key identifier.</param>
/// <param name="scopes">Replacement scope set.</param>
/// <param name="ct">Cancellation token.</param>
/// <returns><see langword="false"/>, always.</returns>
public Task<bool> SetScopesAsync(string keyId, IReadOnlySet<string> scopes, CancellationToken ct)
{
return Task.FromResult(false);
}
/// <summary>Does nothing; the fake never toggles key state (added to IApiKeyAdminStore in Auth 0.1.3).</summary>
/// <param name="keyId">Key identifier.</param>
/// <param name="enabled">Desired enabled state.</param>
/// <param name="whenUtc">Timestamp for the state change.</param>
/// <param name="ct">Cancellation token.</param>
/// <returns><see langword="false"/>, always.</returns>
public Task<bool> SetEnabledAsync(string keyId, bool enabled, DateTimeOffset whenUtc, CancellationToken ct)
{
return Task.FromResult(false);
}
}
private class CountingApiKeyAdminStore(params ApiKeyListItem[] records) : FakeApiKeyAdminStore