Skip to content

fix: error handling and crl delete#7150

Merged
vitormattos merged 8 commits intomainfrom
fix/issue-7036-error-handling-and-crl-delete
Mar 5, 2026
Merged

fix: error handling and crl delete#7150
vitormattos merged 8 commits intomainfrom
fix/issue-7036-error-handling-and-crl-delete

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

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>
@vitormattos vitormattos added this to the Next Major (34) milestone Mar 5, 2026
@vitormattos vitormattos self-assigned this Mar 5, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Mar 5, 2026
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable33

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos merged commit c88c66d into main Mar 5, 2026
73 checks passed
@vitormattos vitormattos deleted the fix/issue-7036-error-handling-and-crl-delete branch March 5, 2026 23:39
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Mar 5, 2026
@vitormattos vitormattos removed this from the Next Major (34) milestone Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant