Skip to content

fix: bump aws-sdk-go-v2 SDKs for AWS European Sovereign Cloud (EUSC) support#1309

Open
nlang wants to merge 1 commit intosynfinatic:mainfrom
wabicloud:fix/eusc-region-support
Open

fix: bump aws-sdk-go-v2 SDKs for AWS European Sovereign Cloud (EUSC) support#1309
nlang wants to merge 1 commit intosynfinatic:mainfrom
wabicloud:fix/eusc-region-support

Conversation

@nlang
Copy link
Copy Markdown

@nlang nlang commented Apr 28, 2026

Summary

  • Bump service/sso v1.22.1 → v1.30.16 and service/ssooidc v1.26.2 → v1.35.20 (plus required transitive aws-sdk-go-v2 core / smithy-go / internal/configsources / internal/endpoints/v2 bumps).
  • These SDK versions add the aws-eusc partition with the correct DNS suffix amazonaws.eu and the regex ^eusc-(de)-\w+-\d+$. Without it, the SDK falls back to amazonaws.com and DNS resolution for EUSC endpoints (e.g. oidc.eusc-de-east-1.amazonaws.com) fails.
  • The new SDK modules require Go 1.24, so the go directive in go.mod is raised from 1.23 to 1.24.
  • No code changes — ssooidc.New(...) / sso.New(...) already let the SDK resolve the partition from the region.

Motivation

End users in the EU Sovereign Cloud (region eusc-de-east-1) currently hit:

dial tcp: lookup oidc.eusc-de-east-1.amazonaws.com: no such host
dial tcp: lookup portal.sso.eusc-de-east-1.amazonaws.com: no such host

because the vendored SDKs predate the aws-eusc partition.

Test plan

  • go build ./... clean
  • go test ./... all packages pass
  • go vet ./... clean
  • End-to-end verified by the reporter: RegisterClient and StartDeviceAuthorization against eusc-de-east-1 now resolve to *.amazonaws.eu and the device authorization flow completes.

Note on Go version

go.mod is bumped to go 1.24 because the upgraded SDK modules declare it as their minimum. If vars.GO_VERSION in CI is still below 1.24, it will need to be raised together with this change.

…support

The AWS European Sovereign Cloud uses the `aws-eusc` partition with a
distinct DNS suffix (`amazonaws.eu`), and regions named `eusc-de-east-1`,
etc. The previously vendored versions of `service/sso` (v1.22.1) and
`service/ssooidc` (v1.26.2) predate that partition and fall back to the
default `amazonaws.com` suffix, producing DNS lookup failures such as:

  dial tcp: lookup oidc.eusc-de-east-1.amazonaws.com: no such host
  dial tcp: lookup portal.sso.eusc-de-east-1.amazonaws.com: no such host

Bumping `service/sso` to v1.30.16 and `service/ssooidc` to v1.35.20
introduces the partition entry and the correct hostnames
(`oidc.{region}.amazonaws.eu`, `portal.sso.{region}.amazonaws.eu`).

Required transitive bumps: `aws-sdk-go-v2` core, `internal/configsources`,
`internal/endpoints/v2`, `smithy-go`. The new SDK modules require Go 1.24,
so the `go` directive is raised accordingly.

No code changes are needed: SSO/OIDC clients are already constructed with
just the region, and the partition/endpoint resolution is handled by the
SDK once the partition is known.
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