routeperm

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Directories

Path Synopsis
Command routepermcheck runs the route-permission analyzer as a single-checker binary.
Command routepermcheck runs the route-permission analyzer as a single-checker binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL