forked from SWISDATA/processintel
app: limit user-controlled computation to protect the hosted service #31
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Severity: improvement (high for the public multi-user deployment: one user can tie up the server)
Where
app/ui/export_ui/export_view.py:59-74app/ui/genetic_miner_ui/genetic_miner_view.py:14-28app/mining_algorithms/alpha_mining.py:46-60module.nix:141-147Problem
The application runs as one Python process for all users, and several inputs have no upper bound:
min_value=50, no maxmin_valueonlyMining runs synchronously in Streamlit's script thread and holds the GIL most of the time, so a single user can slow down or stall the service for everyone. Closing the browser tab does not stop a running computation.
Related: #54, #37, #39, #41, #45, #61.
Fix
Bound the resources a single session can consume:
max_value) for DPI (e.g. 600), population size and generations, and a maximum number of activities for the Alpha Miner, with a clear message to the userMemoryMax=,CPUQuota=,TasksMax=) inmodule.nixfrom
issues/SEC-001-unbounded-user-controlled-computation-dos.md(code analysis of commit6bcc646, 2026-10-03)