janhoy opened a new pull request, #5436:
URL: https://github.com/apache/solr/pull/5436

   🤖 AI Assisted
   
   https://issues.apache.org/jira/browse/SOLR-14649
   
   Package and file store signatures were verified with insecure SHA1withRSA, 
and docs and tests used 512-bit RSA keys.
   
   # Solution
   
   - Verify `SHA512withRSA` only; ignore trusted RSA keys shorter than 2048 
bits.
   - Deprecated opt-in `solr.packages.sha1.enabled=true` (default false) also 
accepts SHA1 signatures and short keys, logging a warning.
   - Error message on mismatch says what is required and names the property.
   - Stream verification now tries all trusted keys (previously the first key 
consumed the stream).
   - Removed the unused public static `CryptoKeys.verify(PublicKey, ...)` 
methods.
   - Ref guide, `solr-properties.adoc` and Solr 10.2 upgrade notes updated; 
changelog added.
   
   Targeted for 10.2. Breaking: packages signed with SHA1 or short keys, 
including installed ones, fail to load unless the property is set.
   
   # Tests
   
   - New `CryptoKeysTest`: SHA512 accepted, tampered data rejected, SHA1 and 
1024-bit keys rejected by default and accepted with the property.
   - Package tests now sign at runtime with a new 2048-bit test key; test 
repository re-signed with SHA512.
   - Ran `CryptoKeysTest`, `TestDistribFileStore`, `TestContainerPlugin`, 
`org.apache.solr.pkg.*`, `PackageToolTest`, `TestPKIAuthenticationPlugin` (27 
pass), `tidy`, `check -x test`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to