davsclaus opened a new pull request, #149:
URL: https://github.com/apache/camel-jbang-examples/pull/149

   Closes #148
   
   A new example on the `connect` rung, with the shop story: the payment 
provider posts a signed JSON event for each payment.
   
   - `platform-http` receives `POST /webhooks/payments`. Groovy computes the 
HMAC-SHA256 of the body with the shared secret, and a wrong or missing 
`X-Signature` gets 401 (`choice` and `stop`).
   - A valid event is answered with 202 at once; `wireTap` to a `seda` queue 
records the payment afterwards (two seconds).
   - An `idempotentConsumer` records a resent event only once.
   - `provider.camel.yaml` plays the payment provider and signs each event, one 
of them with a forger's key, so `camel run *` needs no other service.
   
   Checked locally: `camel validate yaml --canonical` reports nothing, `camel 
run *` logs what the README shows, and `camel test run` passes with Camel 
4.23.0 (the version CI uses). The test posts signed and forged events itself. 
It is added to `build.yml`, and `./generate-catalog.sh` updated the catalog and 
the README tables.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF


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