[rust] Restrict Selenium Manager stats to vetted values before sending to Plausible - #17892
[rust] Restrict Selenium Manager stats to vetted values before sending to Plausible#17892titusfortner wants to merge 3 commits into
Conversation
PR Summary by QodoVetted Plausible telemetry: sanitize OS/lang and bucket browser version
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
|
Code review by qodo was updated up to the latest commit 595ee44 |
|
Code review by qodo was updated up to the latest commit 2a6acdb |
🔗 Related Issues
I noticed some stray strings in some of the Plausible fields. Nothing that gets sent should be something the user can pass directly.
💥 What does this PR do?
osandlanguage_bindingvalues report asotherinstead of being forwarded verbatim.browser_versionis reported as the major version only (e.g.120), or a known channel (beta,dev, etc.), no longer the full120.0.6099.109string.--os/--browser-version/--nvalue (from CLI or env) could push arbitrary strings, including markup, into the analytics dashboard as a custom property.🔧 Implementation Notes
os,browser_version, andlanguage_bindingare sanitized here;browser(already errors on unknown names),arch(already bucketed byget_normalized_arch), andselenium_version(the crate version) are bounded upstream.🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes