Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

scrub phone numbers #1360

Merged
merged 2 commits into from
Dec 15, 2020
Merged

scrub phone numbers #1360

merged 2 commits into from
Dec 15, 2020

Conversation

mikehelmick
Copy link
Contributor

Fixes #1358

Proposed Changes

  • don't log phone numbers on SMS failure

Release Note

Don't log phone numbers on SMS failure.

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Dec 15, 2020
func scrubPhoneNumbers(s string) string {
noScrubs := s
for _, scrub := range scrubbers {
pi := strings.Index(noScrubs, scrub.prefix)
Copy link
Member

Choose a reason for hiding this comment

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

🎶 I don't want no scrubs, a scrub is a... 🎶

pkg/controller/issueapi/logic.go Outdated Show resolved Hide resolved
Copy link
Member

@sethvargo sethvargo left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, sethvargo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mikehelmick,sethvargo]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 1746884 into google:main Dec 15, 2020
@mikehelmick mikehelmick deleted the issue1358 branch December 15, 2020 18:11
mikehelmick added a commit that referenced this pull request Dec 15, 2020
* scrub phone numbers

* make suffix shorter
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scrub phone # from twilio errors in logs
3 participants