secure-task-crud

Manage multi-tenant task REST API endpoints with per-user isolation.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/sarimofficial/HackathonlPhase-IV-AI-Powered-Kubernetes-Deployment-Minikube-Helm-kubectl-ai-Kagent-Gordon --skill secure-task-crud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secure-task-crud
Source: https://github.com/sarimofficial/HackathonlPhase-IV-AI-Powered-Kubernetes-Deployment-Minikube-Helm-kubectl-ai-Kagent-Gordon/tree/main/.claude/skills/secure-task-crud
Command: npx skills add https://github.com/sarimofficial/HackathonlPhase-IV-AI-Powered-Kubernetes-Deployment-Minikube-Helm-kubectl-ai-Kagent-Gordon --skill secure-task-crud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the need to build secure, multi-tenant REST API endpoints for task management with high-performance, non-blocking I/O.

Core Features & Use Cases

  • Strict Isolation: Implicitly filters all queries by current_user.id to prevent cross-tenant data access.
  • Ownership Validation: Enforces that users can only modify or delete their own tasks.
  • RESTful Design: Provides standardized routes for list, create, get, update, delete, and status toggling.
  • Payload Validation: Integrates with Pydantic/SQLModel for request/response serialization and validation.
  • Async Execution: Uses asynchronous DB sessions for non-blocking I/O.

Quick Start

Configure your FastAPI app with an authenticated user context, mount tenant-scoped routes, and implement endpoints using the patterns described here to ensure per-user isolation and asynchronous operation.

Frequently Asked Questions about secure-task-crud

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

FAQPage Schema
How do I build secure multi-tenant REST APIs in FastAPI with strict per-user isolation?

Build secure multi-tenant REST APIs by implicitly filtering all database queries by current_user.id. This prevents cross-tenant data access, ensuring strict per-user isolation for task management endpoints using asynchronous database sessions.

How does ownership validation work for async task management endpoints?

Ownership validation enforces that users can only modify or delete their own tasks. It checks the authenticated user context against the task owner before allowing update, delete, or status toggling operations on the asynchronous REST API endpoints.

Can I use Pydantic and SQLModel for payload validation in a FastAPI multi-tenant API?

Yes, you can use Pydantic and SQLModel for payload validation in a FastAPI multi-tenant API. The framework integrates these tools to handle request and response serialization, ensuring valid data payloads before executing asynchronous database operations.

What is the best way to structure RESTful routes for task status toggling and CRUD operations?

The best way to structure RESTful routes is by applying standardized route prefixing for task endpoints. This provides dedicated, standardized routes for list, create, get, update, delete, and status toggling operations while maintaining tenant-scoped isolation.

Do I need authenticated user context to prevent cross-tenant data access in async REST APIs?

Yes, you need an authenticated user context to prevent cross-tenant data access in async REST APIs. The secure task management system relies on current_user.id to implicitly filter queries and enforce strict tenant isolation across all endpoints.