Skip to content

Classify configurable guard synonyms#123

Merged
bjcorder merged 1 commit into
mainfrom
issue-114-guard-synonyms
Jul 10, 2026
Merged

Classify configurable guard synonyms#123
bjcorder merged 1 commit into
mainfrom
issue-114-guard-synonyms

Conversation

@bjcorder

@bjcorder bjcorder commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add validated authorization.synonyms guard families with exact and trailing-wildcard matching that emits high-confidence canonical evidence.
  • Separate built-in exact matching from low-confidence whole-token guard heuristics, preserving the matched token in evidence notes.
  • Apply shared classification to Django decorators/DRF permission entries, Express, FastAPI, Next.js, and tRPC procedure roots.
  • Add ready-to-paste authorization.synonyms YAML to Markdown rule suggestions and document the configuration behavior without changing the AuthMap JSON schema.

Safeguards

  • Token heuristics require a guard-like name or a can-prefixed check, preventing false positives such as PermissionError and non-token substrings such as unadministered.

Verification

  • cargo check --workspace --all-targets --locked
  • cargo test --workspace --all-targets --locked

Closes #114

@bjcorder
bjcorder merged commit 4aec76e into main Jul 10, 2026
15 checks passed
@bjcorder
bjcorder deleted the issue-114-guard-synonyms branch July 10, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Classification: configurable guard-name synonyms and word-boundary heuristics for custom permission names

1 participant