Skip to content

Revert "chore(deps): bump rustls to 0.23.45" (#1376) - #1389

Merged
lucaspimentel merged 4 commits into
mainfrom
lpimentel/revert-rustls-0-23-45
Sep 23, 2026
Merged

lucaspimentel merged 4 commits into
mainfrom
lpimentel/revert-rustls-0-23-45

Conversation

@lucaspimentel

@lucaspimentel lucaspimentel commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Overview

Reverts #1376, which bumped rustls to 0.23.45.

rustls 0.23.45 requires aws-lc-rs >= 1.18, which pulls in AWS-LC-FIPS 4.x. AWS-LC-FIPS 4.x has not completed FIPS 140-3 certification; only the 3.x module is NIST CMVP validated. The bump therefore regressed our FIPS posture for FIPS builds, and this PR restores rustls 0.23.37, aws-lc-rs 1.16.2, aws-lc-fips-sys 0.13.13, and aws-lc-sys 0.39.0.

Because reverting reintroduces RUSTSEC-2026-0285, the advisory is accepted and ignored via bottlecap/.cargo/audit.toml so the cargo-audit CI job keeps passing. This mirrors the approach taken in DataDog/saluki#2606.

Removal criteria for the ignore: remove the RUSTSEC-2026-0285 entry from bottlecap/.cargo/audit.toml (and the Cargo.toml comment) once a FIPS-certified aws-lc-rs supporting rustls 0.23.45 is available, then re-apply the bump.

Testing

  • cargo metadata --locked succeeds in bottlecap/: reverted lockfile still satisfies Cargo.toml.
  • cargo audit in bottlecap/ exits 0: RUSTSEC-2026-0285 is ignored, no other advisories added to the ignore list, only the 9 pre-existing allowed warnings remain.
  • cargo fmt --check passes.

Reverts the bump of rustls to 0.23.45 because that version requires
aws-lc-rs >= 1.18, which pulls in AWS-LC-FIPS 4.x. AWS-LC-FIPS 4.x has
not completed FIPS 140-3 certification yet; only the 3.x module is NIST
CMVP validated, so the bump regressed our FIPS posture.

This mirrors the approach taken in saluki#2606:
DataDog/saluki#2606
Reverting rustls to 0.23.37 reintroduces RUSTSEC-2026-0285 (TLS 1.3
handshake messages accepted across encryption-level boundaries), which
is fixed in rustls >= 0.23.45. That version requires aws-lc-rs >= 1.18,
which pulls in AWS-LC-FIPS 4.x, pending FIPS 140-3 certification, so we
accept and ignore the advisory via bottlecap/.cargo/audit.toml until a
FIPS-certified aws-lc-rs is available. This mirrors the approach taken
in saluki#2606: DataDog/saluki#2606
@lucaspimentel
lucaspimentel requested a review from a team as a code owner September 23, 2026 20:51
@lucaspimentel
lucaspimentel requested review from DarcyRaynerDD and a lite review from Copilot September 23, 2026 20:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T20:54:52.188137Z 6ffdef9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-prod-us1-4

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The rustls requirement does not enforce an upper bound and may silently reintroduce incompatible versions.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Reverts the rustls upgrade to preserve FIPS-compatible AWS-LC versions while accepting the reintroduced advisory.

Changes:

  • Restores older rustls and AWS-LC dependency versions.
  • Adds the RUSTSEC-2026-0285 audit ignore.
  • Documents the intended dependency hold.
File Description
bottlecap/​Cargo.toml Documents the FIPS-driven version constraint.
bottlecap/​Cargo.lock Restores compatible dependency versions.
bottlecap/​.cargo/​audit.toml Ignores the accepted rustls advisory.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bottlecap/Cargo.toml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ffdef947d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bottlecap/Cargo.toml
@lucaspimentel
lucaspimentel merged commit 5bed6e7 into main Sep 23, 2026
56 of 62 checks passed
@lucaspimentel
lucaspimentel deleted the lpimentel/revert-rustls-0-23-45 branch September 23, 2026 22:37
lucaspimentel added a commit to DataDog/serverless-components that referenced this pull request Sep 24, 2026
#172)

RUSTSEC-2026-0285 (rustls TLS 1.3 handshake messages accepted across
encryption level boundaries) is fixed in rustls 0.23.45, but that version
requires aws-lc-rs >= 1.18, which pulls in AWS-LC-FIPS 4.x, pending FIPS
140-3 certification. Pin the direct rustls dependency below 0.23.45 and
waive the advisory in .cargo/audit.toml so cargo audit passes. Mirrors
DataDog/datadog-lambda-extension#1389 and DataDog/saluki#2606.
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.

3 participants