60
and the Lean Data Diet

the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

and

the Lean Data Diet

Page 2: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

[email protected] @pantojacoder

Page 3: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

and

the Lean Data Diet

Page 4: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should
Page 5: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Free Knowledge Movement

Page 6: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

“Imagine a world in which every single human being can freely share in the sum of all knowledge”.

Page 7: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Should not have to provide any information to participate in free knowledge movement.

There cannot be access to free knowledge without a strong guarantee of privacy.

Free n le e Move nt Cor Bel ar nd Pri y

Page 8: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Anyonecan edit!

Page 9: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

How is this guarantee of Privacy Expressed?

Page 10: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

https://foundation.wikimedia.org/wiki/Privacy_policy

Page 11: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Build the wiki way

Page 12: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Build the wiki way Dis sion

to l 150,000 wo ds

Page 13: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Read or edit without account.

Register account without name, email or any other info.

Never selling/sharing your info with third parties.

After at most 90 days, data will be deleted, aggregated, or de-identified

Page 14: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

In Practice the Privacy Policy has strong implications on how we do engineering

Page 15: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Read or edit without account.

Register account without name, email or any other info.

Never selling/sharing your info with third parties.

After at most 90 days, data will be deleted, aggregated, or de-identified

Page 16: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Wikipedia runs on-prem

https://github.com/wikimedia/puppet

Page 17: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

We compute metrics in privacy conscious ways, aggregate, release publicly and delete a lot of data

Page 18: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Deleting Data

Page 19: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Sanit ing Data

Page 20: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

PrivacyCulture

Page 21: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Deleting DataAt S a e!

Page 22: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Usage Data - Web Request project es.wikipedia

ip_address 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

page COVID-19

Page 23: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

username pepito_editor

ip_address 3x.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

session_id 8c878625792be023

edit_count 4257

ui_skin minerva

Usage Data -Behavioura

Page 24: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

200,000 web requestsPER sec (at peak)

Page 25: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

200,000 web requestsPER sec (at peak)

2,000eventsPER sec

Page 26: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Deleting DataDeleting DataAre you sure?

Cancel Delete

Page 27: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

--dry-run undef -> execute

--tables-to-delete undef -> all

--execute undef -> dry-run

--tables-to-delete undef -> none * -> all

Page 28: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

--database=event--tables=menuClicks--wikis=en.wikipedia--older-than=90--skip-trash=true

Executing tests… Tests passed. Starting DRY-RUN. Checking partitions to delete… Partitions that would be deleted by execution: - year=2019, month=1, day=1, hour=0, wiki=en.wikipedia - year=2019, month=1, day=1, hour=0, wiki=es.wiktionary - year=2019, month=1, day=1, hour=0, wiki=de.wikibooks - year=2019, month=1, day=1, hour=1, wiki=en.wikipedia - year=2019, month=1, day=1, hour=1, wiki=es.wiktionary - year=2019, month=1, day=1, hour=1, wiki=de.wikibooks - year=2019, month=1, day=1, hour=2, wiki=en.wikipedia - year=2019, month=1, day=1, hour=2, wiki=es.wiktionary - year=2019, month=1, day=1, hour=2, wiki=de.wikibooks DRY-RUN finished.

Parameter checksum: 57ca7987d987e9e98a6c79

--execute=<checksum>

Page 29: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

--database=event--tables=menuClicks--wikis=en.wikipedia--older-than=90--skip-trash=true

Executing tests… Tests passed. Starting DRY-RUN. Checking partitions to delete… Partitions that would be deleted by execution: - year=2019, month=1, day=1, hour=0, wiki=en.wikipedia - year=2019, month=1, day=1, hour=0, wiki=es.wiktionary - year=2019, month=1, day=1, hour=0, wiki=de.wikibooks - year=2019, month=1, day=1, hour=1, wiki=en.wikipedia - year=2019, month=1, day=1, hour=1, wiki=es.wiktionary - year=2019, month=1, day=1, hour=1, wiki=de.wikibooks - year=2019, month=1, day=1, hour=2, wiki=en.wikipedia - year=2019, month=1, day=1, hour=2, wiki=es.wiktionary - year=2019, month=1, day=1, hour=2, wiki=de.wikibooks DRY-RUN finished.

Parameter checksum: 57ca7987d987e9e98a6c79

--execute=<checksum>

#1 Dry-run

#2 Execute

Page 30: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Sanit ing Data

Page 31: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Sanit ing Data

Ad ance

Page 32: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Clients

Event Processor (Spark)

HTTP Beacon Endpoint

VarnishkafkaKafka

Varnish HDFS

Behavioural data

Page 33: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Clients

Event Processor (Spark)

Sanitized Events

Events <90 days

HTTP Beacon Endpoint

VarnishkafkaKafka

Varnish

Allow-list

HDFS

https://github.com/wikimedia/analytics-refinery-source/tree/master/refinery-job

Behavioural data

Page 34: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

Unsanitized

Page 35: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

UnsanitizedDo-not-allow-list

Page 36: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

Unsanitizeddate 2019-01-01

ip NULL

user_agent NULL

wiki en.wikipedia

action click

target menu

SanitizedDo-not-allow-list

Page 37: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

cookie_id 724310

Unsanitizeddate 2019-01-01

ip NULL

user_agent NULL

wiki en.wikipedia

action click

target menu

cookie_id 724310

SanitizedDo-not-allow-list

Page 38: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

UnsanitizedAllow-list

Page 39: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

date 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

Unsanitizeddate 2019-01-01

ip NULL

user_agent NULL

wiki en.wikipedia

action click

target menu

SanitizedAllow-list

Page 40: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Unsanitizeddate 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

cookie_id 724310

date 2019-01-01

ip NULL

user_agent NULL

wiki en.wikipedia

action click

target menu

cookie_id NULL

SanitizedAllow-list

Page 41: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Unsanitizeddate 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

cookie_id 724310

date 2019-01-01

ip Spain

user_agent NULL

wiki en.wikipedia

action click

target menu

cookie_id NULL

SanitizedAllow-list

Page 42: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Unsanitizeddate 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

cookie_id 724310

date 2019-01-01

ip Spain

user_agent Linux

wiki en.wikipedia

action click

target menu

cookie_id NULL

SanitizedAllow-list

Page 43: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Unsanitizeddate 2019-01-01

ip 31.214.189.167

user_agent Mozilla/5.0 (X11; Linux ...

wiki en.wikipedia

action click

target menu

cookie_id 724310

date 2019-01-01

ip Spain

user_agent Linux

wiki en.wikipedia

action click

target menu

cookie_id 8d56ab209e10

SanitizedAllow-list

#

Page 44: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

PrivacyCulture

Page 45: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Privacy is not the responsibility of one team.

All processes and metrics take privacy into account from the beginning until the end.

Page 46: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

SELECT COUNT(DISTINCT uuid)FROM database.tableWHERE date = ’2019-01-01’;

UUID, REQ

Unique Device - DAU or MAU

UUID, REQ

UUID

Page 47: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Unique Device

UUID, REQ

UUID

SELECT page_title uuidFROM database.tableWHERE date = ’2019-01-01’ and uuid =<some>

Page 48: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

Unique Device

2020-09-01

https://diff.wikimedia.org/2016/03/30/unique-devices-dataset/

Page 49: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-09-01

2020-09-01

Unique Device

Page 50: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-09-01

2020-09-01

Timestamp IP Page Cookies

2020-10-15 776.9.* Titanic Last-Access=2020-09-01

Unique Device

Page 51: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-09-01Timestamp IP Page Cookies

2020-10-15 776.9.* Titanic Last-Access=2020-09-01

2020-09-01

Unique Device

Page 52: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-10-15

Timestamp IP Page Cookies

2020-10-15 776.9.* Titanic Last-Access=2020-09-01

2020-10-15

Unique Device

Page 53: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

Unique Device

2020-10-15

Page 54: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-10-15

2020-10-15

Unique Device

Page 55: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

2020-10-15Timestamp IP Page Cookies

2020-10-15 776.9.* Titanic Last-Access=2020-09-01

2020-10-15

2020-10-15 776.9.* Everest Last-Access=2020-10-15

Unique Device

Page 56: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

SELECT COUNT(*) FROM database.tableWHERE (last-access-date IS NULL OR last-access-date < date)AND date = ’2020-10-15’;

LAST ACCESS

LA, REQLA, REQ (today: 2020-10-15)

Unique Device

Page 57: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Timestamp IP Page Cookies

-> 2020-03-15 776.9.* Titanic Last-Access=2020-09-01

2020-03-15 776.9.* Everest Last-Access=2020-10-15

SELECT COUNT(*) FROM database.tableWHERE (last-access-date IS NULL OR last-access-date < date)AND date = ’2020-10-15’;

Unique Device

Page 58: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

The Lean Data Diet

Less work related to data requests

Easier to make data public

Guarantee of Privacy

Extra work

Privacy culture needs time

Data Analysis needs a different mindset

Pr Con

Page 59: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Privacy is a Feature

Page 60: the Lean Data Diet - USENIX...the Lean Data Diet Free Knowledge Movement “Imagine a world in which every single human being can freely share in the sum of all knowledge”. Should

Questions?

https://xkcd.com/285

[email protected] @pantojacoderAll pictures https://creativecommons.org/publicdomain/zero/1.0/