Commit Graph

20 Commits

Author SHA1 Message Date
4f89f59232 fix(cluster-3): http hardening (M15/M16/M14/C2)
- pagination: clamp per_page to [1,100] and page to >=1 in the parser,
  guard the TotalPages division against per_page=0 (panic), and clamp the
  current page to [1,totalPages]; preserves cursor (next-token) mode
- middleware: add panic-recovery as the outermost middleware so handler
  panics return a 500 instead of crashing the process; re-panics
  http.ErrAbortHandler to keep file serving intact
- index: bound the index page query (Limit:200) so it no longer drains
  the entire courses table in 1000-row batches
2026-06-28 04:31:21 +00:00
23c29aba1d fix(cluster-1): data corruption fixes (C4/C5/C8)
- synchandler: combine course date with clock time via time.Date instead
  of adding two absolute Unix epochs, which produced corrupt start times
- tracing: make DeploymentEnvironment configurable via config.Trace
  (defaults to development instead of hardcoded production)
- http: align course handler tracer name to 'kuriweb.http' to match the
  request middleware instrument so spans share the same tracer
2026-06-27 23:54:07 +00:00
348c737163 add host support 2024-09-25 00:48:47 +03:00
c3d6510a7d support metrics sending via grpc 2024-09-25 00:47:12 +03:00
c7fada2c54 update trace logic 2024-09-24 21:59:33 +03:00
c0f45d98c2 count courses by school 2024-06-16 23:55:49 +03:00
3a9e01a683 rework list courses page to be flatten 2024-04-19 00:13:03 +03:00
605e117586 add pagination 2024-04-07 23:49:06 +03:00
68810d93a7 add opentelemetry tracing 2024-04-02 15:23:22 +03:00
6d1769ff24 make bootstrap site be more cool 2024-03-03 00:55:43 +03:00
e5dfccabbf use tailwind 2024-02-10 20:22:30 +03:00
d5f76f4e07 add templ engine 2024-01-21 16:49:47 +03:00
8b8a7618a2 finish breadcumbs and categories 2024-01-11 19:17:26 +03:00
067c63baa8 add favicon and breadcumbs 2024-01-11 11:55:37 +03:00
5fd0861e2d filter by learning_types and course_thematics 2024-01-10 00:02:40 +03:00
728c8fa59e embed assets and minor fixes 2024-01-09 15:19:53 +03:00
2c0564f68c add show course and map names 2024-01-08 18:31:35 +03:00
48f5d80f7a add more style 2024-01-05 23:03:15 +03:00
fbe9927ac3 able to update desc for course 2023-12-18 00:14:07 +03:00
1d4e8e10fb implement webserver 2023-12-17 21:21:13 +03:00