Skip to content

Commit 1c3b1cc

Browse files
author
JiaDe
committed
fix: MockSSM tenant_ids match derive_tenant_id hash suffix
1 parent 1e04104 commit 1c3b1cc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

demo/run_demo.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,18 @@ class MockSSM:
9191
def __init__(self):
9292
self.store = {}
9393
# Pre-populate tenant permission profiles
94-
self.store["/openclaw/demo/tenants/wa__intern_001/permissions"] = json.dumps({
94+
# tenant_ids must match derive_tenant_id() output (includes hash suffix for 33+ chars)
95+
self.store["/openclaw/demo/tenants/wa__intern_001__dabed44e297f43b9caa/permissions"] = json.dumps({
9596
"profile": "basic",
9697
"tools": ["web_search"],
9798
"data_permissions": {"file_paths": [], "api_endpoints": []},
9899
})
99-
self.store["/openclaw/demo/tenants/tg__engineer_42/permissions"] = json.dumps({
100+
self.store["/openclaw/demo/tenants/tg__engineer_42__2080fb2783090ea6836/permissions"] = json.dumps({
100101
"profile": "advanced",
101102
"tools": ["web_search", "shell", "browser", "file", "file_write", "code_execution"],
102103
"data_permissions": {"file_paths": ["/home/ubuntu/projects/*"], "api_endpoints": []},
103104
})
104-
self.store["/openclaw/demo/tenants/dc__admin_99/permissions"] = json.dumps({
105+
self.store["/openclaw/demo/tenants/dc__admin_99__cf7fd1dbeb8f37aef88/permissions"] = json.dumps({
105106
"profile": "advanced",
106107
"tools": ["web_search", "shell", "browser", "file", "file_write", "code_execution"],
107108
"data_permissions": {"file_paths": ["/*"], "api_endpoints": ["*"]},

0 commit comments

Comments
 (0)