Repository navigation
fix(runtime): forward XDG_* into detached Pi workers - #229
Merged
Merged
Conversation
Pi worker spawn used a minimal env that dropped XDG_CONFIG_HOME, so wrangler OAuth under ~/.config was invisible inside Runs even when the beacon serve wrapper had set it (Leaf publish / whoami not authenticated).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PATH/HOME/USER/TMPDIR/LANG, droppingXDG_CONFIG_HOME.buildPiEnvironmentalready allowlistsXDG_*, but only copies them from the workerprocess.env, so Runs never saw wrangler OAuth under~/.config/.wrangler(Leaf publish →not authenticated/ demandsCLOUDFLARE_API_TOKEN).XDG_CONFIG_HOME,XDG_CACHE_HOME,GH_CONFIG_DIR, etc.).Context (carol / BCN-108)
Host mitigation:
/Users/beacon/.local/bin/npxwrapper pinsXDG_CONFIG_HOME(tea-style), because Leaf invokesnpx wrangler@…. This PR is the durable upstream fix for the next Beacon install/upgrade.Test plan
npx wrangler@4.131.2 whoamiauthenticated; amr-release Leaf publish no longer submits high CF-cred feedback