Skip to content

Revert "Fail fast on invalid certificates at TLS config load (#2999)" - #3572

Merged
madolson merged 1 commit into
valkey-io:9.1from
sarthakaggarwal97:revert-pr-2999-from-9.1
Apr 27, 2026
Merged

madolson merged 1 commit into
valkey-io:9.1from
sarthakaggarwal97:revert-pr-2999-from-9.1

Conversation

@sarthakaggarwal97

Copy link
Copy Markdown
Contributor

This reverts commit eb3f465.

As discussed in the TSC Core Meeting, this PR reverts #2999 from Valkey 9.1. We plan to do in next major version as it's a breaking change.

Note: Merge conflicts in src/tls.c includes were resolved due to overlapping changes from PR #2913, which added tlsUpdateCertInfoFromDir() with shared header dependencies.

…io#2999)"

This reverts commit eb3f465.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@sarthakaggarwal97
sarthakaggarwal97 marked this pull request as ready for review April 27, 2026 18:40
@codecov

codecov Bot commented Apr 27, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 74.46%. Comparing base (6b85ca4) to head (93237ba).
⚠️ Report is 68 commits behind head on 9.1.

Additional details and impacted files
@@            Coverage Diff             @@
##              9.1    #3572      +/-   ##
==========================================
- Coverage   74.57%   74.46%   -0.11%     
==========================================
  Files         130      130              
  Lines       72731    72731              
==========================================
- Hits        54239    54161      -78     
- Misses      18492    18570      +78     
Files with missing lines Coverage Ξ”
src/tls.c 17.64% <ΓΈ> (ΓΈ)

... and 23 files with indirect coverage changes

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@madolson madolson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tests seem unrelated, we should be able to just merge this.

@madolson

Copy link
Copy Markdown
Member

Not going to wait for valgrind.

@madolson
madolson merged commit 6997657 into valkey-io:9.1 Apr 27, 2026
48 of 76 checks passed
sarthakaggarwal97 added a commit to sarthakaggarwal97/valkey that referenced this pull request Apr 27, 2026
…o#3572)

Revert of valkey-io#2999 (Prevent invalid TLS certificates from being loaded)
was decided by TSC as it is a breaking change, deferred to next major.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@sarthakaggarwal97 sarthakaggarwal97 added the release-notes This issue should get a line item in the release notes label Apr 28, 2026
madolson added a commit that referenced this pull request Nov 24, 2026
Fixes #5506

Since 9.2.0, valkey-server refuses to configure TLS when any certificate
it loads is outside its validity period, so an expired old root left in
a `tls-ca-cert-file` bundle after a CA rotation stops the server from
starting, even though OpenSSL would never build a chain through that
cert. 9.1.3 starts fine on the same files. The checks came from
#2999 and #3522, which the TSC decided
were a breaking change: #3572 reverted them from 9.1 and
the plan was to land them in the next major, but the next release turned
out to be 9.2 rather than 10.0 and the revert was never carried over.
These two commits revert them from the 9.2 branch so 9.x behaves like
9.1 again; `unstable` keeps them for 10.0.

This was generated by AI but verified, with love, by a human.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes This issue should get a line item in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants