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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CasCap.Common.Configuration.Management" Version="5.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CasCap.Common.Configuration.Management" Version="5.2.1" />
                    
Directory.Packages.props
<PackageReference Include="CasCap.Common.Configuration.Management" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CasCap.Common.Configuration.Management --version 5.2.1
                    
#r "nuget: CasCap.Common.Configuration.Management, 5.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CasCap.Common.Configuration.Management@5.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CasCap.Common.Configuration.Management&version=5.2.1
                    
Install as a Cake Addin
#tool nuget:?package=CasCap.Common.Configuration.Management&version=5.2.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.2.1 94 11/21/2026
5.2.0 127 11/14/2026
5.1.0 171 11/5/2026
5.0.0 106 11/1/2026