SOLR-18235 Remove support for old PKI auth v1#4405
Merged
janhoy merged 4 commits intoapache:mainfrom May 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes the deprecated PKI Authentication protocol v1 (used for Solr 8.x -> 9.x rolling upgrades), leaving only the v2 SolrAuthV2 header/signature mechanism for inter-node authentication and updating docs/changelog accordingly.
Changes:
- Remove v1 protocol negotiation (sysprops
solr.pki.sendVersion,solr.pki.acceptVersions), v1 header handling (SolrAuth), and associated token generation/parsing code paths. - Simplify inter-node authentication detection and always emit/expect
SolrAuthV2. - Update/refocus tests and reference guide / upgrade notes; add changelog entry.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc | Adds Solr 10.1 upgrade note about PKI v1 removal; minor formatting cleanup. |
| solr/solr-ref-guide/modules/deployment-guide/pages/authentication-and-authorization-plugins.adoc | Removes v1 protocol documentation and describes v2 header format. |
| solr/core/src/test/org/apache/solr/security/TestPKIAuthenticationPlugin.java | Removes v1-related test logic and adds a legacy-header rejection test. |
| solr/core/src/test/org/apache/solr/cloud/TestRSAKeyPair.java | Deletes RSA encrypt/decrypt roundtrip test (previously used for v1-related crypto behavior). |
| solr/core/src/java/org/apache/solr/util/CryptoKeys.java | Removes RSA “raw” encrypt/decrypt helpers and key-size plumbing only used by v1. |
| solr/core/src/java/org/apache/solr/servlet/AuthenticationFilter.java | Treats only SolrAuthV2 as the internode PKI marker. |
| solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java | Removes v1 support paths/constants/caches; always generates and validates v2 tokens. |
| changelog/unreleased/SOLR-18235-remove-pki-v1.yml | Adds unreleased changelog entry for v1 removal and sysprop deprecation removal. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
epugh
approved these changes
May 8, 2026
janhoy
added a commit
that referenced
this pull request
May 10, 2026
(cherry picked from commit ef3d1a2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/SOLR-18235
The v1 feature was only needed for 8.x->9.x upgrades, and have been printing deprecation warnings in logs when in use. Safe to remove. Lots of code going away!
PR developed with AI assistance, plus manual review and some manual rewrite of the upgrade note