Skip to content

core: bump rustls - #26142

Merged
dominic-r merged 1 commit into
mainfrom
dominic/bump-rustls-security
Sep 14, 2026
Merged

dominic-r merged 1 commit into
mainfrom
dominic/bump-rustls-security

Conversation

@dominic-r

@dominic-r dominic-r commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Details

What does this PR change?

Bumps the workspace's exact rustls pin from 0.23.44 to 0.23.45 and regenerates Cargo.lock with cargo update -p rustls --precise 0.23.45. The existing FIPS feature remains enabled.

Why is this change needed?

RUSTSEC-2026-0285 affects the version currently pinned on main. Rustls accepted TLS 1.3 handshake messages at the wrong encryption level when they followed a key-changing message in the same record. Version 0.23.45 rejects these messages as required by the protocol.

The advisory says the handshake transcript remains authenticated, so a network-position attacker cannot use this issue to alter or complete a handshake. This update fixes the protocol validation defect; it does not address an authentication bypass.

cargo-deny now rejects the existing pin, causing unrelated PRs to fail the dependency advisory check, including #24369 and #24766. This separate update lets those PRs retain their original scope. It has no connection to authentik enterprise license validation.

How was this tested?

  • Reproduced the advisory failure with rustls 0.23.44, then ran make ci-lint-cargo-deny with 0.23.45: advisories, bans, licenses, and sources all pass.
  • make ci-lint-rustfmt passes.
  • cargo test --workspace --locked --no-run compiles all workspace test binaries.
  • The full Rust test suite in CI passes under nextest. Local execution was limited by database/configuration setup and a missing nextest installation.

Linked issues

Refs #24369 and #24766 for the affected CI runs.

Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

Prepared with Codex: dependency edit, lockfile regeneration, validation, and PR description.

@dominic-r
dominic-r requested a review from a team as a code owner September 14, 2026 16:15
@dominic-r dominic-r self-assigned this Sep 14, 2026
@dominic-r dominic-r changed the title core: bump rustls to fix TLS handshake validation core: bump rustls Sep 14, 2026
@netlify

netlify Bot commented Sep 14, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit c59fcdc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aa81da06dfcb50008edcf86
😎 Deploy Preview https://deploy-preview-26142--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Sep 14, 2026
@dominic-r
dominic-r enabled auto-merge (squash) September 14, 2026 16:19
@codecov

codecov Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.86%. Comparing base (31adac9) to head (c59fcdc).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26142      +/-   ##
==========================================
- Coverage   91.89%   91.86%   -0.04%     
==========================================
  Files        1171     1171              
  Lines       75653    75653              
  Branches     4056     4056              
==========================================
- Hits        69521    69495      -26     
- Misses       6090     6116      +26     
  Partials       42       42              
Flag Coverage Δ
conformance 33.69% <ø> (ø)
e2e 38.36% <ø> (+<0.01%) ⬆️
integration 29.96% <ø> (-0.45%) ⬇️
rust 42.89% <ø> (ø)
unit 93.45% <ø> (+<0.01%) ⬆️
unit-migrate 93.48% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@dominic-r
dominic-r merged commit 0bdb759 into main Sep 14, 2026
229 of 232 checks passed
@dominic-r
dominic-r deleted the dominic/bump-rustls-security branch September 14, 2026 16:53
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-c59fcdc9deb00d771a4b095d61011a93de36467f
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-c59fcdc9deb00d771a4b095d61011a93de36467f

Afterwards, run the upgrade commands from the latest release notes.

@dominic-r dominic-r added backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Sep 14, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.5 has conflicts: #26144

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.8 has conflicts: #26145

dominic-r added a commit that referenced this pull request Sep 14, 2026
This cherry-pick has conflicts that need manual resolution.

Original PR: #26142
Original commit: 0bdb759
dominic-r added a commit that referenced this pull request Sep 14, 2026
* Cherry-pick #26142 to version-2026.5 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #26142
Original commit: 0bdb759

* core: resolve rustls backport conflict

---------

Co-authored-by: Dominic Roy <[email protected]>
dominic-r added a commit that referenced this pull request Sep 14, 2026
Cherry-pick #26142 to version-2026.8 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #26142
Original commit: 0bdb759

Co-authored-by: Dominic Roy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants