candle-annotator/openspec
Marko Djordjevic b7f9b2e04d security: replace exception details with generic error in ML service HTTP responses
Replace all instances of `detail=str(e)`, `detail=f"...{exc}"`, and similar
patterns that exposed internal exception messages to HTTP clients in
services/ml/app/main.py. All exception details are now logged server-side
only via logger.error(), while clients receive a generic "Internal server error"
message. Fixes 9 handlers across predict, batch predict, pattern detection,
training start, training runs fetch, training run delete, dataset info,
build dataset, and model load endpoints.

Mark task 5.1 as completed in tasks.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 11:23:41 +01:00
..
changes security: replace exception details with generic error in ML service HTTP responses 2026-02-18 11:23:41 +01:00
specs sync: ml-ui-connection delta specs to main specs 2026-02-18 10:21:05 +01:00
config.yaml starting planning 2026-02-12 09:42:55 +01:00