Skip to content

Version 3.0.0

Choose a tag to compare

@eswar-7116 eswar-7116 released this 25 May 06:31
· 28 commits to main since this release
v3.0.0
e49f237

glambdar version 3.0.0

Notable Changes

Breaking Changes

  • 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.
  • Native UDS Server: Replaced Node.js net.createServer with Bun's native Bun.listen, bypassing stream abstraction overhead.
  • 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).

Full Changelog

v2.0.0...v3.0.0