Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    Authorization Boundary Test Builder

    by heyhridyansh

    1

    Builds executable authorization tests to prove tenant isolation, ownership boundaries, and role enforcement.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Generate tenant isolation tests for the /api/documents endpoint using our existing Vitest setup and the DocumentPolicy.ts file. Include cross-tenant read and delete denial cases.

    Your agent does

    I have generated tests/auth/documents.tenant.test.ts. It includes 8 new cases:

    • Unauthorized cross-tenant GET (denied)
    • Foreign tenant DELETE attempt (denied)
    • Admin cross-tenant delete (denied)
    • Side-effect check: No events emitted on denied delete. Tests verified against Vitest.

    What you get

    Generate tenant-isolation tests to prevent cross-customer data leakage.Build negative test cases for sensitive actions like refunds and exports.Verify that background jobs and service accounts stay within their scope.Test role-revocation and permission-cache invalidation logic.

    About this skill

    The problem

    Existing authorization logic often lacks automated tests that prove isolation boundaries. Developers frequently rely on manual checks or surface-level unit tests that fail to catch cross-tenant data leaks, ownership bypasses, or stale permission cache regressions.

    What it does

    • Generates executable test files for tenant isolation, object ownership, and RBAC/ABAC boundaries.
    • Builds negative test cases to verify that unauthorized requests are explicitly denied across API, service, and data layers.
    • Verifies denial side effects to ensure no database mutations or events occur when access is rejected.
    • Identifies gaps between intended security policy and current code implementation.
    • Adds mutation-sensitive assertions that fail if specific authorization guards are removed or bypassed.

    Frameworks & tools

    Works with existing test suites including Jest, Vitest, Pytest, RSpec, PHPUnit, and Go testing. Supports REST, GraphQL, and background worker authorization patterns.

    Why this beats prompting it yourself

    This skill moves beyond simple "write a test" prompts by enforcing an evidence-based traceability model. It isolates predicates to ensure one permission check doesn't mask another's failure and maps tests to the shallowest enforcement layer for better performance.

    Use cases

    • Hardening tenant isolation in multi-tenant SaaS applications.
    • Proving role-based access control for sensitive exports, deletes, or refunds.
    • Testing service account and background job permission boundaries.
    • Verifying that privilege revocation or session expiration works as intended.

    Known limitations

    Requires access to existing policy code or authorization middleware to build confirmed test cases. It will not invent a permission model if the policy intent is missing or contradictory.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    More reviews for heyhridyansh5.0(1)

    Feedback buyers left on other skills by the same creator.

    Frequently Asked Questions

    Popular in Testing & QA