#550 [API/Race] approvals.py no locking on approval state transitions

closed high Created 2025-12-17 16:30 · Updated 2025-12-17 18:59

Description

Edit
File: api/blueprints/v1/approvals.py:99-157. approve() and reject() endpoints call service without locking. Concurrent approvals/rejections can lead to inconsistent state. FIX: ApprovalService must use SELECT FOR UPDATE before state transition.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...