Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix: rate limit GFS routes before auth

M338ccff44201
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index aa041be5d..07501440f 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.605",
+ "version": "0.1.606",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.605",
+ "version": "0.1.606",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",
diff --git a/control-api/package.json b/control-api/package.json
index adeb0d846..0f2f7f103 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.605",
+ "version": "0.1.606",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/src/routes/gfs/resources.ts b/control-api/src/routes/gfs/resources.ts
index 11543b3e3..cd4f9ab0c 100644
--- a/control-api/src/routes/gfs/resources.ts
+++ b/control-api/src/routes/gfs/resources.ts
@@ -405,8 +405,8 @@ export function registerGfsResourceRoutes(router: Router): void {
router.get(
'/gfs/resources/:id/affordances',
- requireAuthForControlUI,
affordancesEdgeRateLimit,
+ requireAuthForControlUI,
affordancesRateLimit,
asyncHandler(async (req, res) => {
const id = String(req.params.id)
@@ -433,8 +433,8 @@ export function registerGfsResourceRoutes(router: Router): void {
)
router.patch(
'/gfs/resources/:id',
- requireAuthForControlUI,
resourcePatchEdgeRateLimit,
+ requireAuthForControlUI,
resourcePatchRateLimit,
asyncHandler(handlePatch)
)