parsimony/internal/api
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi b8fcbf9acf fix(api): validate list name, domain and title on create
createList accepted a title with CR/LF (every later post to the list then
failed to rewrite and got 451) and names with '/', '<', '>' or tabs.

- name: lowercased, 1 to 30 characters of a-z 0-9 . _ -, no leading or trailing dot, no ".."
- domain: lowercased ASCII host name, labels of 1 to 63 characters
- title: non-empty single line, at most 200 characters, no control characters
- updateList uses the same title rule (it also refuses tabs and long titles now)
- tests: refused names, domains and titles, the accepted limits, nothing created for a bad title
2026-11-10 11:50:40 +01:00
..
api.go fix(api): validate list name, domain and title on create 2026-11-10 11:50:40 +01:00
api_test.go fix(api): validate list name, domain and title on create 2026-11-10 11:50:40 +01:00
limit.go fix(security): API token strength and brute-force lockout 2026-11-09 20:25:05 +01:00
limit_test.go test: pin the documented limits and close gaps found by mutation checks 2026-11-09 20:43:41 +01:00