2e52a02b85
ApiKeyVerifier no longer awaits IApiKeyStore.MarkUsedAsync per verification. A new ApiKeyUsageRecorder keeps key id -> latest use time in memory and a background PeriodicTimer writes each key at most once per ApiKeyOptions.LastUsedWriteIntervalSeconds (default 60; 0 = old inline write), plus a final flush on dispose. ApiKeyVerifier is now IAsyncDisposable/IDisposable and owned by the DI container. Failed stamps are counted (FailedWrites + meter counter zb.auth.apikey.last_used.write_failures) and logged, never surfaced. last_used_utc is now accurate to the interval. Version 0.6.0, unpublished. Closes #61.
24 lines
1.5 KiB
XML
24 lines
1.5 KiB
XML
<Project>
|
||
|
||
<PropertyGroup>
|
||
<TargetFramework>net10.0</TargetFramework>
|
||
<Nullable>enable</Nullable>
|
||
<ImplicitUsings>enable</ImplicitUsings>
|
||
<LangVersion>latest</LangVersion>
|
||
<!-- 0.4.0: opt-in LdapOptions.BindMode = User — authenticate by binding as the signing-in user
|
||
(UserBindTemplate) and read their own groups on the same connection; no service account.
|
||
ServiceAccount stays the default, so existing consumers need no change. -->
|
||
<!-- 0.4.1: Username canonicalised from the entry's UserNameAttribute; empty passwords refused
|
||
in both bind modes (ServiceAccount-mode behaviour change); template docs prefer EXAMPLE\{0}. -->
|
||
<!-- 0.4.2: typed ApiKeyPepperUnavailableException (: InvalidOperationException) for a missing pepper on
|
||
create/rotate; patched System.Security.Cryptography.Pkcs transitive pin (SqlServer package). -->
|
||
<!-- 0.5.0: passwordless group lookup — ILdapGroupLookup.GetUserGroupsAsync (service account; shares the
|
||
endpoint walk / sticky preference / TLS policy with AuthenticateAsync). Includes the unpublished 0.4.2–0.4.4. -->
|
||
<!-- 0.6.0: API-key last-used stamps batched per key per ApiKeyOptions.LastUsedWriteIntervalSeconds (default 60)
|
||
and written off the request path by ApiKeyUsageRecorder; ApiKeyVerifier is disposable (scadaproj#61). -->
|
||
<Version>0.6.0</Version>
|
||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||
</PropertyGroup>
|
||
|
||
</Project>
|