Commit Graph

10 Commits

Author SHA1 Message Date
julienfastre dadf3d72e3 Fix infinite retry loop on signing errors in worker
Catch SigningError separately (logged at ERROR level) and fix the ack/nack
logic so failed messages are requeued once then discarded, instead of being
requeued indefinitely or lost. Remove the bare `raise e` that crashed the
worker after each error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 15:36:54 +02:00
julienfastre 0e7d01f0fd Fix environment password encoding in SignOrchestrator init
Build image and push it to registry / build (push) Successful in 6m47s
Previously, the `PKCS12_PASSWORD` environment variable was used directly, which could lead to issues when it was not set. This change ensures the password is properly encoded when provided and defaults to `None` if not set.
2024-10-22 16:37:49 +02:00
julienfastre 97a2385167 Remove redundant 'TIMESTAMP_URL' environment variable check
Build image and push it to registry / build (push) Successful in 1m27s
The 'TIMESTAMP_URL' environment variable check was removed from the worker script as it is no longer required. This simplifies the code by eliminating unnecessary validation.
2024-10-22 12:07:08 +02:00
julienfastre 77aaf97d7b Add new TSA configuration environment variables
Build image and push it to registry / build (push) Successful in 1m1s
Included 'TSA_CONFIG_PATH', 'TSA_CERT_CHAIN', and 'TSA_KEY_PASSWORD' to the environment variable check in worker.py. This ensures the script validates these new required configurations before proceeding. Added an exception raise in the error handling block for better error management.
2024-10-21 18:53:52 +02:00
julienfastre c8042a6f84 Integrate local OpenSSL TSA for timestamping
Replaced HTTPTimeStamper with LocalOpensslTimestamp for TSA operations using a local OpenSSL CLI. Updated related configurations and dependencies to support this change, enhancing the timestamping process's reliability and security.
2024-10-11 16:13:34 +02:00
julienfastre 300b6f46f1 Add signatureZoneIndex to published message
The 'signatureZoneIndex' field is now included in the message body published to the outbound exchange. This change ensures that all necessary information is transmitted.
2024-09-03 14:34:05 +02:00
julienfastre ed81eb749c Remove unused import in worker.py
Deleted import of the 'io' module from worker.py as it was not being used. This helps clean up the code and potentially reduce memory usage. Cleaning up unused imports also makes the codebase more maintainable.
2024-09-03 14:33:53 +02:00
julienfastre 41ba98ee91 Fix signature box placement calculation
Adjusted the calculation of the signature box's bottom boundary to subtract the height instead of adding it. This change ensures that the signature is placed correctly within the designated zone on the PDF.
2024-09-03 14:33:45 +02:00
julienfastre 04c4709c84 configure for building worker within a docker image 2024-06-27 12:26:23 +02:00
julienfastre ef32d5d91c First commit: create mvp project
- create an orchestrator to orchestrate signature of pdf;
- create a worker to get request from amqp and resend it to amqp
2024-06-27 09:51:32 +02:00