Skip to content

KC-1176: Fix security audit needs_security_audit logic#1878

Merged
aaunario-keeper merged 1 commit intoreleasefrom
KC-1176-security-audit-score-refresh
Mar 18, 2026
Merged

KC-1176: Fix security audit needs_security_audit logic#1878
aaunario-keeper merged 1 commit intoreleasefrom
KC-1176-security-audit-score-refresh

Conversation

@aaunario-keeper
Copy link
Contributor

Corrects logic in needs_security_audit: remove the erroneous "or None" that forced password mismatch to always be true, and determine alignment by comparing stored score and breach-watch revisions only when a current password exists. Adds retrieval of score_revision and sec_revision and updates needs_alignment accordingly. Includes new unit and integration tests (unit-tests/test_security_audit.py and tests/test_security_audit_refresh.py) to validate revision-based alignment, password removal, and other audit-refresh scenarios.

Corrects logic in needs_security_audit: remove the erroneous "or None" that forced password mismatch to always be true, and determine alignment by comparing stored score and breach-watch revisions only when a current password exists. Adds retrieval of score_revision and sec_revision and updates needs_alignment accordingly. Includes new unit and integration tests (unit-tests/test_security_audit.py and tests/test_security_audit_refresh.py) to validate revision-based alignment, password removal, and other audit-refresh scenarios.
@aaunario-keeper aaunario-keeper merged commit c8d4e3d into release Mar 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant