Skip to content

Sandbox pods need EmptyDir /tmp for writable temp space #91

Description

@savitharaghunathan

Problem

Tools (harness, goose, etc.) that create temp files at runtime fail with permission denied when writing to /tmp in sandbox pods. The chmod 1777 /tmp in the Containerfile only sets permissions in the image layer — containerd's overlay FS does not always preserve these permissions, so /tmp can be read-only at runtime.

Solution

  • Mount an EmptyDir volume at /tmp in every sandbox pod (controller change)
  • Remove the now-redundant chmod 1777 /tmp from images/agent-base/Containerfile
  • Add unit tests asserting the /tmp and workspace EmptyDir volumes exist

Done in

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

  • Status
    ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions