mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-18 00:15:05 +00:00
feat(security): credentialed exec + HTTP RBAC + API key cache (#197)
- Secure CLI credential injection via AES-256-GCM encrypted env vars - API key management with fine-grained RBAC scopes - resolveAuth/requireAuth middleware across all 25+ HTTP handlers - In-memory API key cache with TTL, negative caching, pubsub invalidation - Sandbox-first execution (fails if unavailable, no silent fallback) - Credential scrubbing, constant-time token comparison, Admin-only CLI creds - SQL migration 000020: secure_cli_binaries + api_keys tables - 14 unit tests for cache and RBAC with race detector Closes #197
This commit is contained in:
94 files changed
+6332
-286
No files matched your search
@@ -140,6 +140,13 @@ const (
|
||||
MethodDelegationsGet = "delegations.get"
|
||||
)
|
||||
|
||||
// API key management
|
||||
const (
|
||||
MethodAPIKeysList = "api_keys.list"
|
||||
MethodAPIKeysCreate = "api_keys.create"
|
||||
MethodAPIKeysRevoke = "api_keys.revoke"
|
||||
)
|
||||
|
||||
// Phase 3+ - NICE TO HAVE methods
|
||||
const (
|
||||
MethodLogsTail = "logs.tail"
|
||||
|
||||
Reference in new issue
Block a user