Search
Lessons (40)
- Authentication, Authorization & API Security
… user.role }, process.env.JWT SECRET, { expiresIn: "15m" }); function authenticate(req, res, next) { const token = req.headers.authorization …
- AWS Security Building Blocks
… Response Authentication says who signed in. Authorization decides what they may read. After verifying a token, use the …
- RBAC and Cluster Security
… rbac.authorization.k8s.io Check access without guessing: bash kubectl auth can-i delete pods -n prod --as …
- Go Web Services with Gin
… v1") tasks := api.Group("/tasks", auth) // every route in this group needs auth { tasks.GET("", h.List) tasks …
- Edge, Platform & Frontend Delivery
… locale, tenant, device variant where necessary, and authorization scope. Incorrect caching can become a data leak. Make deployment …
- S3: Store Files Safely
… A denied public request and a successful role-authenticated request are compatible outcomes. For a temporary authenticated download …
- API Contracts, Gateways and Security
… a gateway applies authentication, authorization, rate limits and routing before services enforce resource-level policy](/img/system-design …
- CloudFront: Faster Websites and Safer File Delivery
… This authorizes a particular CloudFront distribution to read objects. It does not by itself authenticate visitors to that …
- API Gateway, BFF & Service Discovery
… http://users-svc:8080 plugins: [jwt-auth, rate-limit: { minute: 100 }] - path: /api/orders service: http://orders-svc …
- Design a Social Media Feed
… If the author is normal: add post 555 to each follower's inbox. 4. If the author is …
- Product-Scale Frontend Patterns
… For money movement, inventory reservation or destructive operations, prefer confirmation and a server-authoritative result. Offline-first is …
- MVC, MVP & MVVM
… LoginView, private auth: AuthService) {} async onLoginClicked(email: string, password: string) { if (!email.includes("@")) return this.view.showError("Please …
- How a Web Request Works
… The server proves its identity with a certificate signed by a trusted authority, which is the padlock 🔒 in …
- Developer Learning Plan and Document-Assistant Capstone
… Existing web developers can reuse API, authentication, testing, and deployment skills. Stage Learn Build Completion evidence --- --- --- --- Week 1 …
- DBMS Foundations, Keys & Normalization
… What is normalization and why use it? Normalization organizes facts so each fact has one authoritative home. It …
- Serverless: Lambda and API Gateway
… Use the HTTP API payload format expected by the handler, authorize API Gateway to invoke this function, and …
- Internals, Upgrades, Resilience and Interview Questions
… Store object (after authn, authz, admission) C- API: Watch: create ReplicaSet, then Pods S- API: Watch: bind unscheduled …
- What Is Artificial Intelligence? A Developer's Guide
… It still needs ordinary software to authenticate users, read messages, display results, and collect corrections. Artificial intelligence (AI …
- Python Web APIs: FastAPI and Django
… ORM, migrations, admin panel, authentication, forms, templates and security defaults are all included. "Batteries included." ![FastAPI vs Django …
- NestJS Core Concepts
… middleware → guards → interceptors → pipes → handler → interceptors → filters on error. - Use a global ValidationPipe with DTOs, guards for auth …
- AI Agents and Tool Use
… The model proposes an action; application code should decide whether the action is valid and authorized. mermaid sequenceDiagram …
- Putting AI Systems into Production
… The model is one dependency among several. mermaid flowchart LR U[User request] -- API[Application] API -- GUARD[Auth …
- IAM: Who Can Do What
… Attach this policy through your authorized role-management process; do not assume your learner identity can edit IAM …
- AWS Interview Questions: Clear Answers
… Add user authentication, an authorized API, and a database suited to its queries. Keep the database private, scope …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… 2500 }); // "👔 manager approved" mermaid flowchart LR R[Request] -- H1[Logger] -- H2[Rate limiter] -- H3[Auth] -- H4[Route handler …
- Node.js and Express
… Bearer … req.get("authorization") Middleware: the pipeline ⭐ A middleware is (req, res, next) = { … } . It can read/modify the …
- AI Evaluation, Safety, and Security
… For tool use, test argument validation, authorization, retries, timeouts, and harmful actions. Measure latency and cost alongside quality …
- Providers and Your First AWS Resources
… Further reading: [AWS provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs), [AWS authentication](https://registry …
- Scalable Frontend Architecture
… no order rules lib/http.ts authenticated transport, retries, errors Avoid a global components/ directory becoming the default …
- REST API Design
… critical POSTs - [ ] Versioning strategy decided - [ ] Authentication on every non-public route (see Authentication & Security ) - [ ] Rate limiting (see Scaling …
- Serverless Architecture
… static frontend"] U -- APIG[API Gateway] APIG -- Auth["🔐 Cognito / Auth0"] APIG -- L1["λ orders API"] L1 -- DDB[(DynamoDB …
- Running Kafka in Production: The DevOps View
… TLS, authentication, ACLs DevOps / platform team (with security) Monitoring, alerting, consumer lag Shared Creating topics through CI/CD …
- Extending Kubernetes: CRDs, Operators and Admission
… when the parent goes. Admission control After authentication and authorization, admission can modify or reject requests before they …
- TypeScript in Practice
… string; auth: boolean }; // With a type annotation you lose the exact keys const routes = { home: { path: "/", auth: false …
- AWS Databases: Choose the Right One
… Connect from an authorized application host inside the intended network, using the database hostname and verified TLS according …
- Backend Design Scenarios
… keep the celebrity's posts in an author timeline and merge them into a user's feed when …
- Portfolio and GitHub That Prove Your Skills
… Todo app from a tutorial Expense tracker with auth, roles, search and export Runs only on your laptop …
- VPC Endpoints, Transit Gateway and Hybrid Networking
… Its policy restricts the path; the workload still needs authorization. See [interface endpoint configuration](https://docs.aws.amazon …
- Finding Service Boundaries with DDD
… auth, email, payments"] -- GenHow["Buy / use SaaS"] Put your best engineers and cleanest design into the core ; buy …
- Frontend Security
… The backend must validate and authorise everything again. And never put secrets (API keys with write access, database …