Skip to content

Do not log PII when verifying personal key#5431

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/avoid-logging-pii
Sep 21, 2021
Merged

Do not log PII when verifying personal key#5431
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/avoid-logging-pii

Conversation

@mitchellhenke
Copy link
Contributor

No description provided.

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/avoid-logging-pii branch from 017ed67 to db41758 Compare September 21, 2021 22:32
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

analytics_result = FormResponse.new(
success: result.success?,
errors: result.errors,
extra: result.extra.except(:decrypted_pii),
Copy link
Contributor

Choose a reason for hiding this comment

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

This would always be empty (as of today), so we could just omit extra altogether.

@mitchellhenke mitchellhenke merged commit f69733a into main Sep 21, 2021
@mitchellhenke mitchellhenke deleted the mitchellhenke/avoid-logging-pii branch September 21, 2021 22:40
mitchellhenke pushed a commit that referenced this pull request Sep 21, 2021
zachmargolis added a commit that referenced this pull request Oct 14, 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.

4 participants