Skip to content

Add C# SDK#158

Draft
domenkozar wants to merge 1 commit into
mainfrom
agent/add-csharp-sdk
Draft

Add C# SDK#158
domenkozar wants to merge 1 commit into
mainfrom
agent/add-csharp-sdk

Conversation

@domenkozar

Copy link
Copy Markdown
Member

What changed

  • add a dependency-free .NET 8 client over the shared secretspec-ffi JSON ABI
  • expose fluent and one-shot resolution, typed errors, value-free reports,
    provenance, environment export, codegen fields, and IDisposable cleanup for
    as_path files
  • add a nine-scenario test runner covering the shared cross-language
    conformance fixtures
  • package Linux x64/Arm64, macOS Arm64, and Windows x64 native assets in
    Cachix.SecretSpec
  • add NuGet build/publish CI, aggregate SDK/conformance integration, version
    syncing, release notes, and version-labeled 0.16 documentation

Why

SecretSpec has thin SDKs for the other supported application ecosystems, but
.NET applications currently need to launch through the CLI. This adds an
idiomatic C# surface while keeping all resolution behavior in the existing Rust
core.

User impact

Starting with SecretSpec 0.16, .NET 8 applications can install
Cachix.SecretSpec and resolve the same providers, profiles, fallback chains,
references, generators, and file-shaped secrets as the CLI and other SDKs. The
current 0.15 fallback remains documented as
secretspec run -- dotnet run.

Validation

  • C# SDK test runner: 9/9 passed against the real native resolver
  • shared resolve, no-values, and report conformance fixtures passed
  • dotnet build completed with zero warnings
  • dotnet format --verify-no-changes passed for client and tests
  • dotnet pack passed; verified managed files and native runtime asset layout
  • cargo test -p secretspec-ffi passed (9 tests)
  • cargo check -p secretspec-ffi --features vendored-dbus passed
  • Astro docs check/build passed (one pre-existing hint)
  • shell syntax, YAML parsing, actionlint, version sync, and
    git diff --check passed

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
secretspec 984766f Commit Preview URL

Branch Preview URL
Jul 17 2026, 05:56 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant