security

Enforce authentication, authorization, rate limiting, and request validation for Trebuchet actors.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/briannadoubt/trebuchet-plugin --skill security-briannadoubt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/briannadoubt/trebuchet-plugin/tree/main/skills/security
Command: npx skills add https://github.com/briannadoubt/trebuchet-plugin --skill security-briannadoubt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This security skill provides a comprehensive protection layer for Trebuchet distributed actors, combining authentication, authorization, rate limiting, and input validation to prevent abuse and misuse.

Core Features & Use Cases

  • Authentication: API keys and JWT-based identities to verify principals.
  • Authorization: RBAC policies to control actor and method access.
  • Rate Limiting: Token bucket and sliding window strategies to throttle requests.
  • Request Validation: Safeguards against malformed payloads and size limits.
  • Middleware Integration: Seamless composition in CloudGateway workflows to enforce security in deployments.

Quick Start

Configure the security stack by composing ValidationMiddleware, AuthenticationMiddleware, AuthorizationMiddleware, and RateLimitingMiddleware in your CloudGateway setup, then instantiate a gateway with a security policy and credential provider. For example, wire a provider that issues API keys, a policy governing roles, and a limiter tuned to your traffic profile.

Frequently Asked Questions about security

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

FAQPage Schema
How do I add JWT authentication and RBAC authorization to distributed actors?

You can secure distributed actors by applying middleware that enforces JWT-based authentication and RBAC policies. This approach verifies principal identities and controls method-level access to prevent unauthorized actor invocations.

What is the best way to rate limit API requests in a cloud gateway workflow?

Rate limiting in a cloud gateway workflow is best handled by applying token bucket or sliding window strategies. These middleware strategies throttle incoming requests to protect deployments from traffic spikes and abuse.

Can I use API key authentication to secure a distributed actor system?

API key authentication can secure a distributed actor system by verifying principal identities. You configure a credential provider to issue API keys and wire it into the authentication middleware to control access.

How do I configure a complete security stack for a cloud gateway deployment?

Configuring a complete security stack involves composing validation, authentication, authorization, and rate limiting middleware. You instantiate a gateway with a security policy and credential provider to enforce comprehensive protection.