Skip to content

task(config): new configuration option RedactedKeys #367

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

Merged
merged 4 commits into from
Aug 17, 2021

Conversation

rich-bugsnag
Copy link
Contributor

@rich-bugsnag rich-bugsnag commented Aug 17, 2021

Goal

Setup metadata key redaction for the fallback/Windows and send the value through to iOS and Android

Changeset

  • Added RedactedKeys array to the config class
  • Check for redacted keys in the client before serialising an event (as specificed by the notifier spec)
  • Pass the value through to android and iOS

Testing

Manually and added CI tests

@rich-bugsnag rich-bugsnag self-assigned this Aug 17, 2021
@rich-bugsnag rich-bugsnag changed the title 6783 6689 redacted keys task(config): new configuration option RedactedKeys Aug 17, 2021
@rich-bugsnag rich-bugsnag marked this pull request as ready for review August 17, 2021 10:07
@@ -353,6 +355,36 @@ void Notify(Exception[] exceptions, HandledState handledState, Middleware callba
}
}

private void CheckMetadaForRedactedKeys(Metadata metadata)
Copy link
Contributor

Choose a reason for hiding this comment

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

The name CheckMetadaForRedactedKeys doesn't make it clear that this function will actually redact the metadata. Maybe RedactMetadata would be a clearer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed, thanks 👍

@rich-bugsnag rich-bugsnag removed the request for review from lemnik August 17, 2021 10:50
@rich-bugsnag rich-bugsnag merged commit 51f432b into next Aug 17, 2021
@rich-bugsnag rich-bugsnag deleted the 6783-6689-redacted-keys branch August 17, 2021 12:18
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