Conversation
Admin access key routes + create stat
Bumps [axios](https://github.com/axios/axios) from 1.16.0 to 1.18.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](axios/axios@v1.16.0...v1.18.1) --- updated-dependencies: - dependency-name: axios dependency-version: 1.18.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
….18.1 Bump axios from 1.16.0 to 1.18.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Admin API authentication system
AdminAPIKeyentity and authentication flow for server-to-server administrative operations, separate from the existing game-facing API keys and dashboard user sessions/admin/v1/with dedicated middleware, route info detection, rate limiting, and arequireAdminScopespolicy gate withread:stats,write:statsand*scopes/games/:gameId/admin-api-keysfor creating, listing, updating scopes, and revoking these keysActivity log actor abstraction
GameActivityto accept either aUseror anAdminAPIKeyas the actor, making theuserfield nullable and adding anadminAPIKeyforeign keyactorparameter instead of the olduser-only approach, with activity descriptions now displaying"Key ending in XXXX"for admin API key actionsADMIN_API_KEY_CREATED,ADMIN_API_KEY_REVOKED,ADMIN_API_KEY_UPDATED) to track admin key lifecycleCache and response invalidation refactoring
clearStatIndexResponseCache) to deferred post-handler clearing viadeferClearResponseCache, ensuring the cache is invalidated after the response is sent rather than as route middlewaregetCacheKeyForGamemethod on theIntegrationentity and used it consistently intriggerIntegrationsand the delete handler, replacing inline cache key stringsem.clearCacheAPI key listing enhancement and revoked-key filtering
keyEnding) by regenerating the JWT token, mirroring the admin API key UXgetAPIKeyFromTokento includerevokedAt: nullin the query filter rather than relying on the caller to check, and removed therevokedAtguard fromrecordLastUsedAtto simplify the middlewareInfrastructure hardening
drainApiKeyLastUsedto support both API key and admin API key hashes via a shareddrainKeyForEntityhelper, with per-entrytry/catchand Sentry capture so a single bad entry doesn't stall the taskfindOne+assertpatterns in tests withfindOneOrFail, and used optional chaining for null-safe activity access