Skip to content

Propagation Signing

ContextR.Propagation.Signing provides HMAC-based tamper detection for context headers across service boundaries.

Back to Packages Overview

Use This Package When

  • context flows across multiple services and must not be modified in transit
  • you need tamper detection independent of transport security (defense-in-depth)
  • context crosses untrusted or semi-trusted network boundaries

Install

dotnet add package ContextR.Propagation.Signing

Quick Start

builder.Services.AddContextR(ctx =>
{
    ctx.Add<TenantContext>(reg => reg
        .MapProperty(c => c.TenantId, "X-Tenant-Id")
        .MapProperty(c => c.Region, "X-Region")
        .UseContextSigning<TenantContext>(o =>
            o.Key = Convert.FromBase64String("your-base64-key-here"))
        .UseAspNetCore()
        .UseGlobalHttpPropagation());
});

No custom key provider needed — keys are configured inline.

Depends On

  • ContextR.Propagation

See Also