authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
73 stars 30 forks source link

Support more flexible quota system for Enterprise plan #4218

Open chpapa opened 1 month ago

chpapa commented 1 month ago

Currently all enterprise plan have unlimited quotas.

As we started supporting more clients, we need a more flexible quota system, here are the brief requirements:

  1. A project can have:
    1. a plan name, OR
    2. quota config that override the plan
  2. Each quota config should have (brainstorming here):
    1. Feature flags (default all on for Enterprise plan)
      1. Authgear Branding
      2. Custom Domains
    2. Simple Quota (no need things like cached counter etc)
      1. No. of blocking webhook
      2. No. of day for Log Retention
      3. No. of portal users
      4. No. of webhook
    3. Metered Quota (assume some sort of cached counter etc are here for scalability)
      1. Soft Limit (sending warning to n8n): SMS / Whatsapp / Email / MAU
      2. Hard Limit: SMS / Whatsapp / Email / MAU

Other nice to have quota:

linear[bot] commented 1 month ago

DEV-1307 Support more flexible quota system for Enterprise plan

fungc-io commented 1 month ago

Thanks @bencheng,

I'm also planning an Admin Panel for account managers for managing the projects: Admin Panel for Account Managers

It'd be great if the feature flags and quota can be set there. Will add that to the requirements.