mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-16 22:14:40 +00:00
feat(channels): document context admin surface
This commit is contained in:
1 parent
06d9c7aa83
commit
697aa266e0
9 files changed
+46
-14
No files matched your search
@@ -12,6 +12,7 @@ This matrix documents the effective authorization layers for agent actions acros
|
||||
| Agent config permissions | Agent config mutations from chat | `agent_config_permissions` | Matches by `agent_id`, `scope`, `config_type`, `user_id`, including wildcard rows. |
|
||||
| Workspace file boundary | Filesystem access | tool sandbox/boundary checks | Prevents path escape and unsupported writes. |
|
||||
| Context file boundary | Agent identity/context files | `ContextFileInterceptor` | Routes protected files to store and requires group writer permission in group contexts. |
|
||||
| Channel context capabilities | MCP + Secure CLI tool execution | `mcp_context_*`, `secure_cli_context_*` | Effective precedence: user credentials > context credentials/grants > agent grants > global defaults. |
|
||||
|
||||
## Agent Config Permission Rows
|
||||
|
||||
@@ -69,3 +70,17 @@ The Permissions tab should expose a full matrix editor:
|
||||
- Permission-store errors fail closed for group mutation boundaries.
|
||||
- Backend validation rejects unknown config types and permissions before writing rules.
|
||||
- Platform send permissions are still separate from GoClaw permissions; a channel adapter may reject delivery even when GoClaw allows the agent action.
|
||||
|
||||
## Channel context capabilities
|
||||
|
||||
Channel instances expose stored contexts in the dashboard and API. The base
|
||||
context is the channel instance itself; group contexts come from stored channel
|
||||
contacts. Capability rows combine MCP and Secure CLI visibility for that
|
||||
context, including source, enabled state, tool allow/deny lists, and credential
|
||||
presence.
|
||||
|
||||
Context credential rows never return secret material. They only project
|
||||
metadata such as `has_api_key`, `has_env`, `credential_source`, and key names
|
||||
where available. Writes are tenant-admin gated, and runtime resolution carries
|
||||
`ChannelContextScope` so grants and credentials are applied only to matching
|
||||
channel/group scope.
|
||||
@@ -4,6 +4,23 @@ Significant changes, features, and fixes in reverse chronological order.
|
||||
|
||||
---
|
||||
|
||||
## 2026-05-29
|
||||
|
||||
### Channel context admin surface (issue #66)
|
||||
|
||||
**New**
|
||||
|
||||
- Added channel context APIs under `/v1/channels/instances/{id}/contexts` for stored channel/group contexts, members, and effective MCP/Secure CLI capability matrix.
|
||||
- Added tenant-scoped context grants and context credentials for MCP servers and Secure CLI binaries, with PostgreSQL migration `000074` and SQLite schema version `43`.
|
||||
- Runtime tool execution now carries `ChannelContextScope`; MCP and Secure CLI resolution apply context grants/credentials before user credential overrides.
|
||||
- Web dashboard channel detail page now has a `Contexts` tab showing contexts, stored members, effective granted tools, and scoped credential presence without exposing secret values.
|
||||
|
||||
**Security**
|
||||
|
||||
- Context capability write APIs use tenant-admin checks.
|
||||
- Credential APIs return presence/metadata only; raw MCP API keys, headers/env values, and Secure CLI env values are never serialized.
|
||||
- MCP grant-check cache key includes channel scope so scoped grants do not leak across channel contexts.
|
||||
|
||||
## 2026-05-28
|
||||
|
||||
### CLI credential adapter framework + git adapter (issue #82)
|
||||
|
||||
Reference in new issue
Block a user