惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
Project Zero
Project Zero
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security @ Cisco Blogs
B
Blog RSS Feed
N
News | PayPal Newsroom
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
GRAHAM CLULEY
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Palo Alto Networks Blog
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
Scott Helme
Scott Helme
F
Full Disclosure
Forbes - Security
Forbes - Security
F
Fortinet All Blogs
宝玉的分享
宝玉的分享
Help Net Security
Help Net Security
C
Check Point Blog
S
Secure Thoughts
Security Latest
Security Latest
T
The Exploit Database - CXSecurity.com
AI
AI
P
Privacy International News Feed
G
Google Developers Blog
J
Java Code Geeks
P
Proofpoint News Feed
W
WeLiveSecurity
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
The Register - Security
The Register - Security
Know Your Adversary
Know Your Adversary
量子位
Recorded Future
Recorded Future
MongoDB | Blog
MongoDB | Blog
U
Unit 42
博客园 - Franky
V
Visual Studio Blog
博客园_首页

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - elenavanengelenmaslova/mocknest-serverless: MockNest Serverless is a serverless mock runtime for AWS that enables realistic integration testing without relying on live external services. It runs natively on AWS Lambda and persists mock definitions in Amazon S3, with asynchronous webhooks/callbacks and AI-powered mock generation using Amazon Bedrock.
elenavanenge · 2026-06-16 · via Hacker News: Show HN

GitHub release AWS SAR Build Status codecov CodeQL OpenSSF Scorecard OpenSSF Best Practices OpenAPI

Kotlin JVM License: MIT

Deploy WireMock-compatible API mocking into your own AWS account.

Your integration tests need stable external APIs. Those APIs are often unavailable, unreliable, or impossible to configure with test data in non-production environments. MockNest gives you a persistent, serverless mock server running in your own AWS account.

Deploy via SAR | Demo Video | Postman Collection | API Docs

Received the 🏆 Creative Track Award at the AWS 10,000 AIdeas Competition.

MockNest Serverless Logo

Why MockNest?

Solution Delivery Customer-hosted Serverless AI mock generation SSE / Streaming IAM auth Pricing
MockNest Serverless Own AWS account ✅ (runs in your account) REST / GraphQL / SOAP ✅ (chunked delivery) Open source
WireMock Cloud Hosted SaaS Kubernetes + Postgres REST / GraphQL ✅ (chunked dribble) Free tier + paid
Mockoon Cloud Hosted SaaS CLI / Docker (self-assembly) HTTP / JSON templates Paid + trial
Beeceptor Hosted SaaS Docker / VMs / Kubernetes REST / GraphQL / SOAP / gRPC Free tier + paid
Postman Mock Servers Hosted SaaS Local desktop only HTTP example-based Free tier + paid

For detailed competitive analysis, operating model comparison, and cost positioning, see Market Analysis.

Getting Started

Quick Start (5 Minutes)

Try out MockNest Serverless quickly - deploy from SAR and test your first mocks.

Step 1: Deploy from AWS Serverless Application Repository

  1. Go to the AWS Serverless Application Repository
  2. Click "Deploy" and accept the default parameters
  3. Wait for deployment to complete (typically 2-3 minutes)

Step 2: Get Your API Details

After deployment completes, find your API URL and API key in the CloudFormation stack outputs:

export MOCKNEST_URL="https://your-api-id.execute-api.your-region.amazonaws.com/mocks"
export API_KEY="your-api-key-value-here"

Step 3: Verify Health

curl "${MOCKNEST_URL}/__admin/health" -H "x-api-key: ${API_KEY}"

Step 4: Create a Mock

curl -X POST "${MOCKNEST_URL}/__admin/mappings" \
  -H "x-api-key: ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "request": {"method": "GET", "urlPath": "/hello"},
    "response": {
      "status": 200,
      "jsonBody": {"message": "Hello from MockNest!"}
    },
    "persistent": true
  }'

Step 5: Test the Mock

curl "${MOCKNEST_URL}/mocknest/hello" -H "x-api-key: ${API_KEY}"

You should receive: {"message": "Hello from MockNest!"}

For detailed deployment options, customization, and building from source, see Deployment for Developers below.

What's Next?

Try AI-Assisted Generation Generate mocks from an OpenAPI spec with a single API call — see docs/USAGE.md for examples using REST, SOAP/WSDL, and GraphQL specifications.

Configure Your Client App To use MockNest with your application:

  1. Create mocks for the third-party APIs your app depends on (using manual creation or AI generation)
  2. Update your app's configuration to point at MockNest instead of the real API:
    • Change the API base URL to ${MOCKNEST_URL}/mocknest (plus any path prefix like /petstore)
    • API key mode (default): Add the API key header to your requests: x-api-key: ${API_KEY}
    • IAM mode: Sign requests with AWS SigV4 (using your AWS SDK or --aws-sigv4 in curl)
  3. Your app will now call mocks instead of real services

Learn More

Features

Current Features

  • Serve Mock Responses: Call mocked REST, SOAP, and GraphQL endpoints like real APIs — from tests, apps, or CI/CD pipelines
  • Manage Mocks via API (CRUD): Create, update, and delete individual mock definitions through a simple REST interface or Postman
  • WireMock-Compatible Mock Format: Mock definitions use the WireMock mapping format — reuse existing WireMock stubs or leverage the WireMock ecosystem directly
  • Import & Export Mock Sets: Bulk-import mappings from JSON to replicate environments or onboard quickly
  • Persistent Across Deployments: Mock definitions and request journal survive Lambda cold starts and redeployments via Amazon S3. Request journal includes sensitive header redaction.
  • Webhook and Callback Support: Trigger outbound HTTP calls from mocks to simulate chained or event-driven service interactions via SQS, support for AWS IAM SigV4 on webhooks
  • Support for secure API calls: AWS IAM SigV4 or API Key supported
  • AI-Assisted Mock Generation: Generate realistic, consistent mocks from OpenAPI, WSDL/SOAP, or GraphQL specs using Amazon Bedrock (configurable model, defaults to Amazon Nova Pro)
  • One-Click Deployment: Deploy via AWS Serverless Application Repository (SAR) or build from source with SAM
  • Support for Response Streaming: Responses up to 200 MB via Lambda response streaming, with SSE mock simulation using chunked delivery and configurable delays
  • Low Latency: Lambda SnapStart minimises cold start times

AI Mock Generation Flow

The user sends an API specification (OpenAPI, GraphQL, or WSDL) together with a natural language description. MockNest parses and compresses the spec, then assembles a prompt combining the spec summary, user description, WireMock schema rules, and a prompt template. Amazon Bedrock generates WireMock JSON mappings, which are validated automatically. If any mappings are invalid, only those mappings and their errors are sent back to the model for correction. The final response contains only valid mappings.

AI Mock Generation Flow

Koog Agent Strategy

Under the hood, the AI generation is powered by a Koog agent that follows a structured strategy graph — parse the spec, generate mocks via Bedrock, validate them, and self-correct if needed:

Koog Agent Strategy Graph

Planned Features

See MockNest Serverless project

Generation Quality

Generation quality is measured using a 55-scenario eval suite across 15 API specifications, with automated structural validation and LLM-as-a-judge semantic checks.

Protocol Scenarios Valid (no retries) Valid (1 retry) Semantic pass Avg cost Avg latency
REST 25 94% 100% 100% $0.005 2.8s
GraphQL 15 88% 100% 100% $0.006 3.9s
SOAP 15 100% 100% 100% $0.006 3.4s

Tested with Amazon Nova Pro (eu-west-1), 1 iteration per scenario. Self-correction retries are configurable (0–2 via BedrockGenerationMaxRetries, default 1). Invalid mocks are filtered out — only valid mocks are returned. For full methodology see the Prompt Eval Guide.

Architecture Overview

MockNest Serverless Architecture

MockNest Serverless consists of AWS Lambda functions that serve both the WireMock admin API and mocked endpoints, with persistent storage in Amazon S3. AI features use Amazon Bedrock for intelligent mock generation when called.

Known Limitations and Best Practices

Performance Considerations

Cold Start Impact: Mock definitions are loaded into memory at Lambda startup. With very large numbers of persistent mocks (thousands), cold start times may increase. For typical development and testing scenarios with hundreds of mocks, this is not a concern.

Runtime Latency by Mock Count: Lambda Power Tuner testing shows warm invocation latency stays flat as mock count grows — ~119 ms with 100 mocks (1024 MB) and ~113 ms with 1000 mocks (1536 MB). The optimal memory shifts from 1024 MB to 1536 MB at 1000 mocks due to increased heap and CPU demand, with per-invocation cost rising from ~$0.0000016 to ~$0.0000023.

Scaling Strategy: As your mock count grows, increase Lambda memory accordingly. For large-scale deployments or when managing many APIs, consider grouping mocks into separate deployments:

  • Multiple Deployments: Deploy separate MockNest instances for different API groups or teams. Group APIs by authentication method (since AuthMode is a deployment-level setting), team ownership, or traffic volume. This keeps mock sets at a reasonable size per Lambda, reduces cold start times, and allows independent access control.

    • Example: mocknest-payment-apis, mocknest-user-apis, mocknest-notification-apis
  • Namespace Organization: Within a single deployment, use namespaces to logically group mocks

    • Simple API: /petstore/
    • Client-specific: /client-a/petstore/
    • Multi-tenant: /tenant-b/petstore/
    • Allows multiple teams and APIs to coexist without conflicts

Memory Sizing: Increase Lambda memory as mock count grows. Load testing shows 1024 MB works well for ~100 mocks and 1536 MB for ~1000 mocks. Use multiple deployments when you need isolation, separate auth modes, or independent scaling.

For detailed memory sizing, cold start measurements, scaling benchmarks (100 vs 1000 mocks), and tuning guidance, see docs/PERFORMANCE.md.

Payload Size Limits

  • Request payloads are limited to 6 MB by Lambda's invocation payload limit. This is rare in typical REST API testing scenarios.
  • Response payloads support up to 200 MB via Lambda response streaming.
  • Most APIs will not approach these limits in typical integration testing scenarios.

SOAP/WSDL Support

SOAP 1.2 Bindings Only for AI Generation: MockNest Serverless AI-assisted mock generation supports only SOAP 1.2 bindings. SOAP 1.1 bindings are not supported for AI generation.

  • AI-Assisted Mock Generation: When generating mocks from WSDL specifications using the AI generation endpoint, only WSDLs that contain SOAP 1.2 bindings are accepted. WSDL 1.1 documents that use SOAP 1.2 bindings are supported.
  • Manual Mock Creation: You can manually create and serve SOAP 1.1 mocks using the standard WireMock admin API. The runtime supports serving SOAP 1.1 mocks - the restriction applies only to AI generation from specifications.
  • Error Handling: WSDLs with SOAP 1.1 bindings will be rejected during AI generation with: "Only SOAP 1.2 bindings are supported"
  • Non-SOAP WSDLs: WSDLs with only HTTP bindings or other non-SOAP protocols will be rejected with: "No SOAP binding namespace found; non-SOAP WSDL bindings are not supported"

Rationale: Supporting only SOAP 1.2 bindings for AI generation simplifies implementation, focuses on the modern SOAP standard, and reduces complexity in the AI generation pipeline. SOAP 1.2 is the current standard and is widely adopted in modern enterprise systems. The runtime itself can serve any SOAP version when mocks are created manually.

AI Generation Timeout

The default API Gateway REST API has a synchronous integration timeout of approximately 29 seconds. This constrains how many AI correction retries can complete within a single request. The BedrockGenerationMaxRetries SAM parameter controls this (0-2, enforced; default 1).

If you need longer-running AI generation requests, you can:

  • Switch to a Regional or private REST API endpoint type
  • Then request an API Gateway integration timeout increase from AWS (timeout increases are only available for Regional or private REST APIs)

Usage Examples

For comprehensive usage examples including SOAP, GraphQL, and advanced AI generation scenarios, see docs/USAGE.md.

Regional Support

  • Core Runtime: Works in any AWS region with Lambda, API Gateway, and S3 support
  • AI Features: Availability varies by region based on Amazon Bedrock model support
  • Tested Regions: See docs/REGIONS.md for the complete list of tested regions and AI feature availability
  • Officially supported model: Amazon Nova Pro in tested regions. Other Bedrock models are experimental and have not been tested.

When Not to Use MockNest

MockNest is designed for cloud-based integration testing over HTTP. For some scenarios, a different tool is a better fit:

  • gRPC or non-HTTP protocols — Use a protocol-specific mock tool if you need gRPC, WebSocket, or other non-HTTP protocol support.
  • Local-only development without an AWS account — Use standard WireMock or Mockoon if you only need local mocking without an AWS account.
  • Very large request payloads (over 6 MB) — Request payloads are limited to 6 MB by Lambda's invocation payload limit. This is rare in typical REST API testing scenarios. Response payloads support up to 200 MB via streaming.

Deployment for Developers

For developers who want to build from source or contribute to MockNest Serverless.

Prerequisites

  • AWS CLI configured with appropriate permissions
  • AWS SAM CLI installed
  • Docker (or equivalent such as Colima, for local testing)
  • Java 25+ and Gradle (or use included Gradle wrapper)

Build and Deploy from Source

  1. Clone and Build:

    git clone https://github.com/elenavanengelenmaslova/mocknest-serverless.git
    cd mocknest-serverless
    ./gradlew build
  2. Deploy with SAM:

    cd deployment/aws/sam
    sam build
    sam deploy --guided
  3. Quick Deploy with Defaults:

Development Configuration

Default SAM Configuration:

  • Region: eu-west-1 (Ireland) - supports all features including AI
  • S3 Bucket: Auto-generated unique name
  • AI Features: Enabled with Amazon Nova Pro
  • API Key: Auto-generated

Deploy to Different Region:

sam deploy --region us-east-1

Custom Parameters:

sam deploy --parameter-overrides \
  BedrockModelName=AmazonNovaPro \
  AuthMode=IAM

Local Development

  1. Run Tests (requires Docker for integration tests):

  2. Local SAM Testing:

    cd deployment/aws/sam
    sam local start-api

Project Structure

mocknest-serverless/
├── software/                    # Business logic and application code
│   ├── domain/                  # Domain models and business rules
│   ├── application/             # Use cases and WireMock orchestration
│   └── infra/aws/              # AWS-specific implementations
├── deployment/                 # Deployment configurations
│   └── aws/                   # AWS-specific deployment
│       ├── sam/               # SAM templates and scripts
│       └── shared/            # Shared deployment utilities
├── docs/                       # Documentation and examples
└── .kiro/steering/            # Architecture and design decisions

For detailed architecture information, see Architecture Documentation.

Configuration Reference

MockNest Serverless can be configured through SAM deployment parameters or environment variables.

General

Configuration SAM Parameter Environment Variable Possible Values Default Notes
Deployment Name DeploymentName N/A Alphanumeric string mocks Used for resource naming and API Gateway stage name
Auth Mode AuthMode N/A API_KEY, IAM API_KEY API_KEY creates an API key and usage plan; IAM requires SigV4-signed requests
Throttle Burst Limit ThrottleBurstLimit N/A 1-5000 1 Maximum number of concurrent requests allowed (burst capacity) for API Gateway throttling
Throttle Rate Limit ThrottleRateLimit N/A 1-10000 100 Steady-state request rate (requests per second) for API Gateway throttling

S3 Bucket: The MockStorage S3 bucket is auto-generated by the template. Pointing at an external bucket is not supported — Lambda IAM permissions are scoped to the MockStorage resource.

Stack name length: Lambda function names are limited to 64 characters. MockNest appends suffixes like -runtime-async (14 chars) to the stack name. When deploying via SAR, the serverlessrepo- prefix (15 chars) is added automatically. Keep your stack name short to stay within the limit.

Runtime Lambda — serves mock responses

Configuration SAM Parameter Environment Variable Possible Values Default Notes
Memory RuntimeLambdaMemorySize N/A 512-10240 MB 1024 Default optimized via Lambda Power Tuner with 100 mocks. See PERFORMANCE.md
Timeout RuntimeLambdaTimeout N/A 3-29 seconds 29 Bounded by API Gateway synchronous limit (~29s)

Generation Lambda — AI mock generation via Bedrock

Configuration SAM Parameter Environment Variable Possible Values Default Notes
Memory GenerationLambdaMemorySize N/A 256-10240 MB 512 Default optimized via Lambda Power Tuner. See PERFORMANCE.md
Timeout GenerationLambdaTimeout N/A 10-900 seconds 29 Default matches API Gateway synchronous limit (~29s). Each retry counts against this timeout
Max Retries BedrockGenerationMaxRetries BEDROCK_GENERATION_MAX_RETRIES 0-2 (enforced) 1 Each retry requires a full Bedrock round-trip
Bedrock Model BedrockModelName BEDROCK_MODEL_NAME Any Bedrock model ID AmazonNovaPro Amazon Nova Pro is officially supported
Inference Mode BedrockInferenceMode BEDROCK_INFERENCE_MODE AUTO, GLOBAL_ONLY, GEO_ONLY AUTO Controls cross-region inference routing. Use GEO_ONLY for strict data residency

Webhook / RuntimeAsync Lambda — asynchronous webhook dispatch

Configuration SAM Parameter Environment Variable Possible Values Default Notes
Webhook Timeout WebhookTimeoutSeconds N/A 5, 10, 25, 55, 115 s 25 Also drives RuntimeAsync Lambda timeout (value + 5s) and SQS queue visibility (RuntimeAsync timeout × 6, per AWS best practice)
RuntimeAsync Memory RuntimeAsyncLambdaMemorySize N/A 256-10240 MB 256 Memory for the RuntimeAsync Lambda (webhook dispatch via SQS). Default optimized via Lambda Power Tuner. See PERFORMANCE.md
Sensitive Headers SensitiveHeaders MOCKNEST_SENSITIVE_HEADERS Comma-separated names x-api-key,authorization,... Redacted in S3 request journal. Applied to both Runtime and RuntimeAsync Lambda functions

Retention

Configuration SAM Parameter Environment Variable Possible Values Default Notes
Log Retention LogRetentionDays N/A 1, 3, 5, 7, 14, 30, 60, 90+ 7 Applies to all Lambda functions (Runtime, Generation, RuntimeAsync)
S3 Version Retention S3VersionRetentionDays N/A 1-365 days 7 Days to keep old S3 object versions (previous mock definitions after updates)
Request Journal Retention RequestJournalRetentionDays N/A 1-365 days 1 Days to keep request journal records in S3 (requests/ prefix)

Configuration Precedence: Environment variables override SAM parameters at runtime. Use SAM parameters for initial deployment configuration and environment variables for runtime adjustments without redeployment.

Cost Information

MockNest Serverless uses a serverless, pay-as-you-go architecture — you only pay for the AWS resources you consume.

Core Runtime (Lambda, API Gateway, S3, SQS, CloudWatch, IAM): Pay-as-you-go. See AWS Free Tier for current eligibility and limits.

AI Mock Generation (Amazon Bedrock): Pay-as-you-go. You pay nothing for Bedrock if you don't use MockNest's AI generation endpoints. See Amazon Bedrock pricing for details.

For a detailed cost breakdown and monitoring tips, see the Cost Guide.

Contributing

We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help makes the project better.

See CONTRIBUTING.md for guidelines on:

  • Reporting bugs and requesting features
  • Submitting pull requests
  • Development setup and standards
  • CI/CD pipelines and testing requirements

License

This project is open source and available under the MIT License.

Support

  • Issues: Report bugs and feature requests via GitHub Issues
  • Changelog: See CHANGELOG.md for release history and recent changes
  • Documentation: Additional documentation in the docs/ directory
  • Architecture: Design decisions documented in .kiro/steering/
  • Community: Contributions welcome! See CONTRIBUTING.md

Learn more

A detailed explanation of the problem and approach: Goodbye Flaky External APIs — Hello Mocking in the Cloud

For additional context and background: AIdeas Finalist: MockNest Serverless

🏆 AWS 10,000 AIdeas Competition — Meet the Winners

Security

MockNest Serverless is designed with security in mind. Access is protected at the edge via API Gateway with configurable authentication (API key or AWS IAM SigV4).

For the full security policy, vulnerability reporting process, IAM permissions reference, and guidance on restricting Bedrock permissions by region, see SECURITY.md.

Troubleshooting

Common Issues

  1. Region Mismatch: Ensure all AWS resources are in the same region
  2. Permissions: Verify IAM roles have necessary S3 and Lambda permissions. See SECURITY.md for the full permission breakdown per role and guidance on restricting Bedrock permissions by region.
  3. Cold Starts: First requests may be slower due to Lambda cold starts

Logs

MockNest Serverless provides comprehensive logging through CloudWatch:

Log Groups Created:

  • /aws/lambda/{stack-name}-runtime - WireMock runtime and mock serving
  • /aws/lambda/{stack-name}-generation - AI-assisted mock generation
  • Retention: 7 days default (configurable via LogRetentionDays parameter)

View logs via SAM CLI:

# Runtime function logs
sam logs -n MockNestRuntimeFunction --stack-name mocknest-serverless --tail

# Generation function logs  
sam logs -n MockNestGenerationFunction --stack-name mocknest-serverless --tail

View logs in AWS Console:

  1. Go to CloudWatch → Log groups
  2. Find /aws/lambda/mocknest-serverless-* log groups
  3. View recent log streams

Note: API Gateway access logs are disabled to simplify deployment. Lambda logs provide comprehensive application monitoring.