Skip to content

Commit

Permalink
Copyedit Security chapter (#393)
Browse files Browse the repository at this point in the history
* Initial copyedits of the security chapter

* Convert tables

* Further edits

* HTTP vs HTTPS query

* Updated HTTP vs HTTPS sql

* Including CSP and HSTS in this query

* Security data viz

* Updated figure numbers
  • Loading branch information
tunetheweb authored and rviscomi committed Nov 10, 2019
1 parent 76fd98d commit 774e963
Show file tree
Hide file tree
Showing 5 changed files with 1,269 additions and 1,651 deletions.
6 changes: 4 additions & 2 deletions sql/2019/08_Security/08_25-34.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ UNNEST(['nel', 'report-to', 'referrer-policy',
'x-xss-protection', 'x-frame-options',
'cross-origin-resource-policy',
'cross-origin-opener-policy',
'sec-fetch-(dest|mode|site|user)']) AS header
'sec-fetch-(dest|mode|site|user)',
'strict-transport-security',
'content-security-policy']) AS header
JOIN (
SELECT _TABLE_SUFFIX, COUNT(0) AS total
FROM `httparchive.summary_pages.2019_07_01_*`
Expand All @@ -26,4 +28,4 @@ GROUP BY
total,
header
ORDER BY
freq / total DESC
freq / total DESC
11 changes: 11 additions & 0 deletions sql/2019/08_Security/08_43.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 08_43: HTTP vs HTTPS
SELECT
client,
COUNTIF(STARTS_WITH(url, 'https://')) AS https,
COUNTIF(STARTS_WITH(url, 'http://')) AS http,
ROUND((COUNTIF(STARTS_WITH(url, 'https://')) / COUNT(*))*100,2) AS pct_https,
ROUND((COUNTIF(STARTS_WITH(url, 'http://')) / COUNT(*))*100,2) AS pct_http
FROM
`httparchive.almanac.summary_requests`
GROUP BY
client
50 changes: 48 additions & 2 deletions src/config/2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
{
"part": "II",
"chapter": "8",
"title": "Security",
"todo": true
"title": "Security"
},
{
"part": "II",
Expand Down Expand Up @@ -963,6 +962,53 @@
"github": "zachleat",
"twitter": "zachleat"
},
"ghedo": {
"name": "Alessandro Ghedini",
"teams": [
"brainstormers"
],
"avatar_url": "https:\/\/avatars3.githubusercontent.com\/u\/117643?v=4&s=200",
"website": "https:\/\/ghedini.me\/",
"github": "ghedo"
},
"ndrnmnn": {
"name": "André Naumann",
"teams": [
"brainstormers"
],
"avatar_url": "https:\/\/avatars2.githubusercontent.com\/u\/22891577?v=4&s=200",
"github": "ndrnmnn"
},
"mor10": {
"name": "Morten Rand-Hendriksen",
"teams": [
"brainstormers"
],
"avatar_url": "https:\/\/avatars3.githubusercontent.com\/u\/1132200?v=4&s=200",
"website": "http:\/\/mor10.com\/",
"github": "mor10",
"twitter": "mor10"
},
"westonruter": {
"name": "Weston Rutern",
"teams": [
"brainstormers"
],
"avatar_url": "https:\/\/avatars2.githubusercontent.com\/u\/134745?v=4&s=200",
"website": "https:\/\/weston.ruter.net\/",
"github": "westonruter",
"twitter": "westonruter"
},
"enygren": {
"name": "Erik Nygren",
"teams": [
"brainstormers"
],
"avatar_url": "https:\/\/avatars2.githubusercontent.com\/u\/6840678?v=4&s=200",
"website": "https:\/\/erik.nygren.org\/",
"github": "enygren",
"twitter": "akanygren"
},
"c-torres": {
"name": "Carlos Torres",
"teams": [
Expand Down
Loading

0 comments on commit 774e963

Please sign in to comment.