IamBishal

Results for “Security & Identity”

12 matches in articles, lessons and projects.

Search results

12 results

  • Article

    Stop Wrapping Endpoints as Tools: What API Gateway Practice Teaches About Agent Tool Design

    Point an OpenAPI-to-MCP generator at an orders service and you get tools that guess at PATCH bodies, chain several calls to do one task, and run with the service's own credential. This piece sets out three tests for agent tool design: task shape, errors the model can act on, and server-side enforcement. It also covers which gateway practices carry over and when a thin wrapper is still fine.

    • 19 min read
  • Project

    KYC & Verification API Platform

    Triaja's multi-tenant API platform for lenders, NBFCs and HR teams: identity, employment, credit, bank and business checks by API or bulk upload, with security enforced at every layer from the edge to the database.

    • Lesson

      Make every answer respect who is asking

      Closes the leak: a verified JWT becomes the principal, transaction-local settings carry it into PostgreSQL, a non-owning app role without BYPASSRLS meets row-level security on documents and chunks, the vector query filters by tenant and document ACL with relaxed-order iterative scans, retrieved context is escaped and marked as data, and tests probe each layer separately, including a pooled connection after COMMIT.

      • 33 min read
      • In Build a secure RAG API
    • Lesson

      How a RAG API answers, and where it leaks

      Maps the ingest, retrieve and generate path of a RAG API for a multi-tenant support assistant, and names five leak paths plus misleading answers at the boundaries between stages. Sets out the data model, the in-query tenant and role filter backed by identity propagation and RLS, and a cross-tenant probe with controls that the rest of the series builds.

      • 15 min read
      • In Build a secure RAG API
    • Lesson

      Ingest and search support documents with pgvector

      Builds ingest and retrieve for a multi-tenant support assistant: PostgreSQL 17 with pgvector in Docker, a schema whose chunks carry tenant and document ACL tied by a cascading foreign key, paragraph-based chunking with overlap, an embedding provider interface, a cosine HNSW index confirmed with EXPLAIN, and an unprotected /search endpoint that visibly returns another tenant's runbook.

      • 35 min read
      • In Build a secure RAG API

    Didn't find what you're looking for?

    I'm always happy to help! Get in touch if you have a specific topic in mind.

    Contact Me
    The more you learn, the more you create opportunities for yourself and others.
    — Bishal Saha

    Bishal SahaLet's build together

    Have a system to design, or an AI feature to get right?

    Tell me about the problem. You'll get a clear, honest view of the best way forward.

    • Reply within 24 hoursOn business days, with my honest view and a next step.
    • Accepting select engagementsArchitecture, AI features and full builds.
    • Remote, worldwideWorking with startups, SMEs and enterprises.