Repository navigation
fix: let AWS-standard endpoints win and sign with RegionName - #92
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF ScorecardScorecard details
Scanned Files
|
Member
Author
|
Status, head
|
16 tasks done
…mes" This reverts commit a8463e4.
This reverts commit 7078090.
The guard now turns off the transport's automatic redirects, so a 307 from an emulator comes back through the pipeline instead of being followed below the guard. It also decides the proxy allowance from the proxy the SDK transport uses (GetWebProxy, no custom HttpClientFactory), and allows it only when it is a registered emulator. ProxyHost alone, AWSConfigs.ProxyConfig, an unregistered loopback proxy and a custom factory no longer open it. The dual-configuration probe installs the guard too. New offline tests pin the redirect, each proxy bypass, the registered-emulator allowance and the blocked-message client name.
quality-gates names both probes, the transport-proxy rule, the redirect switch and the presign check's one owner. The region-change limit now covers every explicit endpoint, renders as its own README paragraph, and the changelog lists the guard.
With UseServiceUrl on, an RDS, Neptune or DocumentDB operation with SourceRegion set and PreSignedUrl null throws NullReferenceException in the SDK's PreSignedUrlRequestHandler, which reads the RegionEndpoint the ServiceURL setter cleared. The tests pin that offline for one operation per service, pin the AWS-standard endpoint control that presigns for the emulator, and keep the nine affected operations in step with the SDK.
README Known issues lists the nine operations and the workarounds: AWS_ENDPOINT_URL_RDS, _NEPTUNE or _DOCDB, default proxy mode, or a caller-set PreSignedUrl. client-runtime says why service-URL mode hits it.
LocalStack.Client.Compatibility.Tests runs both harnesses with every AWS_* variable removed by name, empty AWS profile files, AWS_EC2_METADATA_DISABLED and both telemetry opt-outs, then diffs them scenario by scenario. expected-differences.json lists the intended field deltas per row of the 3.1 behavior table. An unlisted difference fails and names the scenario, row and field; a listed delta that does not happen fails too. The run writes a per-row Markdown summary and both observation files next to the TRX file. The expectations describe 18c71b2. Rows that D1, D2, T6 and the catalog PRs will change carry a pendingTask note; the UseSsl=true rows carry pendingResearch (KL-15).
Cake's tests target already discovers the project and checks its result file. On the floating canary track (AwsSetupTrack=latest) a failure of the differential test is now a warning, because there a difference comes from the AWS SDK, not from the library. The workflows are unchanged: every leg already calls the tests target, so Windows also runs net472.
…rences quality-gates.md gains the test layer, its environment and what a failure means. testing-style.md says how to record an intended 3.0 to 3.1 difference: a pull request that changes behavior updates its row's deltas in the same pull request. CHANGELOG lists the test under Build, tests and CI.
A request that completed, or reached the egress guard, instead of stopping at the capture handler was recorded as an ordinary outcome, so a capture failure both harnesses shared compared equal and passed. The harness now reports each such scenario and exits 4. The guard behind the capture blocks every request, loopback included, and names the target and proxy. A client-side SDK exception before the request is built (B29) stays a comparable observation. Also: - read the PutBucket body from the request's content stream, where the SDK keeps it; the location constraint was always recorded as none before; - add a direct Config.RegionEndpoint assignment (KL-1) in proxy, setting and auto-detected mode; - reject a scenario group service ID that is not in the scenario file's catalog, instead of comparing "no client" with "no client".
…ending rows After the rebase onto D1 (b') and D2 (A), B26, B26/auto-detected, B27 and B28/no-ambient-region carry the decided 3.1 behavior and no pending marker: SetClientRegion keeps ServiceURL and signs the new region, PutBucket sends the library region, DeleteBucket signs it. KL-1 and KL-1/auto-detected pin that a direct RegionEndpoint assignment leaves the emulator. B29 records O-7's decision (a), a known limit. Pending rows (B20, B24, B25 and the two KL-15 rows) pin today's behavior. Every run now lists them in the test output and in the summary, whose header says a pass certifies the table except those rows. A guard test requires a "<task>: <reason>" marker and a summary on every row, and reading the file rejects an unknown row property. The empty AWS profile files are deleted when each harness exits.
…s out quality-gates.md: pending rows pin today's behavior and are listed in every run; a harness fails on a request that gets past its capture; catalog-wide scenarios compare configuration and endpoint, not signing; rows driven by AWS_* or profile settings, including B26a, are out of scope. testing-style.md gains the pendingTask format and who removes it.
The body cannot show the BucketRegion opt-out, because the marshaller prefers BucketRegion over BucketRegionName. A spy on the members seam now asserts that the handler writes no BucketRegionName for each of the five opt-outs (BucketRegion, BucketRegionName, UseClientRegion = false, Location, LocationConstraint), after a control request proves the spy sees writes. A second theory asserts that the members this TFM ships report each opt-out: UnsafeAccessor on net10+, reflection on net472.
Blind-Striker
force-pushed
the
fix/endpoint-precedence
branch
from
November 29, 2026 23:26
7078090 to
cd82d6c
Compare
The SDK's SharedCredentialsFile reads AWS_CONFIG_FILE and AWS_SHARED_CREDENTIALS_FILE once per process, and a set AWS_CONFIG_FILE then makes every later read use that first path. When anything touched profiles before the first scope, RegionTestEnvironment's temporary files were ignored and the user's own default-profile region reached every plain-SDK S3 expectation; that is the Windows failure, reproduced on Linux with a region in a temporary HOME. The scope now selects its files through AWSConfigs.AWSProfilesLocation with AWS_CONFIG_FILE cleared, and also skips AWSConfigs.AWSRegion and the Windows SDK credential store, restoring all three. New tests pin the scope and a temporary default-profile region that reaches the plain SDK but not the library.
RowKeyComparer split a key with String.Remove(startIndex), which .NET Framework rejects at the string length, so the digit-less key 'unlisted' threw in the net472 differential fixture. It now uses Substring, and unit rows cover the natural order and keys without digits.
With PutBucketConfiguration.LocationConstraint set and an ambient region other than us-east-1, the AWS SDK adds the ambient region too, so the request carries two LocationConstraint elements; measured offline, identical for plain SDK and library clients. The README's known issues name it and the workaround. The S3 Control Outposts host pattern is not documented: in AWSSDK.S3Control 4.1.1 those helpers are not on the request path.
docs/reference/endpoint-behavior.md lists each endpoint, signing and region behavior with its 3.0.x and 3.1 columns, the rule and the tests that pin it, keyed by the row ids expected-differences.json uses. testing-style, quality-gates, the differential harness's comments, scenarios.json and the documentation ownership table point at it; source and test comments and row summaries name its rows instead of private decision ids.
SessionEndpointPrecedenceTests, CatalogEndpointPrecedenceTests and EndpointPrecedenceTests read a temporary profile's sibling config file, which a set AWS_CONFIG_FILE replaces; with it pointed at an empty file, 14 Client and 4 Integration rows failed. They now clear every variable that moves an endpoint or region, restore each without reading it out, turn instance metadata off, and run in a non-parallel collection. Both suites pass with AWS_CONFIG_FILE pointed at an empty file and at a profile with a region.
The detector called Validate() on the live client configuration, which is not read-only: AmazonS3Config.Validate() switches on UseAccelerateEndpoint for an accelerate service URL, so with AWS_ENDPOINT_URL_S3 naming s3-accelerate the S3 constructor's own Validate() then threw "S3 accelerate is not compatible with Path style requests"; the plain SDK validates once and creates the client. The question now goes to a fresh instance of the same configuration type with only RegionEndpoint set, created from the generated registry, the static factory or, on the reflection paths, its parameterless constructor, never through the injected ISessionReflection, and the answer is kept per type. Both the standard-endpoint branch and automatic detection use it.
… sources A reflection test pins the internal ConfigOptions.ApplyConfiguration that an Extensions 3.0 binary binds to: internal, void, (string, bool?, bool?, int?) with the 3.0 names and null defaults. The invalid-host-label row now also throws with a profile endpoint and for a client that rejects RegionEndpoint, in both modes and on both creation paths.
ADR 0005 and client-runtime say the library asks a fresh configuration of the same type whether it rejects RegionEndpoint, never the live one, and why; the cost bullet follows the per-type answer. Changelog item 7 says the invalid-RegionName throw comes from setting RegionEndpoint first in every mode, and that in 3.0.x only useServiceUrl: true accepted any value.
The JIT-fallback test counted one configuration construction per client creation; the side-effect-free region check now constructs one more per configuration type. The test states that, and a second round of creations shows the answer is kept per type. client-runtime notes the extra construction.
…change SetClientRegion with a name that is not a host label throws the SDK's AmazonClientException. Since 3.0.0 the generated net10+ path wraps it in a TargetInvocationException while the reflection path on net472, netstandard2.0 and the net10+ fallback lets it through. The explicit-endpoint branch always wrapped, which gave net472 and netstandard2.0 a second shape; it now throws the shape of the framework's RegionEndpoint path. The invalid-name test asserts the inner AmazonClientException on every framework, a new test pins the per-framework shape in every mode, and the endpoint behavior reference records the difference as a known limit.
LocalStack.Client.csproj assigned DefineConstants=NET472 for the .NET Framework target. The SDK appends NETFRAMEWORK, NET472 and the _OR_GREATER symbols after the project body, so the assignment's only effect was dropping TRACE, which compiled out Trace.TraceWarning: on net472 the S3 bucket-region handler's failsafe could never signal. The line is gone; the compile now gets TRACE;RELEASE;NETFRAMEWORK;NET472 and the rest. The 3.0.0 assets made no Trace or Debug call, so no shipped behavior changes, and the public API is the same. LibraryAssetTraceTests reads every built LocalStack.Client asset's metadata, including net472 on any build machine, and fails if one has no Trace.TraceWarning call; it failed with the old assignment.
…ation path EndpointReadOrderContractTests pins the AWS SDK contract "read order and endpoint preservation" with plain SDK S3 rows: (A) no early read and (E) a read after the constructor keep an AWS-standard endpoint, (B) a ServiceURL read before the constructor on a fresh configuration with no explicit region still loses it to the constructor's region probe, (C) setting RegionEndpoint first and (D) an explicit ServiceURL keep it, and the blank-region order (ServiceURL = null, then the read) keeps it. Session.ApplyEndpoint relies on C and the blank-region order. Library rows assert the endpoint each client resolves for a request, with the setting off and on, a set and a blank RegionName, from AWS_ENDPOINT_URL and from a profile endpoint_url: the static factory, both CreateClientByInterface and CreateClientByImplementation overloads, AddAwsService, a private client only the reflection fallback builds, and a data-plane client. A ServiceURL read moved before RegionEndpoint in ApplyEndpoint fails all 40 library rows.
A Fixed section in Unreleased: from 3.0.0 on the net472 asset was compiled without TRACE, so Trace calls were removed from it; 3.0.0 made none, so it had no visible effect until the S3 bucket-region warning. LibraryAssetTraceTests guards every asset.
…ntract layer Integration.Tests used ConfigurationBuilder and AddInMemoryCollection only through a transitive Microsoft.Extensions.Configuration 3.1.32 from Extensions' Binder floor; it now references the package directly, resolving the central 11.0.0 on both the pinned and the latest track. quality-gates' AWS SDK endpoint contract row describes EndpointReadOrderContractTests, what row B and a library row pin and what a failure means, and the changelog lists the tests.
Blind-Striker
marked this pull request as ready for review
November 30, 2026 07:32
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows (
net472, tr-TR, .NET Framework 4.8.1) atfd162be:build.ps1 --target testsexit 0; 2,067 results, 2,065 passed, 0 failed, 2 skipped (the knownnet472rows that need an empty environment variable, which .NET Framework cannot hold). The newnet472rows passed:LibraryAssetTraceTests, the region-probe rows (constructor argument, both region orders), the throwing trace listener, both warn-once failsafe rows and all 51 read-order rows. The comparer passed 14/14 onnet472.Summary
When the AWS SDK resolves an endpoint from
AWS_ENDPOINT_URL_<SERVICE>,AWS_ENDPOINT_URLor a profileendpoint_url, LocalStack.Client uses that endpoint directly. Requests sign with the configuredRegionNamewhen it is set. This addresses #27 and lets S3 presigned URLs name the emulator when an explicit endpoint is in use (#50). Default proxy mode still produces presigned URLs with the AWS host.LocalStack:Config:UseServiceUrlreplaces theuseServiceUrlargument. IoT Data Plane, IoT Jobs Data Plane and MediaStore Data get the emulator service URL automatically when no AWS-standard endpoint is set.Head and base
1199a5a83707011b07fd970dc3f7df2ac3ab61a5onfix/endpoint-precedence.release/3.1at6df0fff6ceeba86cb690bf6deafb52c8d473c8a6. It includes the emulator image pins from test: pin LocalStack current to 2026.11.1 and every emulator image by digest #93.Changed since the last review
These changes are on top of
cd82d6c, the revision covered by the previous draft.AWS_CONFIG_FILEpath once per process. The tests now select temporary profiles throughAWSConfigs.AWSProfilesLocation. The Integration fixture also seeds the SDK's profile defaults with temporary files at startup. See61b09bd,c14a5fdandfd162be.Validate()on a fresh configuration of the same type. The old check mutatedUseAccelerateEndpointon the live S3 configuration. The S3 constructor then threw when given an accelerate URL. If a suitable fresh configuration is unavailable, the check assumes the client accepts a region. The SDK constructor still validates the live configuration. The probe caches answers by configuration type and region without keeping collectible types alive. See54eed76,544c9b4,bf537d7andfd162be.SetClientRegioncalls. The owner chose option (i), preserving the 3.0.0 exception shape for each framework and configuration path. The public reference documents this known limit. See81ee57eandfd162be.net472tracing. Thenet472asset had lostTRACEin 3.0.0. The build now checks forTRACEbefore compilation.LibraryAssetTraceTestschecks the warning call in the assembly loaded by the test. Seef0b441c,91815a9andfd162be.CA1031suppression covers the trace write. Its justification names the owner's requirement that the warning never escape as an exception. See6d63077andfd162be.ServiceURLread can lose a configured endpoint. They verify that the endpoint survives construction on each library creation path. See571ca14andc58b956.347c605andfd162be. Endpoint behavior referenceAWS_ENDPOINT_URL*variable. Seec14a5fdandfd162be.d9d06fa.Pre-merge requests from the lead's line-by-line review (on top of
fd162be):SetClientRegionnow takes the normalized signing region from the SDK: it setsRegionEndpointon a fresh configuration of the same type and reads the name back, the same source creation uses. A configuration that needs constructor arguments keeps the earlier normalization, which does not handle embedded markers such asbedrock-fips-ca-central-1. Tests check that creation andSetClientRegionagree forfips-us-east-1,us-gov-west-1-fips,bedrock-fips-ca-central-1and a normal region, on both creation paths and in both modes. See27d8517and1199a5a.RegionEndpoint(see B13). See245c6e2.245c6e2.Endpoint precedence
With
UseLocalStack=true, the first applicable rule wins for each client:AWS_IGNORE_CONFIGURED_ENDPOINT_URLSdisables those sources.LocalStack:Config:UseServiceUrl=true, the client uses the configured emulator service URL directly.RegionEndpointalso gets the emulator service URL directly. If the SDK resolved a standard endpoint in step 1, the client keeps that endpoint and clearsRegionEndpoint.RegionEndpointand reaches the emulator through the proxy.An empty resolved endpoint falls back to the selected mode. A blank
RegionNamerequiresUseServiceUrl=trueand leaves signing to the SDK. A non-blankRegionNameis set before the SDK reads the endpoint. Region names that are invalid host labels fail at creation. Explicit endpoints use the normalized signing region whenRegionNameis set. They turn off FIPS, dual-stack and host-prefix injection. S3 keeps path-style addressing. The session supplies credentials. WithUseLocalStack=false, Extensions uses the AWS client factory.Breaking changes
The
bool useServiceUrlargument was removed from the fourCreateClientByImplementationandCreateClientByInterfaceoverloads onISessionandSession. It was also removed fromAddAwsService,TryAddAwsService,AddAWSServiceLocalStackandTryAddAWSServiceLocalStack, each with and withoutAWSOptions.useServiceUrl, mock setups and customISessionimplementations. Visual Basic callers can useAddAWSServiceLocalStackto select the LocalStack registration explicitly.ConfigOptions.UseServiceUrldefaults tofalseand applies to the whole session or service collection. To move one service, setAWS_ENDPOINT_URL_<SERVICE>for that service.Migrating
useServiceUrl: true{ "LocalStack": { "UseLocalStack": true, "Config": { "UseServiceUrl": true } } }The environment variable form is
LocalStack__Config__UseServiceUrl=true. For standalone setup, useConfigOptions.Behavior changes and known limits
The public reference carries the full 3.0.x to 3.1 comparison. For a region-rejecting client with an AWS-standard endpoint, use B13 for the
RegionEndpointresult. Endpoint behavior referenceSetClientRegionpreserves an explicitServiceURLand changesAuthenticationRegion. AssigningConfig.RegionEndpointdirectly clearsServiceURLand can send later requests to the regional AWS host.PutBucketwhen the request leaves the bucket region unset.DeleteBucketsigns with the library region.LocationConstraint, the SDK can send two constraints when an ambient region is set. UseBucketRegionNameto supply the region.NullReferenceExceptionbefore sending in service-URL mode. The README lists the affected operations and workarounds. README known issuesGetPreSignedUrlRequest.ProtocoltoHTTP. The SDK defaults to HTTPS. README endpoint precedenceSetClientRegioncan surfaceAmazonClientExceptiondirectly or insideTargetInvocationException. Thenet472andnetstandard2.0assets throw it directly. Onnet10.0andnet11.0, the runtime configuration type and reflection-fallback setting determine the shape. Exception shape for an invalid region changeBehavior table at
fd162be(copy of the public reference)AWS_ENDPOINT_URLor profileendpoint_urlnames BServiceURLnames B, proxy sends to A, SDK chooses signing regionRegionEndpoint, signsRegionName; S3 presigned URLs also name B and sign that regionSessionEndpointPrecedenceTestsEndpointPrecedenceTests;AwsStandardEndpointContractTestsServiceURLboth name A; SDK chooses signing regionRegionNameServiceURLis the emulator, plus a proxy to it; signs with the ambient region orus-east-1ServiceURLis the emulator, no proxy;AuthenticationRegionand signing areRegionName, presigned URLs too; host-prefix injection offRegionNameB4;SessionEndpointPrecedenceTestsRegionNameset to blankRegionName, accepted only in service-URL mode, leaves signing to the SDKB4/blank-regionUseSslonhttpshttpsB4/use-ssl(pending)RegionEndpointis nullRegionEndpointfor clients that accept it, signsRegionNameSessionEndpointPrecedenceTests;CatalogEndpointPrecedenceTests;EndpointReadOrderContractTestsSessionEndpointPrecedenceTestsRegionNameAwsStandardEndpointContractTestsRegionNameSessionEndpointPrecedenceTests;AwsStandardEndpointContractTestsRegionNameand an AWS-standard endpoint or an injected presetRegionEndpoint; SDK chooses signing regionSessionEndpointPrecedenceTests;EndpointReadOrderContractTestsRegionName, proxy modeMisconfiguredClientExceptionMisconfiguredClientException; the message namesConfigOptions.UseServiceUrlB10RegionNamethat is not a host label (bad_region)us-east-1AmazonClientExceptionat creationRegionNameis the signing region in every mode, so it must be validB11RegionNameAmazonClientExceptionat creationB11/auto-detectedRegionName(my-region)us-east-1my-regionB11/unknown-valid-regionRegionNameAmazonClientExceptionat creationIR-2useServiceUrl: true)RegionNameB12;CatalogEndpointPrecedenceTestsRegionEndpoint, signsRegionNameCatalogEndpointPrecedenceTests;SessionEndpointPrecedenceTestsRegionEndpointisRegionName, presigned hosts3.<region>.amazonaws.comB14(every 3.0.0 catalog service and creation path)AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=trueRegionEndpointAwsStandardEndpointContractTests;SessionEndpointPrecedenceTestsSessionEndpointPrecedenceTestsSessionEndpointPrecedenceTestsISessionReflectionpresetsServiceURLB18;SessionEndpointPrecedenceTestsUseLocalStack: falseB19LocalStack:Config:UseLegacyPortskeyyesfails bindingB20(pending: legacy-port removal changes this row)AwsServicemember and value)B24(pending: the catalog refresh adds rows)B25(pending: the catalog refresh renames them)ISessionReflection.SetClientRegionon a service-URL clientServiceURLcleared; the proxy carried the request to the emulator, signed for the new regionServiceURLkept; the request goes to the emulator directly and signs for the new region (AuthenticationRegion)B26;SetClientRegionTests; functional SNS region scenarioSetClientRegionon an auto-detected clientServiceURLkept, emulator, new signing regionB26/auto-detected;SetClientRegionTestsConfig.RegionEndpointassignment on a client with a standard endpointServiceURL; the proxy still sends to the emulatorServiceURL; the client targets the regional AWS hostSetClientRegionto keep an explicit endpoint. See KL-1 for service-URL and auto-detected clientsSetClientRegionTestsPutBucketwithout a bucket region, service-URL mode,RegionNameeu-central-1, no ambient regionus-east-1eu-central-1(us-east-1gives no constraint,eu-west-1givesEU)RegionName, as in proxy modeB27;S3BucketRegionTests; functional S3 scenariosDeleteBucket, explicit endpoint, ambientAWS_REGIONsetRegionNameS3BucketRegionTestsus-east-1RegionNameB28/no-ambient-regionCopyDBSnapshotwithSourceRegionand noPreSignedUrl, service-URL modeNullReferenceExceptionin the SDK before sendingRegionEndpointa service URL clears; the README lists the nine affected RDS, Neptune and DocumentDB operations and the workaroundsB29;RdsFamilyPresignLimitTestsConfig.RegionEndpointdirectly on a service-URL clientServiceURL; the proxy still carried the request to the emulator, signed for the new regionServiceURL; with no proxy the request names the regional AWS host and leaves the emulator; it still signs the creation regionSetClientRegion, or setRegionNamebefore creationKL-1;SetClientRegionTestsKL-1/auto-detected;SetClientRegionTestsUseSslonhttpstarget through thehttpproxyKL-15(pending)SetClientRegionand a directRegionEndpointassignment on a proxy-mode clientRegionEndpointunlistedDifferential test result
The comparer runs the same scenarios against the published 3.0.0 packages and the 3.1 source with the same AWS SDK versions. It clears ambient AWS settings and captures requests before they are sent. A pass verifies the observed differences against
expected-differences.json. The offline and functional tests cover AWS-standard environment and profile endpoint inputs.The
6ebe6e3summary covered 2,065 scenarios per harness across 24 rows, with zero failing rows. It predates the later test-only and probe changes. The comparer also passed at91815a9on Linux and on Windowsnet472.Five pending rows pin current behavior.
B4/use-sslandKL-15cover the open proxy-mode HTTPS decision.B20tracks legacy ports.B24andB25track catalog updates. Endpoint behavior referenceDifferential summary table (Cake run at
6ebe6e3, net10.0)config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>presign.signingRegion:us-east-1→eu-central-1request.signingRegion:us-east-1→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>request.signingRegion:us-east-1→eu-central-1creation:LocalStack.Client.Exceptions.MisconfiguredClientException: RegionName must be set if useSe…→LocalStack.Client.Exceptions.MisconfiguredClientException: RegionName must be set unless C…creation:ok→Amazon.Runtime.AmazonClientException: The specified 'bad_region' region is not a valid hos…observed only by 3.0: config.authenticationRegion, config.disableHostPrefixInjection, config.forcePathStyle, config.proxy, config.regionEndpoint, config.serviceUrl, config.useDualstackEndpoint, config.useFipsEndpoint, config.useHttp, request.accessKeyId, request.host, request.outcome, request.path, request.port, request.scheme, request.signingRegion, request.signingService
config.authenticationRegion:<none>→my-regionconfig.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>request.signingRegion:us-east-1→my-regioncreation:System.Reflection.TargetInvocationException > Amazon.Runtime.AmazonClientException: The Re…→okobserved only by 3.1: config.authenticationRegion, config.disableHostPrefixInjection, config.proxy, config.regionEndpoint, config.serviceUrl, config.useDualstackEndpoint, config.useFipsEndpoint, config.useHttp, request.accessKeyId, request.host, request.outcome, request.path, request.port, request.scheme, request.signingRegion, request.signingService
config.authenticationRegion:<none>→eu-west-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>config.regionEndpoint:eu-west-1→<none>config.serviceUrl:<none>→http://localhost.localstack.cloud:4566/request.host:s3.eu-west-1.amazonaws.com→localhost.localstack.cloudrequest.host:sns.eu-west-1.amazonaws.com→localhost.localstack.cloudrequest.host:sqs.eu-west-1.amazonaws.com→localhost.localstack.cloudrequest.port:80→4566creation:System.Reflection.TargetInvocationException > Amazon.Runtime.AmazonClientException: The Re…→okobserved only by 3.1: action, config.authenticationRegion, config.disableHostPrefixInjection, config.proxy, config.regionEndpoint, config.serviceUrl, config.useDualstackEndpoint, config.useFipsEndpoint, config.useHttp, request.accessKeyId, request.host, request.outcome, request.path, request.port, request.scheme, request.signingRegion, request.signingService
config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>request.locationConstraint:<none>→eu-central-1request.signingRegion:us-east-1→eu-central-1config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>request.signingRegion:us-east-1→eu-central-1config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>config.authenticationRegion:<none>→eu-central-1config.disableHostPrefixInjection:false→trueconfig.proxy:http://localhost.localstack.cloud:4566/→<none>request.signingRegion:eu-west-1→eu-central-1creation:System.Reflection.TargetInvocationException > Amazon.Runtime.AmazonClientException: The Re…→okobserved only by 3.1: action, config.authenticationRegion, config.disableHostPrefixInjection, config.proxy, config.regionEndpoint, config.serviceUrl, config.useDualstackEndpoint, config.useFipsEndpoint, config.useHttp, request.accessKeyId, request.host, request.outcome, request.path, request.port, request.scheme, request.signingRegion, request.signingService
Gates run
CI at
1199a5a: Build & Test on Linux, Windows and macOS, Native AOT on Ubuntu and Windows, and Dependency Review all passed. The pre-merge commits also passed 1,474 fast tests with zero IPv4 or IPv6 connects, Native AOT 36/36 per target, thenet472builds, package validation with 48/24 suppressions andcheck-source.Linux at
fd162benet10.0and 36/36 onnet11.0against LocalStack 4.14.0. Zero IL or AOT diagnostics.net10.0across LocalStack 4.14.0, LocalStack 2026.11.1 and Floci 2.5.0.check-sourceWindows at
fd162be(tr-TR, .NET Framework 4.8.1)build.ps1 --target testsexited 0. Of 2,067 results, 2,065 passed and 0 failed. The two skips are the knownnet472empty-environment-variable rows. All 51 read-order rows, the region-probe rows, the throwing-listener row andLibraryAssetTraceTestspassed onnet472.Windows at
91815a9build.ps1exited 0. Of 2,054 tests, 2,052 passed. The two skips were the knownnet472rows for empty environment variables.Earlier SDK floor check at
d9d06faClient tests passed 178/178 per modern target with Core 4.0.102.6. Extensions tests passed 63/63 per modern target with Core 4.0.102.11, Setup 4.0.102.4 and S3 4.0.104.4. This floor check covered the Client and Extensions suites.
Independent reviews
Older rounds use their equivalent ranges on the rebased branch.
6df0fff..cc00f3ecc00f3e..4bb67664bb6766..89afc4c89afc4c..b810e729c780c6..2f5b4ef2f5b4ef..82f4dab82f4dab..ad7515928c33f5..aa814c7aa814c7..6ebe6e3ad75159..28c33f56ebe6e3..cd82d6cb810e72..9c780c6cd82d6c..81ee57ecd82d6c..f0b441cf0b441c..91815a9cd82d6c..c58b956c58b956..fd162beKnown follow-ups (non-blocking)
TRACEguard does not accept space-separatedDefineConstants.LibraryAssetTraceTestscan mistake an operand byte for a call instruction and report a false positive.RegionEndpointretention for region-rejecting clients. B13 correctly states that those clients keep the standard endpoint and clearRegionEndpoint. Endpoint behavior referenceOpen owner decision
KL-15coversUseSsl=truein default proxy mode. The owner decision remains open. TheKL-15andB4/use-sslcomparison rows stay pending.Issue comment drafts
Updated closing comments for #27 and #50 exist in draft form. Both are unposted.