ppkarwasz commented on PR #5006:
URL: https://github.com/apache/calcite/pull/5006#issuecomment-4669026303

   _Disclaimer_: some shameless self-promotion :wink:
   
   Since changes like this one have been landing in many OSS projects lately, a 
month ago I wrote a small reusable library that hands you a hardened JAXP 
factory with a single method call:
   
   
https://javadoc.io/static/eu.copernik/copernik-xml-factory/0.1.0/eu/copernik/xml/factory/XmlFactories.html
   
   The library code itself wouldn't add much to a PR like this. What might be 
worth it is everything around the code: a continuously evolving test suite that 
runs against every JAXP implementation still in the wild, and the fact that a 
single dependency can act as a "scapegoat" for SAST tools and reviewers. 
Instead of every project re-deriving the full set of (often cargo-culted) 
properties and tripping XXE/SSRF warnings whenever one is missing, the 
hardening lives in one audited place.
   
   > [!NOTE]
   > The library is incubating, with the hope of landing in either Apache 
Commons or Xerces. I haven't had definitive feedback from either project yet, 
so I'll keep maintaining it for the foreseeable future.


-- 
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]

Reply via email to