How to Secure a GitHub Repository: Branches, Secrets, Actions
How to secure a GitHub repository: enforce 2FA, least-privilege teams, branch protection with code owners, push protection, and hardened GitHub Actions.
Guides and explainers, grounded in data
Deep dives and explainers on the cybersecurity questions people actually ask. Practical, sourced, and built to answer the question, not sell you something.
MCP security explained: tool poisoning, rogue servers and token risks, plus a step-by-step guide and checklist to secure an MCP server you build.
Read article →
Trending113 entries
Page 1 of 10
How to secure a GitHub repository: enforce 2FA, least-privilege teams, branch protection with code owners, push protection, and hardened GitHub Actions.
How to secure a Terraform state file: remote encrypted backend, state locking, least-privilege access, and keeping secrets out of state entirely.
How to do STRIDE threat modeling: draw a data flow diagram, apply Spoofing to Elevation of privilege per element, rank threats and ticket fixes.
How to secure a Supabase database: enable RLS on every table, write per-operation policies, keep the service_role key server-side, and test with the anon key.
How to secure a Firebase database: replace test-mode rules, scope rules to request.auth.uid, validate writes, test in the emulator, enforce App Check.
How to secure a Next.js app: authorize in every Server Action and route, not just middleware, protect secrets, add headers and CSP, and patch fast.
How to secure FastAPI endpoints: router-level auth dependencies, JWT verification, object-level checks, strict Pydantic models, response models and limits.
How to secure a Django REST Framework API: IsAuthenticated by default, scoped querysets, explicit serializer fields, throttling and check --deploy.
How to secure API endpoints: inventory, auth by default, function, object and property-level authorization, schema validation, rate limits and monitoring.
How to prevent IDOR: scope every query by owner or tenant, centralise authorization, deny by default, check writes, and test by swapping IDs.
How to fix broken access control: deny by default, function and object-level checks, no client-trusted roles, field allow-lists, multi-role tests.
How to prevent SSRF: allow-list hosts, block private and metadata IPs after DNS, stop rebinding and redirects, use IMDSv2 and restrict egress.