endpoint-auth-checker

command
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package main — allowlist.go Known-safe auth middleware names and exempt route patterns. Adding an entry to either list requires a PR with documented rationale.

endpoint-auth-checker — static analysis tool that enforces auth middleware on every HTTP route.

Usage:

endpoint-auth-checker --dirs plugins/,plugins-pro/paid/,web/backend/ --fail-on-unknown --annotation-format github

Exit codes:

0 — no violations (or --fail-on-unknown not set)
1 — one or more routes lack a recognized auth middleware

Package main — middleware.go Classifies a route's middleware chain against the allowlist.

Package main — reporter.go Formats CheckResult violations for different output modes.

Package main — scanner.go AST walker that finds HTTP route registrations across chi/gin/echo/mux patterns.

Jump to

Keyboard shortcuts

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