docs: API keys, their scopes, limits and audit

Also sends key creation, rotation and revocation to security webhooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-27 08:51:53 -05:00
parent c29454dcd6
commit 3dd4ebf853
4 changed files with 58 additions and 19 deletions

View File

@@ -266,7 +266,7 @@ namespace Alerts {
"warn_account", "action_player_report", "chat_filter_allow", "chat_filter_block", "chat_filter_remove"
};
static const std::set<std::string> security{
"set_gm_level", "create_api_token", "reset_password", "create_account", "enable_2fa", "disable_2fa",
"set_gm_level", "create_api_token", "create_api_key", "rotate_api_key", "revoke_api_key", "reset_password", "create_account", "enable_2fa", "disable_2fa",
"reset_2fa", "regenerate_recovery_codes", "manage_webhook", "change_setting"
};
std::string event;