-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config Additions: session_recording, mask_all_element_attributes, mask_all_text #209
Conversation
Thanks, I think you missed one? Line 35 in 7faa07b
The second kinda works for us (insert sledgehammer scalpel analogy here) in that we have some custom attributes that don't fall within the |
Fixed, thanks a lot for keeping an eye on this! @posthog-bot please add @lharress for ideas and test |
I've put up a pull request to add @lharress! 🎉 |
Thanks for jumping on it so fast! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We currently lack any E2E testing for autocapture functionality (and this would have introduced a bug there) - how do you feel about extending the testcafe test for this?
Thanks! I have no time today but can hopefully find time to improve the tests tomorrow! |
I've addressed everything except testcafe tests - can get to it on this PR or a later one. cc @macobo |
Might be worth getting in here, but would also be OK with merging as-is if you're confident in it. :) |
Comment came before I had access to browserstack - I now do so I'll play around with it |
Definitely happy to update/change this again, but I've now structured E2E tests in 3 parts, to "set the tone" for future tests:
|
Changes
So I was operating on a few hours of sleep today and put through #207 which, while preventing rrweb from capturing input values as stated, it doesn't prevent PostHog from doing so, because..... we already don't. 🤦 I confused our approach with rrweb's and went ahead and censored element attributes instead.
Nevertheless, this PR now adds multiple config options:
session_recording
: an object containing a subset ofrrweb
options that we can expose to our usersmask_all_text
: Prevents us from capturingtextContent
as per @lharress's request (and this makes a lot of sense)mask_all_element_attributes
: prevents autocapture from capturing any element attributes (apparently you'd need this too @lharress?)Checklist