Skip to content

[Rule Proposal]: TG-EDGE-001 - Serverless and Edge Function Secret Leakage[Rule]ย #5

Description

@githubmofo

๐Ÿ›ก๏ธ Proposed Rule ID

TG-EDGE-001

๐Ÿ“ Summary of the Rule

Security guardrails for serverless and edge computing environments (e.g., Vercel Edge Functions, Cloudflare Workers, AWS Lambda).

โš ๏ธ Why It Matters

In serverless runtimes:

  1. Global variables and module-scoped memory can persist across warm invocations, accidentally leaking sensitive user state between requests.
  2. In-memory secret caching on edge nodes can lead to credential exposure if execution context errors occur.

๐ŸŽฏ Proposed Scope & Guidance

  • Applies to: Cloudflare Workers, Next.js Edge Runtime, AWS Lambda.
  • Guidance: Enforce request-scoped state isolation and avoid global mutable variables for sensitive context.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions