Upgrade the AWS SDK to 2.55.12, realign Jackson on 2.18.11 and upgrade Swagger to 2.2.41 #506
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #506"
general
weight: 0.35
pacmano1
Supersedes #493, which bumps jackson-core alone to 2.18.11.
Summary
A comment in
libs.versions.tomlsays the Jackson family can't be upgraded until the AWS SDK and Swagger are. This PR does all three in an order that keeps every library working with the Jackson version it gets:| Library | Before | After |
|---|---|---|
| AWS SDK | 2.15.28 (netty-nio-client already on 2.20.140) | 2.55.12 |
| Jackson | core 2.18.8, rest of the family 2.14.3 | 2.18.11 |
| swagger-core | 2.0.10 | 2.2.41 |
Jackson 2.18.11 and the newer copy of jackson-core bundled in the AWS SDK together clear 15 CVEs. Each commit lists its CVEs in its trailers.
The AWS SDK upgrade changes some behavior that channel scripts calling the SDK directly could notice. See [Changes for channel scripts](#changes-for-channel-scripts).
Why
jackson-databind 2.16 removed APIs that swagger-core 2.0.10 and AWS SDK 2.15.28 call, so the family was held on 2.14.3. Only jackson-core was bumped, for a security fix. databind 2.14.3 now has eleven open advisories.
The AWS SDK mix was already broken on its own:
ProxySystemSetting.HTTPS_PROXY_HOSTandSdkHttpRequest.forEachHeader.arnsmodule, which wasn't shipped. Parsing an S3 ARN failed withNoClassDefFoundError.Commits
1. Align the AWS SDK family on 2.55.12.
- 2.55.12 is the newest release past Renovate's 14-day minimum age, as of 2026-10-22.
- Since 2.17 the SDK parses JSON with its own shaded copy of Jackson (
third-party-jackson-core), so it no longer depends oncom.fasterxml.jacksonat all. In 2.55.12 that copy is jackson-core 2.21.7, which has no advisories. 2.20.140, the version netty-nio-client was on, bundles 2.15.2, which has three.- New runtime modules, placed with the rest of the SDK:
arns,checksums,checksums-spi,crt-core,endpoints-spi,http-auth,http-auth-aws,http-auth-aws-eventstream,http-auth-spi,identity-spi,json-utils,retries,retries-spi,third-party-jackson-coreandutils-lite.- No other library changes. The SDK's POMs ask for newer netty, httpcore, slf4j and reactive-streams, but every reference resolves against the versions we already ship. The only new non-AWS entries in
verification-metadata.xmlare two BOM POMs:junit-bom, imported by the SDK'sbom-internal, andjetty-bom, imported by netty-nio-client's POM. No jars come from them.-
apache5-clientis left out. Since 2.46 it's the default HTTP client of the service clients, but our S3 connector setsApacheHttpClientexplicitly. Withoutapache5-clienton the classpath, a client built without an HTTP client still gets
ApacheHttpClient, as before.- The client still ships only
regionsandutils. Those cover the only calls it makes (Region.regions()andRegion.id()). The region list grows from 31 to 53.2. Realign Jackson on 2.18.11 and upgrade Swagger to 2.2.41. Neither Swagger version works with the other's Jackson, so both move together.
- Jackson 2.18.11: it's the first release with no open advisories in any module we ship. 2.18.8 still has nine in databind and two in core. The 2.19 line is no longer maintained, and its last release has sixteen.
- Swagger 2.2.41: it's the first release that keeps
DashboardStatus.childStatusesin/api/openapi.json. The first release built for Jackson 2.18 (2.2.28) drops that property. 2.2.41 is built against Jackson 2.19.2, but every Jackson member it references exists in 2.18.11.
- It adds no new runtime dependencies.
3. Pin the operationIds of overloaded API methods.
- Swagger names the second of two overloaded methods
<name>_1. 2.2.41 reads the methods in the opposite order from 2.0.10, so ten pairs swapped IDs. For example,getEventsmoved fromGET /eventstoPOST /events/_search.- The 20 affected operations now set
operationIdexplicitly, using the names from one run of the previous spec.Checksums in
verification-metadata.xmlwere regenerated with a cold cache, as CONTRIBUTING.md describes.Changes for channel scripts
Channel scripts can call the AWS SDK directly. These changes between 2.15.28 and 2.55.12 could affect them:
ates checksums too. It only talks to AWS endpoints, so it shouldn't break this way, but S3 reads and writes are on the manual test list. To turn it off, set
requestChecksumCalculation(RequestChecksumCalculationon the client builder or.WHEN_REQUIRED)
AWS_REQUEST_CHECKSUM_CALCULATION=when_requiredin the environment.o 2.55.12.
-
JavaSystemSetting.USER_REGION;-
core.util.json.JacksonUtils;- the
services.s3.checksumsclasses;- the metadata classes of retired AWS services.
-
HttpCredentialsProvideris now an interface instead of an abstract class.- The STS credential providers'
getUpdatedCredentialsreturnsAwsSessionCredentials.-
NoOpSigneris final.- The JSON protocol factories use the SDK's shaded
JsonFactory.The credential interfaces moved to
identity-spi, but existing calls still work.Changes to the OpenAPI document
The API's responses don't change: payloads are written by XStream, not Jackson. The generated spec does change, and each change makes it describe those payloads correctly:
byte[]properties (Attachment.content,RawMessage.rawBytes,EncryptionSettings.secretKey) are nowtype: string, format: byte. The old spec said they were arrays of strings. The server has alwayssent a base64 string, e.g.
"rawBytes":"aGk=".CodeTemplateLibrarySaveResultnames its exceptionlibrariesCauseinstead ofcause.librariesCauseis the name the server sends.oasdiff breakingflags the first two changes. It reports 18 errors for the type change and 2 warnings for the removedcauseproperty. They only affect clients generated from the old spec, and those clients couldn't read the real responses for these fields anyway.
On main, the operationIds of overloaded methods could change between restarts, because Swagger 2.0.10 followed Java's method order. 2.2.41 sorts the methods itself, so they're now fixed. The 20 pinned here keep the names one run of main produced.
Testing
Claude checked:
./gradlew clean build dist: all 722 tests pass.software.amazon.awssdk,com.fasterxml.jacksonandio.swaggerresolves, except:- the optional aws-crt native library, which wasn't shipped before either;
- three Bean Validation 2.0 constraints that only models annotated with them would reach;
- log4j-core's optional XML and YAML layouts, which were unresolved before.
-
/api/openapi.json,/api/openapi.yamland Swagger UI load.- The spec has the same 212 operations as before, with the same operationIds as the run of main it was compared with.
regionsandutilson the classpath.internalpackages. That gave the changes listed above. Claude checked the "removed method" hits by hand: methods that only moved to a superclass aren't listed.To compare the specs yourself:
oasdiff changelogon the old and new specs (strip theexampleskeys first, because they reference external files);diff <(jq -S . old.json) <(jq -S . new.json).~~Still to test by hand:~~ See this commit for test results on the following:
Release notes
arnsmodule that S3 ARN parsing needs, and its bundled JSON parser has no known advisories. Channel scripts that call the SDK directly should review [Changes for channel scripts](#changes-for-channel-scripts), in particular the S3 checksum default and the 2.28.1 minimum for other AWS service jars. S3 access point ARNs now work in the File connector's S3 Bucket field, in the colon formarn:aws:s3:<region>:<account>:accesspoint:<name>/<prefix>. The slash form the AWS console shows (...:accesspoint/<name>) fails with "Invalid ARN".byte[]fields as base64 strings and namesCodeTemplateLibrarySaveResult.librariesCausecorrectly. Clients generated from the spec may need tobe regenerated.
---
🤖 Drafted with Claude Code