~/talk

Oops! I Committed My Password To GitHub!

Talkat PyCon 2018 · on Saturday, 2018-05-12· [security]

Accidental secret commits are common; the fix is immediate revocation of the exposed token and rotation, not fiddling with Git history. Prevention is concrete: stop hardcoding, read secrets from environment variables (os.environ.get), keep project secrets in a local .env file and add it to .gitignore, and load them with python-dotenv. For production use a real secret store (AWS/GCP Vault) so secrets are not in repos, and ensure tokens can be revoked quickly.

AI-written summary · about

  1. 0:00Introduction
  2. 2:11The Survey
  3. 12:05The Perfect Solution
  4. 13:56How to Prevent This
  5. 16:36Where to Put Secrets
  6. 17:54Python
  7. 22:35Environment
  8. 23:38Summary
  9. 25:31Questions
~/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.