Skip to content

LocalStack.Aspire.Hosting 13.6.0

Latest

Choose a tag to compare

@Blind-Striker Blind-Striker released this 15 Nov 20:10
bb2e825

✨ What's New in 13.6.0

NuGet Version

This release aligns the package with Aspire 13.6.5, gives AppHosts a package-owned configuration surface that no longer needs LocalStack.Client types, adds explicit runtime selection between the current LocalStack image and a token-free legacy preset, and backs every publication with a current + legacy runtime pair that runs on Linux, Windows and macOS.

🎛️ Explicit Runtime and Activation Options

  • The default image moves from 4.12.0 to the current LocalStack release 2026.10.6, which requires a LocalStack activation token and a suitable entitlement.
  • WithLegacy() selects the tested token-free 4.14.0 preset. WithAuthToken(...) accepts an explicit value or a caller-owned secret parameter.
  • Input precedence is fluent → exact extra-env key → host configuration. Explicit blanks suppress fallback, and missing activation never causes a downgrade or a real-AWS fallback.

⚙️ Package-Owned AppHost Configuration

  • LocalStackHostingOptions (Enabled, Region, AccessKeyId, SecretAccessKey, SessionToken) with WithEnabled(...), WithRegion(...) and WithCredentials(...) fluent extensions.
  • Canonical Aspire:Hosting:LocalStack configuration section (Aspire__Hosting__LocalStack__*). The legacy LocalStack:* section is still honored at lower precedence.
  • New AddLocalStack(), AddLocalStack(name), AddLocalStack(name, awsConfig, configureContainer) and AddLocalStack(name, awsConfig, configureOptions, configureContainer) overloads.
  • Enabled options are validated up front: missing values fail with one DistributedApplicationException that names every invalid property without echoing credentials.
  • A read-only endpoint-conflict warning when LocalStack.Client proxy settings and native AWS_ENDPOINT_URL* settings meet on the same workload.

🔒 Security Fixes

🐛 Fixes

  • Bare explicit workload references receive all nine Client settings without an unrelated CloudFormation relationship; imported stacks keep read-only semantics.
  • Workload Host/Port values keep the consumer-network context; health check names are qualified per resource.
  • Resource names longer than 40 characters no longer produce an invalid activation-parameter name.

⚠️ Breaking Changes and Deprecations

  • Activation token by default. AppHosts that relied on the old 4.12.0 default now need a LocalStack activation token, or WithLegacy() for the token-free 4.14.0 preset.
  • NU1605 for low pins. Consumers that pin LocalStack.Client(.Extensions) below 3.0.0, or AWSSDK.Core below 4.0.102.6, must raise those pins.
  • Positional null calls. AddLocalStack("localstack", null, null, ...) now reports CS0121. Name the arguments (awsConfig: null, configureContainer: ...) or use AddLocalStack("localstack"). Compiled AppHosts are not affected.
  • Deprecated (warning, removed in the next major): the LocalStack.Client-shaped AddLocalStack(name, localStackOptions, awsConfig, configureContainer) overload, AddLocalStackOptions(), ILocalStackResource.Options and the related ILocalStackOptions helpers. Migrate to the package-owned overloads and Aspire:Hosting:LocalStack configuration.

🐛 Known Issues

  • Avoid combining Client proxy mode and native AWS_ENDPOINT_URL* settings on one workload; the Lambda Test Tool's stream poller still requires us-east-1. See Upstream Watch.
  • One intermittent current-runtime Lambda redirect timeout from October has not recurred and has no known cause.

🧪 Testing & Quality

  • The same declared scenarios run against the current and the legacy image. Each run's evidence is bound to its execution by SHA-256, masked, and rejected by validate-runtime when stale, dirty or incomplete.
  • Every publication requires the passing trusted pair and a packed-consumer verify-consumer pass for the same commit. The pair passed 32/32 per runtime on Linux, Windows and macOS for this release line.
  • Packages are published to NuGet.org with Trusted Publishing (GitHub OIDC); no long-lived API key is stored.

📦 Version Updates

  • Aspire.Hosting: 13.4.6 → 13.6.5
  • Aspire.Hosting.AWS: 13.3.1 → 13.7.3
  • LocalStack.Client / LocalStack.Client.Extensions: 2.0.0 → 3.0.0 (public surface unchanged)
  • CDK bootstrap template: BootstrapVersion 33 (aws-cdk 2.1148.0)
  • AWSSDK, Amazon.Lambda, OpenTelemetry, SkiaSharp, TUnit and analyzers aligned to latest stable

The full list is in the CHANGELOG.

🛠️ Installation

dotnet add package LocalStack.Aspire.Hosting

Note: Package uses namespace Aspire.Hosting.LocalStack for .NET Aspire convention alignment.

  • ✅ .NET 8, .NET 9 and .NET 10
  • ✅ Cross-platform (Windows, Linux, macOS)
  • ✅ Compatible with the official AWS integrations for .NET Aspire

🔧 Dependencies

  • Aspire.Hosting: 13.6.5
  • Aspire.Hosting.AWS: 13.7.3
  • LocalStack.Client: 3.0.0
  • LocalStack Container: 2026.10.6 (current, activation token) or 4.14.0 (legacy preset)
  • .NET 8.0+ required

What's Changed

  • feat: package-owned AppHost configuration, current dependencies, and a rebuilt documentation surface by @Blind-Striker in #36
  • docs: move dated evidence to the private archive and the roadmap to .github by @Blind-Striker in #37
  • test: prove the endpoint contract without a separate probe project by @Blind-Striker in #39
  • ci: add the GitHub Packages source only after the packed consumer check by @Blind-Striker in #40
  • docs: record the hosted trusted pair and the verified Linux Ctrl+C behaviour by @Blind-Striker in #41
  • fix: restore 13.4.0 resource adapters and let the conflict warning see the package's Client settings by @Blind-Striker in #42
  • fix(tools): keep test platform pipes short enough for macOS by @Blind-Striker in #43
  • test: keep integration AppHosts off the developer certificate by @Blind-Striker in #44
  • chore: prepare the 13.6.0 release by @Blind-Striker in #45
  • ci: publish to NuGet.org with trusted publishing by @Blind-Striker in #46

Full Changelog: 13.4.0...13.6.0