Skip to content

fix(envdsmoke): pick the envd user with the SDK's Basic auth header - #83

Merged
CMGS merged 1 commit into
masterfrom
fix/envdsmoke-basic-user
Sep 28, 2026
Merged

CMGS merged 1 commit into
masterfrom
fix/envdsmoke-basic-user

Conversation

@CMGS

@CMGS CMGS commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

envd takes the process user from Authorization: Basic base64(user:), which is the header the e2b SDK sends. It ignores X-User, so every process the smoke started ran as root, and the user-account step failed on hardware:

envdsmoke: user account with sudo: the user account reports "root\n/root\nsudo\n", want user, /home/user and passwordless sudo

The two X-User headers become Authorization: Basic ….

Hardware (scripts/envd-e2e.sh, sandboxd at sandbox main 7dd89ae6, isolated cocoon root):

  • master 774a233: e2b-rt and e2b-ci both FAIL at the user-account step.
  • this branch: e2b-rt ENVDSMOKE PASS; e2b-ci (medium, CODE_INTERPRETER=1) ENVDSMOKE PASS, including interpreter runs 1+1.

Gates: make lint 10× 0 issues., make fmt-check clean, asl 0 on darwin and linux.

envd reads the user from Authorization: Basic base64(user:), as the e2b SDK sends it; it ignores X-User, so every process ran as root and the user-account step failed on hardware (root, /root) on both e2b-rt and e2b-ci.
@CMGS
CMGS merged commit b8f90b7 into master Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant