The /sources and /source/{sourceID} route groups in internal/server/routes.go have 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 in internal/middleware/middleware.go is 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.
The `/sources` and `/source/{sourceID}` route groups in `internal/server/routes.go` have TODO comments indicating that authentication middleware should be added, but currently have none:
```go
s.router.Route("/sources", func(r chi.Router) {
// TODO: Add authentication middleware here
r.Get("/", s.h.HandleSourceList())
...
})
```
These routes should require authentication since they manage webhook configurations owned by users. The `Auth()` middleware in `internal/middleware/middleware.go` is 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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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