Skip to content

fix: run plugins as the instance login user (not hardcoded ec2-user)#17

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/plugins-login-user
Jul 21, 2026
Merged

fix: run plugins as the instance login user (not hardcoded ec2-user)#17
scttfrdmn merged 1 commit into
mainfrom
fix/plugins-login-user

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Follow-up to the registry-expansion smoke, which caught jupyterlab/code-server launching as ec2-user and writing to /home/ec2-user instead of the real login user (e.g. scttfrdmn).

Uses the new {{ instance.login_user }} template variable (spore-host/spawn#425) instead of hardcoding ec2-user, so services and files land under the real login user:

  • jupyterlab / code-server / vscode-tunnel — systemd User= + config/home paths derived from the login user's home (getent passwd).
  • rclone — pushed rclone.conf, mount-path owner, and systemd User=.
  • dockerusermod -aG docker <login_user>.
  • github-actions-runnerchown the runner dir + svc.sh install <login_user> (the config.sh step already ran as_user).

All 8 re-validated with spawn plugin validate --strict (built from spawn main, which has instance.login_user).

Requires

The spawn side (spore-host/spawn#425, merged) must be released before these render on an instance — the current released spawn (v0.88.0) doesn't populate instance.login_user yet. Cut spawn v0.89.0 first, then this is live. (--strict lint passes regardless, since the ref is syntactically valid.)

Use the new {{ instance.login_user }} template var (spawn) instead of hardcoding
ec2-user, so services + files land under the real login user (e.g. scttfrdmn):
- jupyterlab/code-server/vscode-tunnel: systemd User= + config/home paths
- rclone: rclone.conf + mount owner + systemd User=
- docker: usermod -aG docker <login_user>
- github-actions-runner: chown runner dir + svc.sh install <login_user>
  (config.sh already ran as_user)

Caught in the smoke: jupyterlab/code-server had launched as ec2-user, writing to
/home/ec2-user instead of the login user's home. Requires spawn with
instance.login_user (merged, ships next release). Re-validated all 8 --strict.
@scttfrdmn
scttfrdmn merged commit 3014c5b into main Jul 21, 2026
1 check passed
@scttfrdmn
scttfrdmn deleted the fix/plugins-login-user branch July 21, 2026 04:01
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