CAMEL-23248 - Camel-PQC: Add stateful key usage tracking and warnings for XMSS/LMS#22264
CAMEL-23248 - Camel-PQC: Add stateful key usage tracking and warnings for XMSS/LMS#22264
Conversation
… for XMSS/LMS Add pre-sign remaining signature checks for stateful hash-based signature schemes (XMSS, XMSSMT, LMS/HSS). When remaining signatures reach zero, an IllegalStateException is thrown to prevent key reuse. When below a configurable threshold (default 10%), a WARN log is emitted. Add PQCStatefulKeyHealthCheck extending AbstractHealthCheck to report stateful key capacity via Camel's health API (remaining signatures, total capacity, exhaustion status). Add statefulKeyWarningThreshold config parameter to PQCConfiguration. Persist key state through KeyLifecycleManager after each signing to prevent index reuse across restarts. Add camel-health dependency to pom.xml. Add PQCStatefulKeyTrackingTest with 4 unit tests covering signature count decrease, key exhaustion, and StatefulKeyState model behavior. Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
… for XMSS/LMS Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
🧪 CI tested the following changed modules:
All tested modules (72 modules)
|
|
@oscerd Thanks for this contribution! Since it's already merged, here are some findings that may warrant a follow-up: 1. Redundant condition in
|
|
Thanks. Will add this to My backlog |
Description
Target
mainbranch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.