Repository navigation
[Superseded — not merged] feat(signing): experimental persistent signing sessions (#9600) - #9666
Closed
vitormattos wants to merge 4 commits into
Conversation
…states (#9600) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…9600) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
…submission (#9600) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
22 of 26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the backend-only authoritative, resumable external signing session persistence for #9600 on top of the exact current PR #9611 HEAD. This is a stacked PR targeting
feat/9595-external-provider-catalog-20261121, notmain.Base HEAD:
9452c4a2387051c37eba1850cf8e09c97f89d8f5Head (4 individually OpenPGP-signed, DCO commits):
d5165270e6293605cc5e1f11a1f8c7d5e6a223c9Integration points: #8356 (architecture), #9603 (future workflow orchestration).
Changes
uncertain.unserialize()of client-controlled state.READY_TO_SIGN -> SIGNING_PENDINGclaim before provider submission. A timeout/crashed PHP worker cannot silently release it for automatic cryptographic retry.SIGNATURE_RECEIVED -> COMPLETING -> COMPLETEDpath; repeat completion is idempotent.Verification performed
php -lfor five new PHP files: pass (PHP 8.4 CLI in isolated Docker container).git diff --check: pass. Compare against PR feat(signing): consolidate CSC driver catalog, encrypted configuration and admin OCS API #9611: 4 commits ahead, 0 behind, exactly 6 new files.Security and integration limits — do not claim production readiness yet
signHashor the PDF engine. Complete the CSC external signing lifecycle in LibreSign workflows #9603/Integrate the SignerPHP CSC v1 client with configured LibreSign integrations #9602 must persistSIGNING_PENDINGbefore any single remote private-key operation and must not automatically retry an uncertain result. Reconciliation needs an actually supported adapter mechanism or explicit authorized resolution.COMPLETINGstate is only a durable reservation. A crash after publication must reconcile the workflow state, not republish.signHashwere not executed. Do not infer them from SQLite tests.Review focus
Please review the protocol boundary and whether lifecycle persistence safely handles provider ambiguity, encrypted-state size limits, database portability, and terminal-secret erasure before enabling the experimental workflow. This PR is intentionally a draft until the cross-service integration and remaining negative-path coverage are accepted. AI-assisted implementation was used.