mirror of
https://github.com/imputnet/cobalt.git
synced 2026-07-11 04:14:02 -05:00
[PR #803] [MERGED] api: implement support for api keys #15411
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/803
Author: @dumbmoron
Created: 10/4/2024
Status: ✅ Merged
Merged: 10/5/2024
Merged by: @dumbmoron
Base:
develop← Head:api-keys📝 Commits (10+)
741dfd4api/security: implement api keys as method of authentication44f7e4fweb: removeTURNSTILE_KEYenv from readme034f7ebapi/core: extract rate limit response to functionf2248d4api/core: move api limiter after authentication38fcee4api/core: rename tunnel limiter, move to endpoint418602capi/core: add rate limiter for sessiondcd3380api/core: generate JWT rate limiting key in auth handler81818f8api/core: implement authentication with api keys3d7713asecurity/api-keys: clarify error when number is not positive9cc6fd1api/core: skip turnstile verification if user authed with api key📊 Changes
9 files changed (+346 additions, -31 deletions)
View changed files
📝
.gitignore(+1 -0)📝
api/package.json(+1 -1)📝
api/src/config.js(+5 -0)📝
api/src/core/api.js(+63 -26)📝
api/src/misc/console-text.js(+7 -0)➕
api/src/security/api-keys.js(+205 -0)📝
docs/run-an-instance.md(+54 -0)📝
pnpm-lock.yaml(+10 -3)📝
web/README.md(+0 -1)📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.