~/talk

The Art of Keeping Your Application Safe

Talkat AmsterdamJS Conference 2017 · on Thursday, 2017-06-08· [security, frontend-architecture]
slides:none on file

Intercom’s front end runs with ~51 authors, ~700 commits a month, 100+ deploys/day and ~20k additions/7k deletions, and the concrete takeaways are: a malformed <math> wrapper makes element.href return undefined and can leave unsanitized links that execute document.cookie (a real XSS); prefer element.getAttribute and building DOM text nodes over returning HTML; always add rel="noopener noreferrer" with target="_blank"; use ember-template-lint and an ESLint custom rule instead of grep+wc to fail builds; enforce a Content Security Policy and prefer composition over big components.

AI-written summary · about

  1. 0:00Start
  2. 12:20Good Components
  3. 16:30Good Helpers
  4. 20:17Avoid Triple Curlies
  5. 27:56Content Security Policy
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.