#559 [API/Race] tenant_apps.py TOCTOU in enable_app/disable_app

closed medium Created 2025-12-17 16:30 · Updated 2025-12-17 19:58

Description

Edit
File: api/blueprints/v1/tenant_apps.py:554-657. SELECT to check current status, then UPDATE. Concurrent enable/disable requests could both see same state. FIX: Combine into UPDATE ... WHERE status = expected_status RETURNING.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...