Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    Repair TLS SNI Routing Bugs

    1

    The problem Multi-tenant gateways and proxies often suffer from SNI leakage where wildcard matches cross boundaries or cached TLS contexts bleed between tenants.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Our Node TLS gateway routes SNI with hostname.endsWith(configuredName). A tenant named notexample.com can match example.com, and the context cache ignores the configuration generation. Repair with local certificates and handshakes. Preserve TLS versions, ciphers, ALPN, default policy, reload behavior, and errors.

    Your agent does

    SNI authority defect found. Raw suffix matching lacks a label boundary, and cached secure contexts are keyed only by normalized name rather than configuration generation. The repair uses exact and standards-bounded wildcard matching, binds contexts to immutable reload generations, preserves TLS/ALPN/default behavior, and validates adversarial names and concurrent local handshakes without disabling verification.

    What you get

    Prevent wildcard matches from crossing tenant ownership boundaries.Fix SNI normalization bugs for case-sensitive or trailing-dot hostnames.Resolve race conditions during TLS configuration hot-reloads.Secure cached TLS contexts to prevent data leakage between tenants.

    About this skill

    The problem

    Multi-tenant gateways and proxies often suffer from SNI leakage where wildcard matches cross boundaries or cached TLS contexts bleed between tenants. These routing bugs lead to incorrect certificate selection, broken upstream dispatch, and security vulnerabilities during configuration reloads.

    What it does

    • Identifies and repairs SNI normalization issues including case sensitivity, trailing dots, and IDNA encoding.
    • Enforces exact routing precedence to prevent suffix match hijacking (e.g., evil-example.com matching example.com).
    • Fixes race conditions between configuration hot-reloads and in-flight ClientHello handshakes.
    • Audits TLS context callbacks to ensure cached state is bound to the correct authority and tenant.
    • Generates deterministic local handshake fixtures and loopback tests to verify routing logic without production access.

    Frameworks & tools

    Works with repository-level configurations for TLS terminators, proxies, and gateways. Uses Read, Edit, and Bash for local environment validation.

    Why this beats prompting it yourself

    General LLMs often suggest weakening certificate validation or increasing timeouts to "fix" connection errors. This skill enforces a strict ownership contract, ensuring validation occurs before dispatch and that observability remains redacted and protocol-compliant.

    Use cases

    • Fixing wildcard certificate routing that incorrectly matches multi-label subdomains.
    • Preventing tenant context leakage in high-concurrency TLS termination environments.
    • Hardening SNI parsers against malformed or ambiguous authority headers.
    • Validating that configuration reloads do not interrupt or misroute active TLS handshakes.

    Known limitations

    Cannot contact production services or read live secrets. It does not modify TLS versions, cipher policies, or global ALPN settings without explicit repository evidence.

    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

    Trust & safety

    Security scanned

    Verified clean today

    • One-time purchase, yours forever

    Listedtoday

    Frequently Asked Questions