Api Security | Hokstad Consulting

Api Security

Blog posts in the Api Security category

Pydantic Validates AI Tool Arguments Before Execution

Validate AI-generated tool arguments with Pydantic v2 using strict types, safe correction feedback and two retry attempts before execution.

Read more

Parallel Tool Calls: Matching Results to Call IDs

Keep every parallel tool result tied to its original call ID: validate IDs, store outcomes, and retry submission—not the execution.

Read more

Claude API Tool Use: Integration Guide

Connect Claude to backend APIs safely: read-only tool loop, server-side validation, timeouts, idempotency and audit logging.

Read more

Tool Schema Design: 7 Function Calling Practices

Seven rules for designing tool schemas and function calls: clear names, precise types, enums, nested objects and strict runtime validation.

Read more

Schema Drift Breaks Agent Tool Calls: Debugging Guide

Treat failed agent tool calls as contract failures: trace versions, isolate mismatches and enforce contract tests.

Read more

AI Model Extraction Tests: Rate Limits and Alerts

Test rate limits, detection and user impact to measure, tune and retest defences against distributed AI model extraction.

Read more

SharePoint Repository Connectors for AI Agents

Deploy a read-only SharePoint connector for AI agents with access checks, minimal Graph permissions, cited retrieval and testing.

Read more

SBOM vs KBOM for Kubernetes: Comparison

Build-time SBOMs show package composition; KBOMs map live Kubernetes workloads—use both for audits, governance and fast incident triage.

Read more

SAML vs. OIDC: Choosing the Right Protocol

Use SAML for browser-based enterprise SSO and OIDC for modern web, mobile, SPA and API-driven apps; choose by app type and operational cost.

Read more

Securing APIs with OAuth2 and JWT

Short-lived JWTs, strict signature/iss/aud/exp/scope checks, correct OAuth2 flows (PKCE or client credentials), secure storage and monitoring.

Read more

AI in RBAC Policy Enforcement

Static RBAC is unsafe for agentic cloud systems — AI enforces per-request, context-aware access with short-lived capability tokens.

Read more

IAM Policies for Least Privilege Pipelines

Implement least-privilege IAM for CI/CD pipelines using OIDC, permission boundaries, CloudTrail and IAM Access Analyzer.

Read more