convex-security-check

Audit Convex applications with a security checklist for authentication and access control.

78|18|Updated Feb 20, 2025
One-click install
npx skills add https://github.com/nakafaai/nakafa.com --skill convex-security-check-nakafaai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex-security-check
Source: https://github.com/nakafaai/nakafa.com/tree/main/.agents/skills/convex-security-check
Command: npx skills add https://github.com/nakafaai/nakafa.com --skill convex-security-check-nakafaai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex security best-practices guidance helps developers identify and fix authentication gaps, function exposure risks, validation weaknesses, and misconfigurations related to environment variables.

Core Features & Use Cases

  • Security checklist covering authentication, function exposure, argument validation, row-level access control, and environment variable handling.
  • Concrete usage scenarios: code reviews, pre-release audits, onboarding new Convex projects.
  • Real-world example: audit a Convex app's login flow and ensure private data is restricted to authorized users.

Quick Start

Use this skill during security reviews of your Convex project. Review the checklist and apply recommended changes to your codebase.

Frequently Asked Questions about convex-security-check

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

FAQPage Schema
How do I audit my Convex app for security vulnerabilities?

To audit a Convex app for security vulnerabilities, use a structured checklist to review authentication, function exposure, argument validation, row-level access control, and environment variable handling to identify misconfigurations.

What is row-level access control in Convex and how do I enforce it?

Row-level access control in Convex ensures private data is restricted to authorized users. You enforce it by implementing explicit owner checks within your queries and mutations to prevent unauthorized data access and leakage.

How do I prevent unauthorized access to internal Convex functions?

Prevent unauthorized access to internal Convex functions by carefully distinguishing between internal and public functions. Keep sensitive logic internal and expose only necessary queries, mutations, and actions to the client.

Can I use this security checklist for pre-release code reviews?

Yes, you can use this Convex security checklist for pre-release audits and code reviews. It provides practical scenarios and test cases to verify explicit validators and secure environment variable usage before deployment.

Why does my Convex mutation accept invalid arguments without throwing an error?

Your Convex mutation accepts invalid arguments if it lacks explicit validators. Define strict argument validation rules on your queries and mutations to reject malformed inputs and enforce secure application patterns.