Skip to content

fix(fbpixel): correctly exclude blacklisted PIIs from Rudder payload - #1184

Closed
pierreavizou wants to merge 2 commits into
rudderlabs:production-stagingfrom
pierreavizou:fix-facebook-pii-blacklist
Closed

pierreavizou wants to merge 2 commits into
rudderlabs:production-stagingfrom
pierreavizou:fix-facebook-pii-blacklist

Conversation

@pierreavizou

@pierreavizou pierreavizou commented Jun 26, 2023 •

Copy link
Copy Markdown
Contributor

PR Description

The current PII blacklist mechanism for the Facebook Pixel does not work in a number of ways:

  • Blacklisted PIIs in the config plane are still sent to FB
  • PIIs that should be hashed are sent in plain text
  • Whitelist mechanism does not work

As a result, users of this integration could be in breach of local privacy laws and Meta's T&Cs without knowing it.

This PR brings a few fixes and improvements:

  • Fix blacklist: PIIs blacklisted in config plane are correctly excluded from payloads sent to FB
  • Correctly hash PIIs that are configured to be hashed in config plane
  • Fix whitelist mechanism
  • Feature: a date field can now also be a PII and be both date-parsed and hashed, useful eg. for birthday etc.

(I have written the code in functional style out of habit, could rewrite it if you would rather enforce a strictly imperative style)

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@github-actions

Copy link
Copy Markdown

This PR is considered to be stale. It has been open 20 days with no further activity thus it is going to be closed in 10 days. To avoid such a case please consider removing the stale label manually or add a comment to the PR.

@github-actions github-actions Bot added the Stale label Jul 27, 2023
@MoumitaM

MoumitaM commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

Closing this as the same work with another PR is merged and released.

@MoumitaM MoumitaM closed this Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants