Application Security
Security work that sticks is built into the application and the pipeline rather than bolted on afterwards. These guides cover per-client rate limiting at the gateway, keeping secrets out of code and config with HashiCorp Vault, gating releases on image vulnerabilities, isolating tenants in the database with row-level security, and getting authentication and authorization right in Laravel APIs.
7 guides
Guides
Tutorial: Requesting Runtime Permissions on Android 14: Guiding Users Past "Don't Ask Again"
Android applications often require access to sensitive user data or device capabilities, such as the camera, contacts, or location. Since Android 6.0 (API 23), users grant these *runtime permissions*...
Per-Client API Rate Limiting in OpenResty with Lua
Rate limiting protects an API from scrapers, credential-stuffing scripts and runaway clients, and keeps one heavy user from degrading everyone else's latency. Doing it in the reverse proxy means rejec...
Laravel Sanctum for SPAs and Mobile Apps: Sessions, Tokens and Common Errors
Laravel Sanctum handles two different kinds of API client with one guard. A first-party SPA authenticates with Laravel's normal session cookie plus CSRF protection, while mobile apps and scripts authe...
Trivy Image Scanning in GitHub Actions: A Gate That Blocks Only Fixable Issues
Container images carry more than your application: a base operating system, language runtimes, and every package your dependencies pulled in. Any of them can have known vulnerabilities (CVEs). Scannin...
Laravel Roles and Permissions with Spatie: Setup, Policies and Guard Gotchas
Authorization often starts as a few if ($user->is_admin) checks and grows into dozens of scattered, inconsistent conditions. Role-based access control (RBAC) replaces them with named permissions group...
HashiCorp Vault for Application Secrets: KV v2, Policies and AppRole
Database passwords, API keys and certificates tend to spread: .env files on laptops, CI variables, config files on servers, sometimes Git history. Every copy is a place they can leak from, and rotatin...
PostgreSQL Row-Level Security for Multi-Tenant Apps: Pitfalls That Break Isolation
In a shared-schema multi-tenant application, every query must include WHERE tenant_id = ?. Miss it once, in a new report, an admin export or a hastily written background job, and one customer sees ano...
