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

[PLAT-7396] Redact breadcrumb metadata #1204

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Apply redactedKeys to breadcrumb metadata.

Changeset

BugsnagEvent's -serializeBreadcrumbs has been renamed to -serializeBreadcrumbsWithRedactedKeys: and now uses the same redaction logic applied to event metadata.

Methods that implement redaction have been renamed for clarity.

Testing

Added unit test case to verify that breabcrumb metadata is redacted when serialized as part of an event.

Amended network breadcrumb E2E scenario to verify that urlParams are redacted.
Ran the test locally using make e2e_macos FEATURES=features/breadcrumbs.feature:58

@nickdowell nickdowell requested a review from kstenerud October 7, 2021 08:16
@nickdowell nickdowell changed the title Redact breadcrumb metadata [PLAT-7396] Redact breadcrumb metadata Oct 7, 2021
@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 432 bytes from 1,253,816 to 1,254,248

Generated by 🚫 Danger

@nickdowell nickdowell changed the base branch from master to next October 7, 2021 08:31
Bugsnag/Payload/BugsnagEvent.m Outdated Show resolved Hide resolved
Bugsnag/Payload/BugsnagEvent.m Outdated Show resolved Hide resolved
@nickdowell nickdowell force-pushed the nickdowell/redacted-keys-for-breadcrumbs branch from 2f7f0c4 to 86e82eb Compare October 8, 2021 08:19
@nickdowell nickdowell requested a review from kstenerud October 8, 2021 08:20
@nickdowell nickdowell merged commit 51c49d5 into next Oct 12, 2021
@nickdowell nickdowell deleted the nickdowell/redacted-keys-for-breadcrumbs branch October 12, 2021 13:59
@nickdowell nickdowell mentioned this pull request Oct 20, 2021
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.

2 participants