Source management routes lack authentication middleware #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
/sourcesand/source/{sourceID}route groups ininternal/server/routes.gohave TODO comments indicating that authentication middleware should be added, but currently have none:These routes should require authentication since they manage webhook configurations owned by users. The
Auth()middleware ininternal/middleware/middleware.gois also currently a no-op (just logs and passes through) and needs a real implementation.Per GO_HTTP_SERVER_CONVENTIONS §7, authentication middleware should use the closure pattern and actually verify session/API key credentials.
clawbot referenced this issue2026-03-02 00:56:20 +01:00