mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:09:35 +00:00
fix(security): harden toolsBySender sender-key matching
This commit is contained in:
@@ -176,6 +176,18 @@ export type GroupToolPolicyConfig = {
|
||||
deny?: string[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Per-sender overrides.
|
||||
*
|
||||
* Prefer explicit key prefixes:
|
||||
* - id:<senderId>
|
||||
* - e164:<phone>
|
||||
* - username:<handle>
|
||||
* - name:<display-name>
|
||||
* - * (wildcard)
|
||||
*
|
||||
* Legacy unprefixed keys are supported for backward compatibility and are matched as senderId only.
|
||||
*/
|
||||
export type GroupToolPolicyBySenderConfig = Record<string, GroupToolPolicyConfig>;
|
||||
|
||||
export type ExecToolConfig = {
|
||||
|
||||
Reference in New Issue
Block a user