You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication & RBAC: All API endpoints (except /health) are now protected by an X-API-Key header. Requests without a valid key will return 401 Unauthorized.
Role-Based Access Control: Keys are now assigned discrete roles (admin, deployer, invoker, viewer), strictly limiting endpoint access based on a default-deny policy.
Features
Database Support: Added support for PostgreSQL and MySQL alongside SQLite. The database connection can be configured via ~/.glambdar/db_config.json.
Async Audit Logging: Administrative and key-based actions are now continuously audited to the database asynchronously, maintaining warm-invocation latency goals.
Key Management API: New keys can be generated, promoted, or revoked dynamically via the /auth/keys endpoints without downtime.
Bun Runtime Migration: Migrated the worker script from Node.js to Bun to optimize warm-start execution paths.
ESM Native Resolving: Replaced synchronous Node.js require() with dynamic await import(), natively resolving both CJS and ESM code.
Graceful Shutdown: Utilizes server.stop(true) to gracefully drain and close active socket connections.
Updated Base Image: Migrated default container runtime image from node:25-slim to oven/bun:slim.
Bug Fixes
Concurrent Pool Access: Resolved a data race on Entry.LastUsed during concurrent Release calls by introducing a mutex lock on Entry.
CI/CD Testing: Added -race and -count=1 flags to both the unit test and integration test workflows to ensure concurrent race conditions are automatically detected in the pipeline.
Performance Gains
Warm Start Latency: Improved to ~0.99 ms (down from ~1.06 ms under identical test conditions, representing a 7% speed improvement).
Warm Throughput: Increased to ~2,449 req/s (up from ~2,248 req/s, providing an 8.9% improvement in throughput).