What problem does it solve?
The rule enforces security policies when editing critical code paths and infrastructure files, ensuring that edits adhere to centralized security standards.
The policy is defined to require application-level controls for authentication, authorization, input handling, secrets management, and dependency governance across Python, TypeScript, Terraform, and Docker-related edits.
Core Features & Use Cases
- Authentication and Authorization: Enforce consistent authentication checks and authorization enforcement in code edits to prevent access violations.
- Input Validation: Enforce validation at the edge using well-defined schemas with explicit types and constraints to prevent invalid or unsafe data handling.
- Secrets and Dependencies: Prevent secrets from being committed; require secrets to be loaded from secure stores at runtime; pin dependencies and monitor transitive updates for license compliance.
- Coverage: Applies across api/src//*.py, frontend/src//.{ts,tsx}, infra/**/.tf, and Dockerfiles to maintain uniform security posture during edits.
Quick Start
Review code changes and apply security-rule checks before submitting a pull request.