Merge fix/security-audit: RBAC/API-key-hash/cookie hardening

This commit is contained in:
h z
2026-06-01 09:23:35 +01:00
8 changed files with 74 additions and 25 deletions

View File

@@ -105,7 +105,9 @@ class CommentBase(BaseModel):
class CommentCreate(CommentBase):
task_id: int
author_id: int
# author_id is NOT accepted from the client — the comment is always
# attributed to the authenticated caller (server-side) to prevent
# author spoofing.
class CommentUpdate(BaseModel):