1 stable release

new 7.0.0 Jan 27, 2025

#1557 in HTTP server

Download history 88/week @ 2025-01-22

88 downloads per month
Used in 2 crates

Apache-2.0

1MB
19K SLoC

🚀 Mycelium: The Ultimate API Gateway

Welcome to Mycelium API Gateway, the ultimate solution for secure, flexible, and multi-tenant API management! Whether you're building a robust platform or enhancing your downstream APIs, our gateway is designed to provide you with everything you need for seamless authentication, authorization, and security. 🎉

🌟 Key Features

🔒 Authentication & Authorization

  • Federated Identity Support: Integrate with external identity providers while maintaining full control over roles and permissions.
  • Role-Based Access Control (RBAC): Define granular roles for both the gateway and downstream APIs using simple YAML configurations.
  • Two-Factor Authentication (2FA): Built-in support for TOTP to ensure an extra layer of security.

🏢 Multi-Tenant Architecture

  • Tenant Management: Create and manage tenants with subscription-based accounts.
  • Role Assignment: Invite users to join tenants and assign them specific roles to streamline collaboration.

🔑 Secure Secrets Management

  • Vault Integration: Leverage HashiCorp Vault for secure storage of secrets.
  • Flexible Configurations: Use secrets stored in Vault, environment variables, or define them in YAML.
  • Dynamic Secret Injection: Automate secure secret delivery to downstream APIs.

🌐 API Routing & Webhooks

  • Smart API Routing: Easily configure API routes with support for secure token-based authentication.
  • Webhook Support: Define webhooks with secrets for secure callbacks and notifications.

📄 YAML-Driven Configuration

  • Simple and Intuitive: Manage all configurations (tenants, roles, permissions, routes, and security) with easy-to-read YAML files.
  • Environment Flexibility: Combine YAML definitions with environment variables for maximum flexibility.

🛡️ Security-First Design

  • Downstream Security: Automatically pass role-based security credentials to downstream APIs.
  • Token Management: Store and securely pass tokens in request headers.
  • Compliance Ready: Designed with modern security practices to meet enterprise compliance requirements.

🎯 Why Choose Mycelium API Gateway?

  1. Community-Driven and Open Source: Leverage a growing community while benefiting from an open-source model.
  2. Scalable and Modular: Designed to grow with your needs, from startups to enterprise-scale applications.
  3. Developer-Friendly: YAML-based configurations, secure secret management, and role-based policies make it easy to get started.

🚀 Getting Started

Prerequisites

  • HashiCorp Vault (optional but recommended for secret management)
  • Docker (optional for quick deployment)

💬 Join the Community

🌟 Star Us

If you find this project useful, please give us a ⭐ on GitHub to support our growth and attract more contributors!


License

Mycelium API Gateway is licensed under the Apache 2.0 License. Additional restrictions for commercial use apply under the Commons Clause.


We can't wait to see how Mycelium API Gateway powers your next big project! 🚀

Dependencies

~40–55MB
~1M SLoC