mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-25 14:12:49 +00:00
fix(dashboard): DataTables queries count as reads for read-only API keys
POST /api/tables/... only reads, so read-only keys may use it (and the API docs list it for them). Keys limited to some addresses can't open the WebSocket, whose address isn't checked, nor keys whose allowed paths leave out /ws. Refusals are audited without an account target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,7 +44,8 @@ namespace ApiKeyService {
|
||||
};
|
||||
eResult Authenticate(const std::string& token, HTTPContext& context, HTTPReply& reply);
|
||||
|
||||
// For WebSocket connections: the owner and scope, without counting against the limits
|
||||
// For WebSocket connections: the owner and scope, without counting against the limits. Keys limited to some
|
||||
// addresses can't be used there (the address isn't known), nor keys whose allowed paths leave out /ws.
|
||||
struct Verified {
|
||||
uint32_t accountId{};
|
||||
std::string username;
|
||||
|
||||
Reference in New Issue
Block a user