DogwoodSharp 0.1.0-preview.1
dotnet add package DogwoodSharp --version 0.1.0-preview.1
NuGet\Install-Package DogwoodSharp -Version 0.1.0-preview.1
<PackageReference Include="DogwoodSharp" Version="0.1.0-preview.1" />
<PackageVersion Include="DogwoodSharp" Version="0.1.0-preview.1" />
<PackageReference Include="DogwoodSharp" />
paket add DogwoodSharp --version 0.1.0-preview.1
#r "nuget: DogwoodSharp, 0.1.0-preview.1"
#:package DogwoodSharp@0.1.0-preview.1
#addin nuget:?package=DogwoodSharp&version=0.1.0-preview.1&prerelease
#tool nuget:?package=DogwoodSharp&version=0.1.0-preview.1&prerelease
DogwoodSharp
An independent .NET library for parsing, validating and evaluating Dogwood temporal policy on .NET 8 and .NET 10. Licensed under Apache-2.0.
D1 provides policy parsing, macro expansion and structured diagnostics through the pinned Dogwood parser. D2 adds schema validation, policy lowering and augmented-schema export. D3 adds an experimental CedarSharp evaluation adapter in a separate package. D1, D2 and D3 are formally closed for the reconciled subjects recorded in the owner acceptance records.
This repository is prepared for the first public preview release,
DogwoodSharp 0.1.0-preview.1 with the experimental adapter
DogwoodSharp.CedarSharp 0.1.0-experimental.1. Publication is subject to
separate explicit owner authorization; no package has been published by this
repository preparation.
using DogwoodSharp;
var result = Dogwood.Parse("permit(principal, action, resource);");
Console.WriteLine(result.PolicyCount);
Packages
| Package | Version | Status |
|---|---|---|
DogwoodSharp |
0.1.0-preview.1 |
Preview. D1/D2 stable surface; D3 export surface is internal. |
DogwoodSharp.CedarSharp |
0.1.0-experimental.1 |
Experimental D3 adapter. Exact dependencies on DogwoodSharp and CedarSharp 1.0.0. |
CedarSharp |
1.0.0 |
External dependency, not repacked. |
Supported matrix
| OS | RID | Frameworks |
|---|---|---|
| Windows Server 2025 | win-x64 |
net8.0, net10.0 |
| Ubuntu 24.04 | linux-x64 |
net8.0, net10.0 |
| macOS 15 (ARM64) | osx-arm64 |
net8.0, net10.0 |
No other platform, RID or framework is claimed. The Windows native image is bound by the exact release-candidate SHA-256; same-source builds can differ in embedded PE/debug metadata.
D3 evaluation adapter
using DogwoodSharp;
using DogwoodSharp.Experimental.CedarSharp;
var schema = new DogwoodSchema(
"namespace App { entity User; entity Doc; action \"read\" appliesTo { principal: [User], resource: [Doc], context: { count: Long } }; }");
using var authorizer = DogwoodCedarAuthorizer.ForLoweredBundle(
"permit (principal, action == App::Action::\"read\", resource) when { context.count > 3 };",
schema);
var result = authorizer.Authorize(new CedarAuthorizationInput(
new CedarEntityRef("App::User", "alice"),
new CedarEntityRef("App::Action", "read"),
new CedarEntityRef("App::Doc", "doc-1"),
"{ \"count\": 5 }",
"[]"));
// Only an error-free Allow sets Authorized and IsCleanAllow.
Console.WriteLine(result.Authorized);
The adapter is experimental: its API is not a stable public contract and its presence does not claim upstream Dogwood equivalence. The D3 contract is schema-carrying and request-validating; it fails closed on lowering, request, validation, identity, native and transport failures. The recorded difference register and FCN-05 scope are preserved in the qualification records.
Known qualifications
- CedarSharp native provenance. The published
CedarSharp 1.0.0package and all three native images are hash-verified and the package nuspec commit is recoverable. The native manifests declare asourceCommitthat is not recoverable. This release does not claim source reproducibility of the external native; the published package/native hashes are binding. - Windows native metadata. Same-source/lock Windows builds can differ only in embedded PE/debug timestamps and the PDB GUID. The exact release-candidate hash is the binding identity; normalized equality is not a publication substitute.
- Experimental adapter. The adapter is not a stable API and is not part of
the stable
DogwoodSharppackage surface.
Build and verify
Install the SDK in global.json, .NET 8 and 10 runtimes, the Rust toolchain in
rust-toolchain.toml, PowerShell 7, and the platform's native C toolchain.
Then run ./eng/Verify.ps1. This stages and verifies native assets and runs
managed tests and a NativeAOT smoke program for each framework.
The package gate and package-only consumer commands are documented in CI and packaging. See the managed API contract and native artifact layout for local consumption.
Documents
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DogwoodSharp:
| Package | Downloads |
|---|---|
|
DogwoodSharp.CedarSharp
Experimental CedarSharp authorization adapter for DogwoodSharp. Preview release candidate; publication requires separate owner authorization. The published CedarSharp 1.0.0 native metadata is bound by package and native hashes; its declared native sourceCommit is not reproducible. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.1 | 82 | 11/30/2026 |