Documentation
¶
Overview ¶
Package routeperm implements a go/analysis pass that flags HTTP write routes (POST/PUT/PATCH/DELETE) registered in the routes package without a middleware.Require* wrapper.
this is the S3 invariant enforcement — every tenant-user write MUST have a permission check. The route-permission audit in docs/audits/2026-04-route-permission-audit.md confirmed no gaps exist today; this linter keeps it that way.
Opt-out directive: //routeperm:public — use for endpoints that are intentionally public (webhook receivers, OAuth callbacks, invitation-token flows).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "routepermcheck", Doc: "flags POST/PUT/PATCH/DELETE route registrations without middleware.Require*", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer is the exported go/analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.