Skip to content
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

feat: Scrub filenames in the minidump modules list #784

Merged
merged 14 commits into from
Sep 28, 2020

Conversation

flub
Copy link
Contributor

@flub flub commented Sep 23, 2020

This allows selecting minidump module code and debug filepaths to be
scrubbed. The basename of these filepaths are preserved in order to
ensure we can still process the minidumps.

The ValueType::Filepath is added and replaces NativeDebugImage, it
identifies a value which is a string containing a pathname.  This is
then used when scrubbing pathnames in the minidump module list.
relay-general/src/pii/attachments.rs Show resolved Hide resolved
relay-general/src/pii/attachments.rs Show resolved Hide resolved
relay-general/src/protocol/debugmeta.rs Outdated Show resolved Hide resolved
relay-general/src/pii/minidumps.rs Show resolved Hide resolved
relay-general/src/pii/processor.rs Outdated Show resolved Hide resolved
Floris Bruynooghe and others added 4 commits September 24, 2020 11:27
Previously they were not being scrubbed.
This uses the endian indicator in the minidump to achieve this.  It
does introduce a dependency on scroll directly as the minidump crate
does not expose the type otherwise.  We use the same version as the
minidump crate does.
This only tests a windows minidump so far.
Floris Bruynooghe added 5 commits September 25, 2020 14:25
Writing tests with this is slightly nicer.
This primarily implements the DoubleEndedIterator to WStrChars and
WStrCharIndices.

It also introduces two new helpers: for constructing a u16 from 2 bytes
and for constructing a char from two u16s.

Finally it optimises the Iter::count and Iter::last implementations of
the char iters.
This was not worth the time spent on it, but was fun.
@flub flub marked this pull request as ready for review September 25, 2020 14:14
@flub flub requested review from a team, untitaker and jan-auer September 25, 2020 14:14
Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already reviewed this a couple of times

Floris Bruynooghe added 2 commits September 25, 2020 16:23
They were applying some pii config to the minidump, but the test was
checking the attachment (the minidump) was not being modified.
CHANGELOG.md Outdated Show resolved Hide resolved
@jan-auer jan-auer merged commit 34af98b into master Sep 28, 2020
@jan-auer jan-auer deleted the feat/minidump-module-filename-scrubbing branch September 28, 2020 15:37
jan-auer added a commit that referenced this pull request Sep 29, 2020
* master:
  feat: Scrub filenames in the minidump modules list (#784)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants