security

Configures JWT authentication, secret handling, rate limiting for APIs.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill security-diegoknsk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/diegoknsk/video-processing-engine-video-management-lambda/tree/main/.cursor/skills/security
Command: npx skills add https://github.com/diegoknsk/video-processing-engine-video-management-lambda --skill security-diegoknsk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security for APIs across REST and serverless boundaries is complex, requiring robust handling of authentication, authorization, secrets management, rate limiting, CORS, and secure headers to prevent exposures.

Core Features & Use Cases

  • JWT-based authentication and token validation for stateless APIs.
  • Secrets management guidance for development (user secrets) and production (environment variables).
  • Rate limiting, CORS, HTTPS enforcement, and secure headers best practices to protect APIs.
  • Use Case: Apply these patterns when deploying an API gateway or Lambda-backed API to prevent unauthorized access and data leakage.

Quick Start

Perform a secure API setup by configuring JWT authentication, environment-based secret management, and rate limiting in your service.

Frequently Asked Questions about security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure a serverless API with JWT authentication?

To secure a serverless API with JWT, you implement stateless token validation to verify user identity and prevent unauthorized access across production-ready services. This approach enforces robust authentication without maintaining server-side sessions.

What is the best way to manage secrets for production APIs?

The best way to manage secrets for production APIs is using environment variables, while utilizing user secrets during development. This separation prevents sensitive data leakage and ensures secure secret storage across different deployment stages.

How do I configure rate limiting and CORS for an API gateway?

Configuring rate limiting and CORS for an API gateway involves setting strict policies to control traffic flow and restrict cross-origin access. This protects backend resources from abuse and ensures safe data exposure to authorized domains.

Does this approach work for Lambda-backed APIs?

Yes, this approach works specifically for Lambda-backed APIs and serverless boundaries. It applies security configurations including HTTPS enforcement and secure headers to prevent data leakage in serverless environments.

Why do I need HTTPS enforcement and secure headers for stateless APIs?

You need HTTPS enforcement and secure headers for stateless APIs to encrypt data in transit and mitigate common vulnerabilities. These best practices ensure robust API security configurations and prevent unauthorized data exposures.