Fotbiler.RuleGate.Core
1.0.0
dotnet add package Fotbiler.RuleGate.Core --version 1.0.0
NuGet\Install-Package Fotbiler.RuleGate.Core -Version 1.0.0
<PackageReference Include="Fotbiler.RuleGate.Core" Version="1.0.0" />
<PackageVersion Include="Fotbiler.RuleGate.Core" Version="1.0.0" />
<PackageReference Include="Fotbiler.RuleGate.Core" />
paket add Fotbiler.RuleGate.Core --version 1.0.0
#r "nuget: Fotbiler.RuleGate.Core, 1.0.0"
#:package Fotbiler.RuleGate.Core@1.0.0
#addin nuget:?package=Fotbiler.RuleGate.Core&version=1.0.0
#tool nuget:?package=Fotbiler.RuleGate.Core&version=1.0.0
RuleGate Core
Local, provider-independent authorization engine for RuleGate.
Core contains the built-in policy engine, role and permission evaluators, logical requirements, typed attribute evaluators, requirement dispatch, in-memory policy storage and sources, immutable atomic policy snapshots, and opt-in authorization diagnostics. It emits exporter-neutral OpenTelemetry activities and low-cardinality metrics through the standard .NET diagnostics APIs. Logical requirement traversal is bounded and remains fail-closed when a tree exceeds the supported evaluation depth.
RuleGate 1.0 is stable. Public API compatibility follows Semantic Versioning.
Installation
dotnet add package Fotbiler.RuleGate.Core --version 1.0.0
Compatibility
This package targets .NET Standard 2.0, .NET 8, .NET 9, and .NET 10. Legacy runtime compatibility is verified through packed ASP.NET Core consumer applications.
When to use this package
Use Core when you need:
- In-process authorization without a remote policy service
- A framework-independent authorization engine
- Built-in role, permission, logical, scalar, collection, presence, and null attribute requirements
- Attribute-to-attribute comparisons for ownership and organization scope
- Recurring time-window, bounded date-time, authentication-age, and canonical context policies
- Custom policy-provider or evaluator composition
- Framework-independent policy-source loading and manual atomic reload
- Lock-free lookups against the last valid immutable policy snapshot
- Value-safe authorization, policy-load, and reload telemetry
- Direct control over authorization requests and decisions
ASP.NET Core applications should normally install Fotbiler.RuleGate.AspNetCore, which references Core and adds framework integration.
Evaluation behavior
RuleGate grants access only when:
- A matching policy exists.
- The complete requirement tree evaluates successfully.
- No requirement is denied, unsupported, malformed, or indeterminate.
RuleGate follows default-deny behavior: missing policies and incomplete authorization inputs cannot grant access.
RuleGate packages
| Package | Purpose |
|---|---|
| Fotbiler.RuleGate.Abstractions | Public authorization contracts and extension abstractions |
| Fotbiler.RuleGate.Core | Local fail-closed authorization engine and built-in evaluators |
| Fotbiler.RuleGate.Manifest | YAML manifest loading, validation, and compilation |
| Fotbiler.RuleGate.AspNetCore | ASP.NET Core integration and attribute enrichment |
| Fotbiler.RuleGate.Cli | Manifest validation, policy testing, generation, and CI usage |
| Fotbiler.RuleGate.Keycloak | Optional Keycloak claim normalization and subject mapping |
Documentation
- Getting started
- Authorization model
- Diagnostics
- Security model
- RuleGate CLI
- Policy testing
- Policy sources and atomic reload
- Telemetry, performance, and concurrency
- Documentation index
Security
RuleGate uses ordinal, case-sensitive matching by default and requires an explicit opt-in for ordinal case-insensitive string operations. Invalid types, unsupported operators, and collection-limit violations fail closed. Custom evaluators and policy providers must preserve these security boundaries.
Report suspected vulnerabilities through the private security reporting process.
License
RuleGate is licensed under the MIT License.
Runtime requirement depth
Runtime requirement evaluation is limited to a depth of 64. A requirement at
depth 65 is not evaluated and produces an Indeterminate result with
AuthorizationFailureCodes.RequirementDepthExceeded. Policy authorization
maps that result to a denial. The limit is isolated per evaluation traversal
and applies equally to built-in and custom requirement evaluators.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Fotbiler.RuleGate.Abstractions (>= 1.0.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.1)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
net10.0
- Fotbiler.RuleGate.Abstractions (>= 1.0.0)
-
net8.0
- Fotbiler.RuleGate.Abstractions (>= 1.0.0)
-
net9.0
- Fotbiler.RuleGate.Abstractions (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fotbiler.RuleGate.Core:
| Package | Downloads |
|---|---|
|
Fotbiler.RuleGate.AspNetCore
ASP.NET Core dependency injection, local configuration and YAML policy sources, atomic reload hosting, ClaimsPrincipal mapping, enrichment, dynamic policies, resource authorization, safe diagnostics, and OpenTelemetry correlation for RuleGate. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 61 | 8/1/2026 |
| 1.0.0-rc.1 | 126 | 8/1/2026 |
| 0.9.0-preview.4 | 97 | 7/31/2026 |
| 0.9.0-preview.3 | 33 | 7/31/2026 |
| 0.9.0-preview.2 | 44 | 7/31/2026 |
| 0.9.0-preview.1 | 41 | 7/31/2026 |
| 0.8.0-preview.2 | 39 | 7/31/2026 |
| 0.7.0-preview.2 | 169 | 7/29/2026 |
| 0.7.0-preview.1 | 42 | 7/29/2026 |
| 0.6.0-preview.2 | 41 | 7/29/2026 |
| 0.6.0-preview.1 | 39 | 7/29/2026 |
| 0.5.0-preview.2 | 52 | 7/29/2026 |
| 0.3.0-preview.2 | 51 | 7/28/2026 |
| 0.3.0-preview.1 | 40 | 7/28/2026 |
| 0.2.0-preview.2 | 46 | 7/27/2026 |
| 0.2.0-preview.1 | 47 | 7/26/2026 |
| 0.1.0-preview.1 | 48 | 7/26/2026 |
Publishes the stable RuleGate 1.0 API and coordinated NuGet package family after release-candidate API freeze, security hardening, reproducibility, and package-only compatibility verification.