mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-09-20 04:23:29 +00:00
docs: replace file-reference lists with module tables (batch B)
This commit is contained in:
1 parent
653df6fb52
commit
463d3d1c5d
8 files changed
+62
-216
No files matched your search
@@ -399,19 +399,11 @@ curl -X POST -H "Authorization: Bearer gateway-admin-token" \
|
||||
|
||||
## 11. File Reference
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `internal/crypto/apikey.go` | Key generation + SHA-256 hashing |
|
||||
| `internal/store/api_key_store.go` | Store interface + `APIKeyData` struct |
|
||||
| `internal/store/secure_cli_store.go` | SecureCLI store interface + `SecureCLIBinary` struct |
|
||||
| `internal/store/pg/api_keys.go` | PostgreSQL API key implementation |
|
||||
| `internal/store/pg/secure_cli.go` | PostgreSQL SecureCLI implementation |
|
||||
| `internal/http/api_keys.go` | HTTP API handler for API keys |
|
||||
| `internal/http/secure_cli.go` | HTTP API handler for SecureCLI |
|
||||
| `internal/http/auth.go` | HTTP auth middleware (resolveAPIKey, tokenMatch) |
|
||||
| `internal/http/api_key_cache.go` | In-memory API key cache with TTL + pubsub invalidation |
|
||||
| `internal/gateway/router.go` | WebSocket connect auth (API key path) |
|
||||
| `internal/gateway/methods/api_keys.go` | WebSocket RPC methods for API keys |
|
||||
| `internal/permissions/policy.go` | RBAC policy engine + role derivation + scope validation |
|
||||
| `migrations/000020_secure_cli_and_api_keys.up.sql` | Database migration (api_keys + secure_cli_binaries) |
|
||||
| `ui/web/src/pages/api-keys/` | Web UI components |
|
||||
| Module | Path | Purpose |
|
||||
|---|---|---|
|
||||
| Crypto & key generation | `internal/crypto/apikey.go` | Key generation, SHA-256 hashing |
|
||||
| Store & persistence | `internal/store/api_key_store.go`, `internal/store/secure_cli_store.go`, `internal/store/pg/api_keys.go`, `internal/store/pg/secure_cli.go` | API key + SecureCLI interfaces and PostgreSQL implementations |
|
||||
| HTTP & gateway auth | `internal/http/auth.go`, `internal/http/api_key_cache.go`, `internal/http/api_keys.go`, `internal/http/secure_cli.go`, `internal/gateway/router.go`, `internal/gateway/methods/api_keys.go` | Auth middleware, cache, HTTP handlers, WS connect auth |
|
||||
| Permissions & UI | `internal/permissions/policy.go`, `ui/web/src/pages/api-keys/` | RBAC role derivation, scope validation, web management page |
|
||||
|
||||
Use `grep` or your editor's symbol search for specific files.
|
||||
Reference in new issue
Block a user