Skip to content

[stable32] fix: error handling and crl delete#7154

Merged
vitormattos merged 8 commits intostable32from
backport/7150/stable32
Mar 5, 2026
Merged

[stable32] fix: error handling and crl delete#7154
vitormattos merged 8 commits intostable32from
backport/7150/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #7150

Call CRL revocation by user UID before deleting the PFX file.

Use CESSATION_OF_OPERATION with a reason description to keep auditability when certificates are removed by the account owner.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Differentiate certificate validation errors from missing-signature-password flow.\n\nUse HTTP 422 for revoked, invalid, expired, and unverifiable revocation status cases to avoid incorrect UI actions.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add test to ensure certificate validation API errors are kept as signError.

Assert the store preserves the original API message list and does not infer missing-certification actions.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add submitSignature test for API signError with revoked certificate response.

Verify the certificate modal is not opened and signing errors are stored for user feedback.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Cover handler behavior for certificate revocation errors returned as code 422.

Ensure these errors do not trigger signature password creation actions.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Inject CrlService in AccountService test setup and assert deletePfx behavior.

Verify revocation is called with owner UID, reason code, and reason text before deleting the PFX.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Expand certificate validation tests to assert LibresignException error codes.

Cover 422 for revoked, expired, invalid, and revocation-status-unverifiable certificate scenarios.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Mar 5, 2026
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (32) milestone Mar 5, 2026
@vitormattos vitormattos merged commit f137b52 into stable32 Mar 5, 2026
65 checks passed
@vitormattos vitormattos deleted the backport/7150/stable32 branch March 5, 2026 23:55
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant