Secrets in code, and what to do when they leak

Lesson 12 of 27 · Secrets, crypto and data handling · 2 min Get the course to watch

Ask an assistant to connect Tidepool to a payment provider and it will give you something that runs on the first try. To make that happen, it puts a key in the source file, sometimes a placeholder, sometimes the real one you pasted into the chat to help.

The rest of this lesson

  • Why a placeholder is still a problem
  • Load it from the environment
  • Deleting the commit does not help
  • The order matters
  • A check before the push
  • What to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Secure the code AI writes.