mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 23:01:24 +00:00
fix(security): harden toolsBySender sender-key matching
This commit is contained in:
@@ -379,7 +379,7 @@ describe("Agent-specific tool filtering", () => {
|
||||
"*": {
|
||||
tools: { allow: ["read"] },
|
||||
toolsBySender: {
|
||||
alice: { allow: ["read", "exec"] },
|
||||
"id:alice": { allow: ["read", "exec"] },
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -417,7 +417,7 @@ describe("Agent-specific tool filtering", () => {
|
||||
groups: {
|
||||
"*": {
|
||||
toolsBySender: {
|
||||
admin: { allow: ["read", "exec"] },
|
||||
"id:admin": { allow: ["read", "exec"] },
|
||||
},
|
||||
},
|
||||
locked: {
|
||||
|
||||
Reference in New Issue
Block a user