[Bounty proposal] fix(backend/updates): sanitize value error reflections and prevent internal state leaks ($50 proposed)
Following the contribution guide's invitation to propose paid work — @kodjima33, @josancamon19, would a US$50 bounty be appropriate for this? Proposed amount, not an existing award. Fix and tests are already up as PR #18910.
What problem is being solved?
In backend/routers/updates.py, caught ValueError exceptions across promote_beta_candidate, set_beta_admission, and multiple other endpoints reflected raw str(exc) directly into HTTP 409 responses. When state machine transition failures or internal database generation mismatch errors occur, internal exception strings and release ID states leaked to API clients.
What is the solution?
- Sanitized all
ValueErrorhandlers across updates endpoints using_sanitize_update_errorto return structured machine-readable error keys. - Added
backend/tests/unit/test_updates_error_sanitization.pyto ensure masking behavior.
Fix is implemented and tested in PR #18910.
Closing as a duplicate of #18767. same ValueError detail=str(exc) in backend/routers/updates.py:1119; #18767 is the earlier open updates/imports issue