Soenneker.Cloudflare.Validators.Request.Functions 11.0.451

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Cloudflare.Validators.Request.Functions --version 11.0.451
                    
NuGet\Install-Package Soenneker.Cloudflare.Validators.Request.Functions -Version 11.0.451
                    
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="Soenneker.Cloudflare.Validators.Request.Functions" Version="11.0.451" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Cloudflare.Validators.Request.Functions" Version="11.0.451" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Cloudflare.Validators.Request.Functions" />
                    
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 Soenneker.Cloudflare.Validators.Request.Functions --version 11.0.451
                    
#r "nuget: Soenneker.Cloudflare.Validators.Request.Functions, 11.0.451"
                    
#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 Soenneker.Cloudflare.Validators.Request.Functions@11.0.451
                    
#: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=Soenneker.Cloudflare.Validators.Request.Functions&version=11.0.451
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Cloudflare.Validators.Request.Functions&version=11.0.451
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Cloudflare.Validators.Request.Functions

Validates the client certificate Azure App Service forwards to an isolated-worker Azure Function against packaged Cloudflare origin-pull certificate fingerprints.

Installation

dotnet add package Soenneker.Cloudflare.Validators.Request.Functions

Registration

using Soenneker.Cloudflare.Validators.Request.Functions.Registrars;

services.AddCloudflareRequestValidatorAsSingleton();

The package supplies cloudflareorigincerts.txt as a build resource. Set Cloudflare:RequestValidatorLog to true only when certificate-match debug logging is useful.

Usage

using Soenneker.Cloudflare.Validators.Request.Functions.Abstract;

bool fromCloudflare = await validator.IsFromCloudflare(
    request,
    functionContext.CancellationToken);

if (!fromCloudflare)
    return request.CreateResponse(HttpStatusCode.Forbidden);

IsFromCloudflare reads the first X-ARR-ClientCert value, decodes the certificate, calculates SHA-256 over its DER bytes, and compares that fingerprint case-insensitively with the packaged set. Missing, malformed Base64, and invalid certificate data return false.

Trust boundary

X-ARR-ClientCert is meaningful only when Azure App Service is the trusted TLS terminator and supplies the header from an authenticated client certificate. Ensure Authenticated Origin Pulls is enabled, App Service requires client certificates, and the Function cannot be reached through an ingress path that lets callers forge the header or bypass certificate enforcement.

This validator performs exact fingerprint matching; it does not build a certificate chain. Cloudflare certificate rotation therefore requires an updated fingerprint package. Validate(string) exposes the same comparison for callers that already have a hexadecimal SHA-256 fingerprint.

For request enforcement, Soenneker.Cloudflare.Middlewares.Require.Functions provides middleware built on this validator.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Cloudflare.Validators.Request.Functions:

Package Downloads
Soenneker.Cloudflare.Middlewares.Require.Functions

A middleware component for Azure Functions that enforces Cloudflare-only access, blocking non-Cloudflare requests unless running in local/test environments.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.468 0 11/30/2026
11.0.467 0 11/30/2026
11.0.466 0 11/30/2026
11.0.465 0 11/29/2026
11.0.464 28 11/29/2026
11.0.463 148 11/19/2026
11.0.461 129 11/18/2026
11.0.460 130 11/18/2026
11.0.459 129 11/18/2026
11.0.457 129 11/18/2026
11.0.456 135 11/18/2026
11.0.455 137 11/15/2026
11.0.454 133 11/15/2026
11.0.453 132 11/11/2026
11.0.452 117 11/11/2026
11.0.451 112 11/11/2026
11.0.450 108 11/11/2026
11.0.449 106 11/11/2026
11.0.448 112 11/11/2026
11.0.447 103 11/11/2026
Loading failed

Updated Multiple NuGet packages