Security audit vs penetration test
Security audit vs penetration test: when to review config first, when a buyer needs a pentest, and usual order for SaaS.
·
3 min read
Secrets in git repository history are how a temporary .env commit, a pasted API key, or a cloud access key becomes permanent exposure. Forks, CI caches, and old clones keep the value long after you delete the file on main. So stop the bleed first, then build habits that keep the next temporary commit from sticking.
Someone needs the app running tonight. They commit .env, a JSON key file, or a “temporary” password in config. Or they paste a token into a script that lands in the first PR. CI then echoes the secret into logs. Chat dumps the same key into a ticket. I’ve watched London SaaS teams discover the key months later in a forgotten branch, a public fork, or a zip of the repo someone emailed a contractor.
The pattern is the same: short-term convenience, long-term copy you no longer control. API keys in GitHub issues and committed env files are the same class of mistake with different filenames. “Temporary” is how most secrets in git repository leaks start, not how they end.
Removing the file on the latest commit does not remove it from history. A history rewrite can scrub known commits, but every clone, mirror, fork, and backup still needs the same treatment. Force-pushes break open PRs and confuse the team. If the repo was ever public, or a contractor had a full clone, assume the secret is already out. Treat rewrite as hygiene after rotation, not as the primary cure. That is why “remove secrets from git history” alone is a weak plan when the key is still live at the provider.
Order matters. Revoke or rotate the exposed credential at the provider before you tidy git. Then check where else that same value was reused: staging, a second cloud account, a partner integration. Invalidate sessions and CI variables that still hold the old secret. Only then clean the tree and decide whether a history scrub is worth the disruption. For many small teams the urgent win is a dead key and a short written order of operations, not a perfect history rewrite on day one. If you reverse that order, an attacker with the old commit still has a live key while you argue about rewrite tooling and force-push etiquette.
Keep secrets out of the repo by category. Local env files stay untracked and never get “just this once” commits. Cloud and API keys live in the host’s secret store or CI’s secret store, injected at runtime. Shared team passwords do not belong in git at all. Pre-commit and CI checks that refuse obvious keys are useful guardrails; they do not replace rotation when someone walks around them. “Just use a vault product” is not a plan if nobody owns who puts values in and who rotates them.
A security audit can still catch what habit missed. This piece is about the git-shaped leak, not another full go-live checklist.
After a survey and any fixed-price cleanup, you should still own the git hosts, cloud accounts, and secret stores. Eight Mile can help revoke what leaked, scrub what is safe to scrub, and set the habits. You keep the logins and the runbook that says how a new key is created and where it must never be pasted. Founders should be able to name who can rotate production credentials without waiting on a weekend Slack ping. If only the agency can rotate production secrets, you moved the problem, not the risk.
Assume anything once committed is copied. Rotate first. Then make the next leak boringly rare.
If you want a short secrets and shipping-hygiene survey — what might already be in history, what to rotate first, and which habits will stick — contact Eight Mile and say which repos and clouds matter this week.
Security audit vs penetration test: when to review config first, when a buyer needs a pentest, and usual order for SaaS.
·
3 min read
What the NCSC's China-linked botnet alert means for a small business: check the router and remote access kit you already own.
·
4 min read
Offboarding staff from Microsoft 365 or Google Workspace, step by step: cut access, revoke devices, keep mail and files, and stop paying for the licence.
·
4 min read
Multi-tenant SaaS mistakes that show up after launch: isolation, roles, files, billing, and when to stop and fix.
·
3 min read
Security audit checklist before you go live: access, secrets, backups, auth, deps, alerting, and when to bring in an auditor.
·
3 min read
What to check before you inherit a custom app: code and deploy-key control, tests, patches, and whether a fix can ship tomorrow.
·
4 min read
When the office broadband dies and nobody has a backup, work stops. What fails, why a hotspot is not a plan and what tested failover looks like.
·
3 min read
Leaving a freelancer with your AWS root login is a risk even after a good build. How to take back control with named IAM, MFA and a handoff.
·
4 min read
CRM for a small firm off the shelf or built: when HubSpot-class tools fit, and when a system on your own job data serves trades and clinics better.
·
4 min read
A plain-English guide to Cyber Essentials for small businesses, covering what the scheme checks and when a contract will ask for it.
·
4 min read
A proper home office network for directors and remote staff keeps work devices apart from the household and gives them secure access to the office.
·
3 min read
Office move IT checklist for London SMEs: internet lead times, surveys, cabling, network design, servers and security before and after moving.
·
4 min read
Website care plan vs rebuild: when maintenance is enough for a London SMB site, and when a full rebuild earns the spend.
·
3 min read
When UniFi is enough, and when you want Meraki/Cisco: cost, ownership, multi-site, and support for London offices.
·
3 min read
Multi-site office network design for London SMEs: site-to-site links, consistent segmentation, accounts you keep.
·
3 min read
Separate guest Wi-Fi from office network traffic so visitors never sit one hop from finance, payments, or file shares.
·
3 min read
A backup restore test proves copies work on a clock you can live with. Untested backups are hope with a green tick.
·
3 min read
Moving off the server under the desk: stage a move to managed hosting or cloud you own — without a big-bang rewrite.
·
3 min read
Cloud bill went up and nobody can say why: usually orphaned resources, missing tags, or one shared account. Fix ownership first.
·
3 min read
If one person knows how to deploy it, you have a person, not a process. Fix ownership, access, and a path the team can run.
·
3 min read