← Week 05: Assemble II: build, demo and grade SESSION 02 · THURSDAY

Working is not the same as trustworthy

Security, accessibility and review, built into the loop, so quality becomes a habit rather than a panic before launch.

ACCESS CONTROLACCESSIBILITYHOOKSSECOND REVIEWERSPRINT REVIEW
Present slides Full screen, one slide at a time · 13 slides
TONIGHT 01

By the end of tonight you can

  • Apply five security essentials and test your product for broken access control
  • Run five accessibility checks without specialist tools, and fix or log what fails
  • Automate a check up the ladder: working agreement → command → hook → CI
  • Use Claude as a second reviewer: a subagent, /security-review and @claude on a pull request
  • Run a sprint review and a retrospective that each end in a concrete change

OUTPUT · Slice 2 + quality checklist passed + sprint review notes

THE IDEA 02

“It works on my machine” vs “people can trust it”

It works on my machine

  • The happy path works when you click through it
  • You’re logged in as the only user, with tidy test data
  • You checked it once by hand, before the last three changes

People can trust it

  • It refuses bad input, and people who aren’t allowed
  • It works with a keyboard, a screen reader and at 200% zoom
  • Checks run automatically every time, and someone else reviewed it

Tutors will trust TutorDesk with learners’ names and parents’ numbers. Earn that before launch, not after.

SECURITY 03

Security essentials

  1. SECRETSKeys and passwords live in a .env file that is never committed to Git
  2. AUTHENTICATIONUse your framework’s built-in login and password handling, not home-made code
  3. VALIDATIONCheck every input on the server; checks in the browser are easy to bypass
  4. LEAST DATACollect only what the slice needs: a learner’s first name, not a date of birth
  5. DEPENDENCIESEach package is someone else’s code: ask before adding one, and keep them updated

Then check authorisation on every request: who is asking, and do they own this record?