Module middleware

Source
Expand description

Middleware components for the microsandbox server.

This module handles:

  • Request/response middleware
  • Authentication and authorization
  • Request tracing and logging
  • Error handling

The module provides:

  • Middleware components for common operations
  • Authentication middleware for API security
  • Logging and tracing middleware

Functionsยง

auth_middleware
Authentication middleware for verifying API keys and namespace access
logging_middleware
Log incoming requests
proxy_middleware
Proxy middleware for forwarding requests to a target service
proxy_uri
Convert a URI to a proxied URI targeting a sandbox
validate_token_and_namespace
Validate the token and check namespace access