Repository navigation
v0.16.1
Keep an agent that runs in a sandbox to its session's workspace, even though the daemon runs with your full rights.
Added
- A daemon started with
OPEN_ARTIFACT_WORKSPACE_FOLDERS_ONLY=1works only inside the calling session's workspace: making, reading and listing artifacts, ArtifactData'sfile_pathandout_file, file paths in type actions (an upload'sfile, docs import and export), and artifact pages and archives. Anything outside answersnot_granted. A symbolic link out of the workspace, or a workspace folder replaced by another, is refused too. Without the variable nothing changes. - A write refused because
if_matchno longer matches saysexecutionStatus: "not_executed", so an agent knows nothing was written.
Fixed
- On macOS, a workspace under
/varor/tmpis recognised when its path is spelled through the system's link to/private.
Integrators
startDaemon({ workspaceFoldersOnly: true })turns on the same confinement as the environment variable, for apps that run their agents in a sandbox. Each call is checked against the workspace the session gave (caller.workspace); a session without one cannot make or open artifacts there. A listing shows only artifacts inside that workspace,scope: "all"included. See "A sandboxed agent: workspace folders only" in the integrator guide's security page. Nothing in the Harness API messages,harness-kitor the Shell changed.