CasCap.Common.Configuration.Management
5.2.1
Prefix Reserved
dotnet add package CasCap.Common.Configuration.Management --version 5.2.1
NuGet\Install-Package CasCap.Common.Configuration.Management -Version 5.2.1
<PackageReference Include="CasCap.Common.Configuration.Management" Version="5.2.1" />
<PackageVersion Include="CasCap.Common.Configuration.Management" Version="5.2.1" />
<PackageReference Include="CasCap.Common.Configuration.Management" />
paket add CasCap.Common.Configuration.Management --version 5.2.1
#r "nuget: CasCap.Common.Configuration.Management, 5.2.1"
#:package CasCap.Common.Configuration.Management@5.2.1
#addin nuget:?package=CasCap.Common.Configuration.Management&version=5.2.1
#tool nuget:?package=CasCap.Common.Configuration.Management&version=5.2.1
CasCap.Common.Configuration.Management
Optional .NET 10/11 ASP.NET Core controllers for authenticated management of one registered typed runtime configuration destination. This package references Runtime and browser-neutral Contracts, not a PostgreSQL/SQLite provider or Redis.
Installation
dotnet add package CasCap.Common.Configuration.Management
Configuration Examples
After registering the existing runtime authority and host authentication, opt in with
AddRuntimeConfigurationManagement<T>:
using CasCap.Common.Configuration.Management.Extensions;
builder.Services.AddRuntimeConfigurationManagement<BrowserControls>();
BrowserControls represents the host's browser-safe registered runtime DTO, not its private
application configuration root. Define all three policies from
RuntimeConfigurationManagementPolicies in Contracts. Every operation requires View;
preview also requires Edit, and publication requires both Edit and Publish.
Policies receive the configured RuntimeConfigurationDestination as their authorization resource.
Missing policies deny access. The module does not configure authentication schemes, alter host
authentication defaults, create permissive policies or provide a Development bypass.
Policy-specific authentication schemes are honored without changing existing machine-auth defaults.
With the host's authentication configured, map the registered controller:
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
One closed generic controller is registered directly; there is no assembly/plugin discovery mechanism for selecting other contracts. A second management registration fails. The application, environment and contract in every route must match the runtime registration exactly.
Behavior
IRuntimeConfigurationManagement<T>
uses the uncached publisher for authoritative reads and single-attempt optimistic publication.
The existing runtime codec validates and copies candidates before publication. Audit actor comes
only from an authenticated NameIdentifier or sub claim; bodies cannot set it. Ordinary responses
omit actor, reason, storage details and accepted-reader internals.
All POST operations, including JSON preview, require a principal-bound antiforgery token and its
paired cookie. Read/token endpoints require view permission. Responses are no-store;
authentication/authorization failures are problem responses, not sign-in redirects.
Request JSON is bounded and strict only for this controller, preserving host DTO converters and
unrelated serializers. The host must provide matching converters through DTO attributes or MVC
JSON configuration; numeric enum defaults are not globally changed.
Publication returns durable commit with activation pending. Cancellation, authority failure or a
lost response must not trigger blind retry. Reload and make an explicit decision after a conflict.
The existing authorities' EF concurrency exception is recognized by its exact type identity, keeping
EF out of this module's references; other failures return sanitized 503 and log only exception type.
A successful publication logs its revision number at Information; the actor and reason stay in the
durable record and are never logged.
See the wire contract and acceptance tests. The separate optional Blazor RCL consumes this API without pulling server/provider dependencies into the browser. History, restore, promotion, idempotent retry and schema provisioning are not implemented by this module.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- CasCap.Common.Configuration.Management.Contracts (>= 5.2.1)
- CasCap.Common.Configuration.Runtime (>= 5.2.1)
-
net11.0
- CasCap.Common.Configuration.Management.Contracts (>= 5.2.1)
- CasCap.Common.Configuration.Runtime (>= 5.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.