fix: enforce VK callback secret limit

This commit is contained in:
nyan404 committed 2026-10-10 21:35:28 +03:00
1 parent e0e1e4f6bd
commit 7ed89d2a55
6 files changed
+17 -1

No files matched your search

+2
View File
@@ -973,6 +973,8 @@ class BelkiBot:
"""Run the Callback API listener, notifications and scheduler."""
if not callback_secret:
raise RuntimeError("VK_CALLBACK_SECRET is required")
if len(callback_secret) > 50:
raise RuntimeError("VK_CALLBACK_SECRET must be at most 50 characters")
if not callback_confirmation:
raise RuntimeError("VK_CALLBACK_CONFIRMATION is required")