Repository navigation
docs(openspec): plan #2739 refuse GH_TELEMETRY_ENDPOINT_URL - #2859
Merged
dan-petty merged 1 commit intoOct 31, 2026
Merged
Conversation
2 tasks done
Closed
5 tasks
dan-petty
marked this pull request as ready for review
October 31, 2026 13:14
dan-petty
deleted the
fix/2739-the-subprocess-environment-guard-accepts-gh
branch
October 31, 2026 13:18
This was referenced Oct 31, 2026
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.
Plans #2739
This change adds GH_TELEMETRY_ENDPOINT_URL to the data-egress environment variable set refused by build_subprocess_env. A caller that sets this key can redirect gh telemetry to an arbitrary host, which is egress of command data. The key is already excluded from the ambient environment path because it is not in DEFAULT_ALLOWED_ENV_VARS. The fix extends _is_env_override_refused to also refuse keys in the new CONST_DATA_EGRESS_ENV_VARS set. GH_TELEMETRY and GH_TELEMETRY_SAMPLE_RATE remain accepted because they do not name a destination.
Change:
openspec/changes/2739-the-subprocess-environment-guard-accepts-gh/