Skip to content

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

TypeScript

test(connectors): use fixture-marked secrets to pass the public boundary guard

Diego Zacarias707309bd73da
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index b73f8aa11..962120e38 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.504",
+ "version": "0.1.505",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.504",
+ "version": "0.1.505",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/image-policy": "file:../packages/image-policy",
diff --git a/control-api/package.json b/control-api/package.json
index 9adeb7ea7..d8374c01c 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.504",
+ "version": "0.1.505",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/test/services.access.mcpConnectors.realPostgres.integration.test.ts b/control-api/test/services.access.mcpConnectors.realPostgres.integration.test.ts
index 6a142786f..b8173fc60 100644
--- a/control-api/test/services.access.mcpConnectors.realPostgres.integration.test.ts
+++ b/control-api/test/services.access.mcpConnectors.realPostgres.integration.test.ts
@@ -13,7 +13,7 @@ import { MockGateway } from './mockGateway.js'
// by the REAL producers (`upsertOAuthGrant` / `bootstrapSharedOAuthGrant`) and
// read by the REAL `oauthGrantExists` inside the resolver. No hand-built
// oauth_grants rows. Gated on a real Postgres, like the store integration test:
-// CONTROL_API_REAL_PG_ADMIN_URL=postgres://user:pass@host:5432 npm test -- \
+// CONTROL_API_REAL_PG_ADMIN_URL=postgres://<user>:<pass>@<host>:5432 npm test -- \
// test/services.access.mcpConnectors.realPostgres.integration.test.ts
const adminUrl = process.env.CONTROL_API_REAL_PG_ADMIN_URL
const describeRealPostgres = adminUrl ? describe : describe.skip
diff --git a/external-rest-api/src/releaseManifest.ts b/external-rest-api/src/releaseManifest.ts
index c3976d9b5..f8cb283af 100644
--- a/external-rest-api/src/releaseManifest.ts
+++ b/external-rest-api/src/releaseManifest.ts
@@ -9,7 +9,7 @@ export type ReleaseManifest = {
export const releaseManifest: ReleaseManifest = {
releaseId: 'v0.7.0',
externalRestApiVersion: '0.1.81',
- rpcProxyVersion: '0.1.67',
+ rpcProxyVersion: '0.1.68',
desktopVersion: '0.7.0',
minimumDesktopVersion: '0.1.252',
}
diff --git a/rpc-proxy/package-lock.json b/rpc-proxy/package-lock.json
index 2c80408a8..ffcc37950 100644
--- a/rpc-proxy/package-lock.json
+++ b/rpc-proxy/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-rpc-proxy",
- "version": "0.1.67",
+ "version": "0.1.68",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-rpc-proxy",
- "version": "0.1.67",
+ "version": "0.1.68",
"dependencies": {
"cors": "^2.8.5",
"express": "^4.21.2",
diff --git a/rpc-proxy/package.json b/rpc-proxy/package.json
index 60d3cc078..8115c99b2 100644
--- a/rpc-proxy/package.json
+++ b/rpc-proxy/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-rpc-proxy",
- "version": "0.1.67",
+ "version": "0.1.68",
"description": "External-facing RPC proxy for tenant-scoped MCP access",
"main": "dist/main.js",
"engines": {
diff --git a/rpc-proxy/src/__tests__/controlApiRestService.connectors.test.ts b/rpc-proxy/src/__tests__/controlApiRestService.connectors.test.ts
index 007388d73..8edd9f20b 100644
--- a/rpc-proxy/src/__tests__/controlApiRestService.connectors.test.ts
+++ b/rpc-proxy/src/__tests__/controlApiRestService.connectors.test.ts
@@ -40,7 +40,7 @@ describe('fetchUserConnectorsFromControlApi — non-secret projection', () => {
// Secret / spurious fields the saneador MUST drop:
auth: { type: 'oauth', accessToken: 'sekret' },
secretRef: { name: 'gdrive-secret', key: 'client-secret' },
- token: 'access-tok',
+ token: 'upstream-token-must-not-leak',
clientSecret: 'cs',
},
{
@@ -101,7 +101,14 @@ describe('fetchUserConnectorsFromControlApi — non-secret projection', () => {
// Defense in depth: the serialized output carries none of the secret tokens.
const serialized = JSON.stringify(result)
- for (const leak of ['secretRef', 'accessToken', 'access-tok', 'clientSecret', 'cs', 'sekret']) {
+ for (const leak of [
+ 'secretRef',
+ 'accessToken',
+ 'upstream-token-must-not-leak',
+ 'clientSecret',
+ 'cs',
+ 'sekret',
+ ]) {
expect(serialized).not.toContain(leak)
}