Repository navigation
Validate telemetry host overrides before egress - #1032
Open
sdivyanshu90 wants to merge 1 commit into
Open
sdivyanshu90 wants to merge 1 commit into
sdivyanshu90 wants to merge 1 commit into
Conversation
Contributor
Author
|
Hi @SilenNaihin, could you please review this when you have a chance? It validates telemetry host overrides while retaining loopback development support. Thanks! |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Contributor
|
Contributor
Author
|
Hi @SilenNaihin @kfallah, could you please review this PR whenever you have some time. Thanks! |
This branch has not been deployed
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.
Why
EXP_POSTHOG_HOSTwas passed to the PostHog client after only removing trailing slashes. A mistaken or injected local environment value could direct aggregate telemetry and the anonymous installation identifier to a remote plaintext endpoint, a credential-bearing URL, a path, or a non-web scheme.Closes #1031.
What
localhostdevelopment endpoints.Falsewithout creating a client.Validation
uv run ruff check .uv run ruff format --check .PYTHONPATH=exp/runtime/gateway/native uv run ty checkuv run pytest -q exp/common/observability(27 passed)The checked-in native stub was used for type checking because the local installed extension predates the current gateway API. Full test execution is left to CI; the local serial run was stopped during unrelated long-running integration coverage after the affected package had passed.
Non-goals
This does not change telemetry opt-in behavior, event contents, anonymous identity generation, delivery retries, or PostHog trace ingestion.