davsclaus opened a new pull request, #30660:
URL: https://github.com/apache/camel/pull/30660

   [CAMEL-27450](https://issues.apache.org/jira/browse/CAMEL-27450)
   
   The `pgp` data format encrypted with CAST5 by default (`algorithm`) and 
hashed signatures with SHA-1 (`hashAlgorithm`). Both are outdated: GnuPG and 
RFC 9580 use AES and SHA-256 or better.
   
   ### Changes
   - `PGPKeyAccessDataFormat`: the defaults are now `AES_256` and `SHA256`. 
`PGPDataFormat` inherits them.
   - `camel-core-model` `PGPDataFormat`: `defaultValue` 9 / 8 on `algorithm` / 
`hashAlgorithm`, and descriptions and Builder Javadoc with the current example 
values.
   - Regenerated catalog JSON, XSDs, YAML DSL schemas and deserializers, and 
the XML/Java/YAML model writers. The writers now leave out `algorithm="9"` / 
`hashAlgorithm="8"` when a route is dumped.
   - Upgrade guide 4.24: a receiver that only supports CAST5 or SHA-1 sets 
`algorithm=3` / `hashAlgorithm=2`, with Java, XML and YAML examples. Decrypting 
and verifying are not affected, because the algorithms are read from the 
message.
   
   ### Tests
   - New `PGPDataFormatDefaultAlgorithmsTest`: checks the defaults, and that a 
message signed and encrypted with the defaults really uses AES-256 and SHA-256.
   - `mvn test` in camel-crypto-pgp: 73 run, 0 failures, 22 skipped (the 
already disabled ElGamal test). No existing test relied on the old defaults.
   
   The camel-spring-boot starter metadata picks up the new defaults when it is 
regenerated.
   
   Not for backport: this changes defaults. The OCB decrypt fix (CAMEL-27449) 
is a separate PR. Both touch `pgp-dataformat.adoc` and nearby Javadoc, so the 
second one to merge may need a small rebase.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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