refactor: dedupe CA download and client status code (CodeScene) #65
No reviewers
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra!65
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/codescene-duplication"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Small refactor from the CodeScene full audit. No behaviour change.
cert_management_controller.ex:download_ca_by_serial,download_root_caanddownload_sub_cashare onesend_ca_pem/3. Content type, filenames (mdid-root-ca.pem,mdid-sub-ca.pem, derived from the issuer type) and the three 404 messages are unchanged. CodeScene: 9.09 to 9.68.client_credentials.ex:suspend_clientandreactivate_clientshare a privateset_status/2. CodeScene: 9.38 to 10.AGENTS.md: a short CodeScene section (runcode_health_reviewafter changes;schemas.ex,router.exandendpoint.excannot be scored).not_foundon suspend and reactivate.Not changed:
enrollment_responsestill has cyclomatic complexity 11 (controller stays at 9.68);api_spec.exstays at 8.34.Verification:
mix precommit330 passed; whole-app coverage 83.97% (ClientCredentials 90.16%, CertManagementController 87.00%). Two-pass review: Pass 1 found stale baseline numbers in the AGENTS.md note (removed); Pass 2 found no critical or important issues and suggested the not_found test (added). Not checked: the "Root CA not found" and "Sub CA not found" 404 messages are not pinned by any test (they are passed through unchanged).🤖 Generated with Claude Code