What the brief rules out
The brief’s third submission bullet: “Confirm the repo contains no real secrets, tokens, .env files, credentials, production logs, or personal/customer data.” Note the word repo, not branch. Because the repository is public and you submit only its URL, anything committed to any branch, at any point in its history, is part of what you publish.
- Secrets and tokens API keys, access tokens, signing keys, passwords.
- .env files Local environment files, even if they look harmless today.
- Credentials Private keys, certificates, service-account files.
- Production logs Real request logs or traces, which often carry identifiers.
- Personal or customer data Real names, e-mails or records, including in seed data or screenshots.
The current tree is not the whole repository
Deleting a file in a later commit removes it from the tree but not from history; anyone can still check out the older commit. So a hygiene check has two halves: scan the current tracked files, and scan the history. If something real was ever committed, deleting it is not enough. The value must be treated as exposed and rotated, and the history cleaned with the owner’s explicit approval, because rewriting history is a destructive Git operation the course tells you never to do casually.
Key ideaAsk two questions: is it in the tree now, and was it ever in the history?
Read with careThe brief asks you to confirm; it does not prescribe a tool. If you use a scanner, record which one and its limits. If it was not available, say so instead of implying a clean result.
Ignore files are part of the security story
Module 4 called the .dockerignore part of the security story: it keeps .env, .git, virtual environments, caches and build artifacts out of the image. .gitignore does the same job for commits. Both are preventive. Neither removes something already committed, and neither replaces looking. A useful check is to read the build context and the tracked file list once with your own eyes before release.
- .gitignore excludes .env, virtual environments and caches.
- .dockerignore excludes .env and .env.*, .git, virtual environments, caches and files the API does not need.
- No .env, key or credential file is tracked now.
- No such file appears anywhere in the history.
- Seed data, screenshots and docs contain only clearly synthetic names and values.
Describe a sensitive category, never its value
Evidence documents sometimes need to mention that something sensitive exists, for example that an environment variable is required. Name the category and where it is configured; never copy the value. The same applies to evidence about scans: “no .env or key file tracked” is good evidence; pasting what you found is not.
Key ideaA rule a teammate can test: the document passes only if a reader cannot learn any secret value from it.
Key takeaways
- The brief bans secrets, tokens, .env files, credentials, production logs and personal or customer data from the repo.
- Check both the current tree and the history; deleting a file does not unpublish it.
- Ignore files prevent new mistakes; they do not fix old ones.
- The same categories are the ones you never paste into an AI tool.