test(ssh): cover session identity with explicit write grants
This commit is contained in:
1 parent
6b71dcad85
commit
07943e1b90
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* The writable-root derivation shared by every enforcement dialect that
|
||||
* expresses a mode as a canonical allow-list: `workspace-write` means "the
|
||||
* workspace root plus the platform temp areas", and this module is that
|
||||
* workspace root, explicit extra directories, and platform temp areas", and this module is that
|
||||
* meaning's one home. The Seatbelt profile
|
||||
* (`@deepseek-ai/dsh-sandbox-local`) and the in-process filesystem fence
|
||||
* (`@deepseek-ai/dsh-fs-sandbox`) both derive their allow-list here, so "the
|
||||
|
||||
@@ -236,7 +236,7 @@ describe.skipIf(process.platform === 'win32')('SSH helper wire and lifecycle bou
|
||||
await mkdir(outside)
|
||||
await symlink(extra, alias, 'dir')
|
||||
const target = (path: string) => ({ targetKey: path, displayPath: path })
|
||||
const policy = { mode: 'workspace-write' as const, workspaceRoot: workspace, additionalWritableRoots: [alias, extra] }
|
||||
const policy = { mode: 'workspace-write' as const, workspaceRoot: workspace, additionalWritableRoots: [alias, extra], sessionId: 'ssh-extra-grant' }
|
||||
try {
|
||||
const written = await test.client.request('fs.write', {
|
||||
target: target(join(extra, 'allowed.txt')), content: 'ok', policy,
|
||||
|
||||
Reference in new issue
Block a user