Repository navigation
fix(security): enigma review findings CTO-4878/4881/4882/4884/4885/4886/4889 - #358
Merged
Merged
Conversation
…y chain (CTO-4878/4881/4882/4884/4885/4886/4889) - F-041 get_dashboard_data: DB membership check + row lock in one transaction - F-033 mark_revoked: return real status (200/400/500) instead of always 403 - F-034 RepeatedValidator: [:3] slice; password_changed stops storing duplicates - F-036 CID_GENERATOR: uuid4 instead of random.random() - F-037 CI: drop --ignore-installed for access-module requirements - F-038 CI: remove pre-commit autoupdate, pin hook revs to commit SHAs - F-030 Dockerfile: drop vim and curl from the image Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
…3.12+ (CTO-4885 needs a proper fix) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… --ignore-installed (F-037) Module requirements can no longer downgrade or override security-pinned core packages. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
vedharish
approved these changes
Nov 12, 2026
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
Fixes the open enigma security-review findings.
str(QuerySet)), done with the create undertransaction.atomic()and aselect_for_updatelock on the user row. Access grant runs after the lock is released.mark_revokedalways 403[:3].password_changedcompared a freshly salted hash, so it never matched and stored a duplicate each time; it now compares against the latest stored hash.random.random()uuid.uuid4().hex.--ignore-installeddocker-entrypoint.sh; module requirements are installed with-c requirements.txt, so core security pins win and a module cannot downgrade them. Core pinsix1.15.0 -> 1.17.0 (1.15 has nosix.moveson Python 3.12+;--ignore-installedhad been hiding this by pulling a newer six).pre-commit autoupdatein CIvimandcurlremoved (see limits)..dockerignorealready on main (3d85dfc).Limits (not fully closed by this PR)
[:3:-1]still checked the last 3 passwords. The "check bypassed" claim does not reproduce; the real bug was the duplicate rows. Testtest_recent_password_is_rejected_even_with_short_historypasses before and after.git,openssh-client,gcc/build-essentialstay.docker-entrypoint.shclones the access modules and pip-installs their requirements at container start. Removing them needs those steps moved to build time (follow-up).MembershipV2legitimately holds several rows per (group, user) across statuses, and existing duplicates would break the migration.Testing
Access/tests/test_security_batch3.py, rewrittenbootprocess/tests/test_views_helper.py(real DB instead of model monkeypatching). 6 of the new tests fail on the old code.pylama(CI scope) clean.make test: 151 passed, 8 skipped;make lintpassed. Image has novimorcurl.🤖 Generated with Claude Code