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.