🌐 Lark Multi-Tenant Webhook Server

✅ Server is running on port 8000

🔐 Security Features:

✅ Multi-tenant support with separate configs
✅ AES-256-CBC decryption per tenant
✅ Signature verification per tenant
✅ Dynamic endpoint routing
✅ Challenge response handling

📊 Active Configurations:

Config ID Webhook Endpoints Status
app1 /webhook/event/app1
/app1/webhook/event
✅ Active
app2 /webhook/event/app2
/app2/webhook/event
✅ Active
production /webhook/event/production
/production/webhook/event
✅ Active

🚀 How to Configure:

Method 1: Environment Variables
LARK_CONFIG_APP1_ENCRYPT_KEY=xxx
LARK_CONFIG_APP1_VERIFICATION_TOKEN=yyy

Method 2: JSON File (lark_configs.json)
{
    "app1": {
        "encrypt_key": "xxx",
        "verification_token": "yyy"
    },
    "app2": {
        "encrypt_key": "aaa",
        "verification_token": "bbb"
    }
}

🔗 Usage with ngrok:

  1. Run: ngrok http 8000
  2. Copy ngrok URL (e.g., https://abc123.ngrok.io)
  3. For config "app1": https://abc123.ngrok.io/webhook/event/app1
  4. Enable "Encrypt Key" in Lark Event Subscriptions
Multi-Tenant Lark Webhook Server v2.0 | 3 configurations loaded