Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test: remove review IDs from recovery test paths
Josué7b75fbd1a2de
diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex 135feb7f9..2ff88a4d0 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.770",+ "version": "0.1.771","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.770",+ "version": "0.1.771","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.jsonindex e1d977c41..9af3bd1c1 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.770",+ "version": "0.1.771","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/test/r6.credentialChangedRoute.realPostgres.integration.test.ts b/control-api/test/credentialChangedRoute.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r6.credentialChangedRoute.realPostgres.integration.test.tsrename to control-api/test/credentialChangedRoute.realPostgres.integration.test.tsdiff --git a/control-api/test/r2h1.invitationAdmission.realPostgres.integration.test.ts b/control-api/test/invitationAdmission.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r2h1.invitationAdmission.realPostgres.integration.test.tsrename to control-api/test/invitationAdmission.realPostgres.integration.test.tsdiff --git a/control-api/test/bug192.passwordAdmissionState.property.test.ts b/control-api/test/passwordAdmissionState.property.test.tssimilarity index 100%rename from control-api/test/bug192.passwordAdmissionState.property.test.tsrename to control-api/test/passwordAdmissionState.property.test.tsdiff --git a/control-api/test/bug192.passwordLogin.realPostgres.integration.test.ts b/control-api/test/passwordLogin.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/bug192.passwordLogin.realPostgres.integration.test.tsrename to control-api/test/passwordLogin.realPostgres.integration.test.tsdiff --git a/control-api/test/bug192.passwordPersistence.realPostgres.integration.test.ts b/control-api/test/passwordPersistence.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/bug192.passwordPersistence.realPostgres.integration.test.tsrename to control-api/test/passwordPersistence.realPostgres.integration.test.tsdiff --git a/control-api/test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts b/control-api/test/passwordRecovery.memberRegistration.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.tsrename to control-api/test/passwordRecovery.memberRegistration.realPostgres.integration.test.tsdiff --git a/control-api/test/r4m2.passwordResetFatalCommit.realPostgres.integration.test.ts b/control-api/test/passwordResetFatalCommit.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r4m2.passwordResetFatalCommit.realPostgres.integration.test.tsrename to control-api/test/passwordResetFatalCommit.realPostgres.integration.test.tsdiff --git a/control-api/test/r2m5.passwordResetLocking.realPostgres.integration.test.ts b/control-api/test/passwordResetLocking.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r2m5.passwordResetLocking.realPostgres.integration.test.tsrename to control-api/test/passwordResetLocking.realPostgres.integration.test.tsdiff --git a/control-api/test/r2h2.passwordResetLostCommit.realPostgres.integration.test.ts b/control-api/test/passwordResetLostCommit.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r2h2.passwordResetLostCommit.realPostgres.integration.test.tsrename to control-api/test/passwordResetLostCommit.realPostgres.integration.test.tsdiff --git a/control-api/test/r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.ts b/control-api/test/passwordResetPayload.externalRest.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.tsrename to control-api/test/passwordResetPayload.externalRest.realPostgres.integration.test.tsdiff --git a/control-api/test/r6.retiredRecoveryRoute.realPostgres.integration.test.ts b/control-api/test/retiredRecoveryRoute.realPostgres.integration.test.tssimilarity index 100%rename from control-api/test/r6.retiredRecoveryRoute.realPostgres.integration.test.tsrename to control-api/test/retiredRecoveryRoute.realPostgres.integration.test.tsdiff --git a/control-api/test/services.directory.login.passwordBackstop.test.ts b/control-api/test/services.directory.login.passwordBackstop.test.tsindex a0ead5a62..f6915c253 100644--- a/control-api/test/services.directory.login.passwordBackstop.test.ts+++ b/control-api/test/services.directory.login.passwordBackstop.test.ts@@ -15,7 +15,7 @@ vi.mock('../src/config.js', () => ({}))// Password orchestration now runs against the real credential producer in-// bug192.passwordLogin.realPostgres.integration.test.ts. Google stays isolated here.+// passwordLogin.realPostgres.integration.test.ts. Google stays isolated here.describe('directory Google login without team memberships', () => {beforeEach(() => {dbMocks.txQuery.mockReset()diff --git a/docs/how-to/codeql-js-missing-rate-limiting.md b/docs/how-to/codeql-js-missing-rate-limiting.mdindex 59a6521aa..87e4350ab 100644--- a/docs/how-to/codeql-js-missing-rate-limiting.md+++ b/docs/how-to/codeql-js-missing-rate-limiting.md@@ -70,16 +70,16 @@ Follow-up implementation tracked separately (`fix/codeql-control-api-rate-limit-### False positive — PG limiter or non-route sink present-| Alert | Location | Evidence |-| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------ |-| [#57](https://github.com/evenfire-ai/evenfire/security/code-scanning/57) | `app.ts:131` | Middleware mount only; per-route limiters apply downstream |-| [#58](https://github.com/evenfire-ai/evenfire/security/code-scanning/58) | `app.ts:219` | 404 guard for unknown `/gfs/*`; no expensive work |-| [#60](https://github.com/evenfire-ai/evenfire/security/code-scanning/60) | `auth.ts:572` | Handler under `publicAdminTokenRateLimit()` (`adminPublicTokenRlPerMin`) |-| [#171](https://github.com/evenfire-ai/evenfire/security/code-scanning/171) | `registry.ts:24` | `rateLimitMiddleware` 30/min at `:28-35` |-| [#826](https://github.com/evenfire-ai/evenfire/security/code-scanning/826) | `registryConnect.ts:321` | `rateLimitMiddleware` 3/min at `:329-336` |-| [#803](https://github.com/evenfire-ai/evenfire/security/code-scanning/803) | `gfs/grants.ts:849` | Internal DB helper, not an HTTP route handler |-| [#1767](https://github.com/evenfire-ai/evenfire/security/code-scanning/1767) | `app.ts:73` | False positive — invitation error-response middleware; evidence below |-| [#1769](https://github.com/evenfire-ai/evenfire/security/code-scanning/1769) | `r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.ts` | False positive — Supertest-only invitation app; evidence below |+| Alert | Location | Evidence |+| ---------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------ |+| [#57](https://github.com/evenfire-ai/evenfire/security/code-scanning/57) | `app.ts:131` | Middleware mount only; per-route limiters apply downstream |+| [#58](https://github.com/evenfire-ai/evenfire/security/code-scanning/58) | `app.ts:219` | 404 guard for unknown `/gfs/*`; no expensive work |+| [#60](https://github.com/evenfire-ai/evenfire/security/code-scanning/60) | `auth.ts:572` | Handler under `publicAdminTokenRateLimit()` (`adminPublicTokenRlPerMin`) |+| [#171](https://github.com/evenfire-ai/evenfire/security/code-scanning/171) | `registry.ts:24` | `rateLimitMiddleware` 30/min at `:28-35` |+| [#826](https://github.com/evenfire-ai/evenfire/security/code-scanning/826) | `registryConnect.ts:321` | `rateLimitMiddleware` 3/min at `:329-336` |+| [#803](https://github.com/evenfire-ai/evenfire/security/code-scanning/803) | `gfs/grants.ts:849` | Internal DB helper, not an HTTP route handler |+| [#1767](https://github.com/evenfire-ai/evenfire/security/code-scanning/1767) | `app.ts:73` | False positive — invitation error-response middleware; evidence below |+| [#1769](https://github.com/evenfire-ai/evenfire/security/code-scanning/1769) | `passwordResetPayload.externalRest.realPostgres.integration.test.ts` | False positive — Supertest-only invitation app; evidence below |Alert #1767 is attached to the invitation error-response middleware mount, which maps upstreamfailures to bounded public responses. External REST token lookup is limited to 30 requests/minutediff --git a/docs/testing/password-recovery-dev-integration.md b/docs/testing/password-recovery-dev-integration.mdindex e60aaa020..167f0cc89 100644--- a/docs/testing/password-recovery-dev-integration.md+++ b/docs/testing/password-recovery-dev-integration.md@@ -210,7 +210,7 @@ bash scripts/ci/run-password-recovery-private-postgres.sh configured```It selects exactly-`control-api/test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts`+`control-api/test/passwordRecovery.memberRegistration.realPostgres.integration.test.ts`through the strict suite manifest. Expect one physical suite and one passingscenario, containing admission-denial, real stored signed proof, preview/rowbinding, wrong-email/row negatives, reset session and later-login assertions.diff --git a/docs/testing/password-recovery-private-postgres.md b/docs/testing/password-recovery-private-postgres.mdindex cceb3e9dc..db6822fbf 100644--- a/docs/testing/password-recovery-private-postgres.md+++ b/docs/testing/password-recovery-private-postgres.md@@ -29,7 +29,7 @@ bash scripts/ci/run-password-recovery-private-postgres.sh configuredbash scripts/ci/run-password-recovery-private-postgres.sh all```-`local` runs `control-api/test/r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.ts`.+`local` runs `control-api/test/passwordResetPayload.externalRest.realPostgres.integration.test.ts`.It requires an isolated PostgreSQL 16 admin DSN in `CONTROL_API_REAL_PG_ADMIN_URL`,the Member Registration source checkout in `EVENFIRE_MEMBER_REGISTRATION_ROOT`,that checkout's installed `tsx` dependencies, and `external-rest-api/dist/app.js`.@@ -37,7 +37,7 @@ The local public consumer runs as a bounded built HTTP child. The suite createscontrol and producer databases and launches the real local Member Registrationservice. Use a disposable local PostgreSQL instance only.-`configured` runs `control-api/test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts`.+`configured` runs `control-api/test/passwordRecovery.memberRegistration.realPostgres.integration.test.ts`.It requires `CONTROL_API_REAL_PG_ADMIN_URL`,`CONTROL_API_REAL_MEMBER_REGISTRATION_PG_URL`,`CONTROL_API_MEMBER_REGISTRATION_SERVICE_BASE_URL`, anddiff --git a/external-rest-api/package-lock.json b/external-rest-api/package-lock.jsonindex 5d324feaa..480bf4a3e 100644--- a/external-rest-api/package-lock.json+++ b/external-rest-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-external-rest-api",- "version": "0.1.122",+ "version": "0.1.123","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-external-rest-api",- "version": "0.1.122",+ "version": "0.1.123","dependencies": {"@clerum/jwt-key-policy": "file:../packages/jwt-key-policy","cors": "^2.8.5",diff --git a/external-rest-api/package.json b/external-rest-api/package.jsonindex 680b480ff..33efd8774 100644--- a/external-rest-api/package.json+++ b/external-rest-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-external-rest-api",- "version": "0.1.122",+ "version": "0.1.123","description": "External REST API for profile, team management, and RPC token brokerage","main": "dist/main.js","engines": {diff --git a/external-rest-api/src/releaseManifest.ts b/external-rest-api/src/releaseManifest.tsindex 0e3f064db..41bede684 100644--- a/external-rest-api/src/releaseManifest.ts+++ b/external-rest-api/src/releaseManifest.ts@@ -8,7 +8,7 @@ export type ReleaseManifest = {export const releaseManifest: ReleaseManifest = {releaseId: 'v0.11.0',- externalRestApiVersion: '0.1.122',+ externalRestApiVersion: '0.1.123',rpcProxyVersion: '0.1.126',desktopVersion: '0.11.0',minimumDesktopVersion: '0.1.252',diff --git a/external-rest-api/test/r2m1.invitationAdmission.public.test.ts b/external-rest-api/test/invitationAdmission.public.test.tssimilarity index 100%rename from external-rest-api/test/r2m1.invitationAdmission.public.test.tsrename to external-rest-api/test/invitationAdmission.public.test.tsdiff --git a/external-rest-api/test/r6.meUnavailable.contract.test.ts b/external-rest-api/test/meUnavailable.contract.test.tssimilarity index 100%rename from external-rest-api/test/r6.meUnavailable.contract.test.tsrename to external-rest-api/test/meUnavailable.contract.test.tsdiff --git a/profile-ui/app/components/__tests__/InvitationClient.r6IdentityFence.test.tsx b/profile-ui/app/components/__tests__/InvitationClient.identityFence.test.tsxsimilarity index 100%rename from profile-ui/app/components/__tests__/InvitationClient.r6IdentityFence.test.tsxrename to profile-ui/app/components/__tests__/InvitationClient.identityFence.test.tsxdiff --git a/profile-ui/app/components/__tests__/InvitationClient.r6RecoveryContract.test.tsx b/profile-ui/app/components/__tests__/InvitationClient.recoveryContract.test.tsxsimilarity index 100%rename from profile-ui/app/components/__tests__/InvitationClient.r6RecoveryContract.test.tsxrename to profile-ui/app/components/__tests__/InvitationClient.recoveryContract.test.tsxdiff --git a/profile-ui/package-lock.json b/profile-ui/package-lock.jsonindex eff271b1c..ce28bf04b 100644--- a/profile-ui/package-lock.json+++ b/profile-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-profile-ui",- "version": "0.1.174",+ "version": "0.1.175","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-profile-ui",- "version": "0.1.174",+ "version": "0.1.175","dependencies": {"@clerum/desktop-app-links": "file:../packages/desktop-app-links","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/profile-ui/package.json b/profile-ui/package.jsonindex 58e95add1..3f3a4836a 100644--- a/profile-ui/package.json+++ b/profile-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-profile-ui",- "version": "0.1.174",+ "version": "0.1.175","private": true,"scripts": {"dev": "next dev",diff --git a/tests/contracts/password-recovery-suites.json b/tests/contracts/password-recovery-suites.jsonindex e997cd07b..f23c871da 100644--- a/tests/contracts/password-recovery-suites.json+++ b/tests/contracts/password-recovery-suites.json@@ -1,8 +1,8 @@{"version": 1,"publicPostgres": [- "control-api/test/bug192.passwordLogin.realPostgres.integration.test.ts",- "control-api/test/bug192.passwordPersistence.realPostgres.integration.test.ts",+ "control-api/test/passwordLogin.realPostgres.integration.test.ts",+ "control-api/test/passwordPersistence.realPostgres.integration.test.ts","control-api/test/db.codexSubscriptionConnection.realPostgres.integration.test.ts","control-api/test/db.listGrantsReferencingModel.realPostgres.integration.test.ts","control-api/test/db.llmProviderAttemptConnectionIntegrity.realPostgres.integration.test.ts",@@ -42,12 +42,12 @@"control-api/test/pluginWorkloadSdkGrokDualLedger.realPostgres.integration.test.ts","control-api/test/pluginWorkloadSdkPolicyReview.realPostgres.integration.test.ts","control-api/test/pluginWorkloadSdkSteplessQuota.realPostgres.integration.test.ts",- "control-api/test/r2h1.invitationAdmission.realPostgres.integration.test.ts",- "control-api/test/r2h2.passwordResetLostCommit.realPostgres.integration.test.ts",- "control-api/test/r2m5.passwordResetLocking.realPostgres.integration.test.ts",- "control-api/test/r4m2.passwordResetFatalCommit.realPostgres.integration.test.ts",- "control-api/test/r6.credentialChangedRoute.realPostgres.integration.test.ts",- "control-api/test/r6.retiredRecoveryRoute.realPostgres.integration.test.ts",+ "control-api/test/invitationAdmission.realPostgres.integration.test.ts",+ "control-api/test/passwordResetLostCommit.realPostgres.integration.test.ts",+ "control-api/test/passwordResetLocking.realPostgres.integration.test.ts",+ "control-api/test/passwordResetFatalCommit.realPostgres.integration.test.ts",+ "control-api/test/credentialChangedRoute.realPostgres.integration.test.ts",+ "control-api/test/retiredRecoveryRoute.realPostgres.integration.test.ts","control-api/test/realPostgresAdminCleanup.guard.test.ts","control-api/test/realPostgresCleanup.contract.test.ts","control-api/test/realPostgresTeardown.guard.test.ts",@@ -92,8 +92,8 @@"control-api/test/services.workflowScheduleForbid.realPostgres.integration.test.ts"],"privatePostgres": {- "local": "control-api/test/r4l1.resetPasswordPayload.externalRest.realPostgres.integration.test.ts",- "configured": "control-api/test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts"+ "local": "control-api/test/passwordResetPayload.externalRest.realPostgres.integration.test.ts",+ "configured": "control-api/test/passwordRecovery.memberRegistration.realPostgres.integration.test.ts"},"composedContract": ["control-api/test/passwordRecovery.http.contract.test.ts"],"consumer": ["external-rest-api/test/invitations.passwordRecovery.public.test.ts"]