llm-config-api
REST API server for LLM Config Manager with JWT authentication, RBAC, rate limiting, and comprehensive security features.
Features
- REST API: Full-featured REST API for configuration management
- JWT Authentication: Secure token-based authentication
- RBAC Integration: Role-based access control for all endpoints
- Rate Limiting: Per-client rate limiting with token bucket
- CORS Support: Configurable CORS policies
- OpenAPI Documentation: Auto-generated API documentation
- Health Checks: Liveness and readiness probes
- Metrics Export: Prometheus metrics endpoint
Usage
[]
= "0.5.0"
= { = "1", = ["full"] }
use ApiServer;
async
API Endpoints
POST /api/v1/auth/login- Authenticate and get JWT tokenGET /api/v1/config/:key- Get configuration valuePUT /api/v1/config/:key- Update configuration valueDELETE /api/v1/config/:key- Delete configurationGET /api/v1/config/:key/history- Get configuration historyGET /health- Health check endpointGET /metrics- Prometheus metrics
Security Features
- JWT-based authentication
- RBAC authorization
- Rate limiting (100 req/min per client)
- Input validation
- Audit logging
- TLS/HTTPS support
License
Licensed under the Apache License, Version 2.0.