# oomol-lab/open-connector — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `agents`
- Overall score: `4.0/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `aa461fdbf023` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/oomol-lab/open-connector
- Radar entry: https://radar.alplab.co/#repo/oomol-lab/open-connector
- License: `NOASSERTION`
- CI workflows: `.github/workflows`
- Tags: `connector-gateway`, `mcp`, `oauth`, `ssrf-hardening`, `self-hosted`, `agent-tools`

## Summary

A TypeScript connector-gateway runtime (Hono, Node/Bun/Cloudflare Workers) that stores per-provider credentials (API key/OAuth2/custom) behind an inspectable HTTP, MCP, and OpenAPI surface and executes a large generated catalog of provider actions, with an inbound OAuth 2.1 authorization server, scoped runtime tokens, SSRF-guarded egress, and Docker/Node/Workers/Fly/single-binary deployment targets.

## Implementation Check

Every core README claim maps to working code I read — provider catalog (src/providers/github/definition.ts + executors.ts and hundreds of sibling definition.ts files), OAuth 2.1 AS with PKCE/rotation (src/server/oauth/token-endpoint.ts handleTokenPost/refreshGrant), MCP surface (src/mcp.ts createMcpServer with 5 tools), OpenAPI (src/server/api/openapi.ts), scopes/policies/run logs (src/server/actions/action-runner.ts, src/server/api/auth.ts), and Docker/Cloudflare deployment (docker/Dockerfile, src/server/cloudflare.ts) — only the exact '1,000+ providers / 10,000+ actions' counts are generated-catalog figures I could not verify statically.

## When to Use

Use it when an agent product needs durable, inspectable access to third-party SaaS APIs without handing provider credentials to the agent process, self-hosted on Docker/Node or Cloudflare Workers. Not for teams requiring an OSI license (modified Apache-2.0 forbids reselling it as a hosted connector service without a commercial license), or anyone unwilling to set encryption/admin tokens before network exposure.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.5/5 |

## Code Evidence

src/server/api/runtime-execution-routes.ts createRuntimeExecutionRoutes implements POST /v1/actions/:actionId with policy snapshot evaluation and hash-based idempotency claim/conflict/replay; src/server/actions/action-runner.ts ActionRunner.runAction resolves the execution target, lazy-loads executors via providerLoader.loadActionExecutor, and persists redacted RunLog records; src/mcp.ts exposes list_apps/list_connections/search_actions/get_action_guide/execute_action statelessly per request; src/server/oauth/token-endpoint.ts issues ES256 JWT access tokens, hashed opaque refresh tokens, verifies PKCE S256 (verifyPkceS256), enforces RFC 8707 resource binding, and revokes the whole grant on refresh-token replay; src/core/guarded-fetch.ts createGuardedFetch/assertGuardedEgressUrl validates request URLs, every redirect Location, and DNS-resolved addresses against private/reserved ranges with a deny-by-default crossOriginSafeHeaders list on cross-origin hops; src/server/secrets/secret-codec.ts AesGcmSecretCodec encrypts stored credentials with AES-256-GCM from a scrypt-derived key; src/server/api/auth.ts createLocalAuthMiddleware uses constant-time token compares and an HMAC-signed session cookie with fail-closed 'oauth' authMode; src/server/storage/runtime-token-service.ts stores oct_ tokens sha256-hashed with timingSafeEqual; src/providers/github/executors.ts implements real PAT/OAuth and GitHub-App installation-token execution (createGitHubInstallationTokenResolver); src/server/cloudflare.ts createCloudflareWorker wires D1/R2/KV-backed Workers deployment; src/server/scope-isolation.test.ts exercises createConnectorRuntime end-to-end for tenant scope isolation; .github/workflows/ci.yml runs lint/typecheck/build plus vitest in 4 shards and a Postgres probe job; .github/workflows/publish-docker.yml publishes multi-arch images to GHCR.

## Issues Found

src/server/secrets/secret-codec.ts derives the AES key with a repo-wide hardcoded scrypt salt ('oomol-connect-local-secret-store-v1') rather than a per-installation salt — low severity given per-record random IVs and GCM auth, but worth strengthening; encrypted-at-rest credentials, admin auth, and runtime auth are opt-in defaults (documented and warned, but a foot-gun for the advertised one-command docker compose up path); deploy/helm/open-connector/values.yaml offers an insecureDevelopment bypass that must never reach production.

## Key Risks

Static review only — nothing was executed, so 'tests exist' is not 'tests pass'; the 1,000+/10,000+ provider/action counts come from generated catalog JSON and badges and were not independently counted; stored credentials, OAuth client configs, and replayed idempotent responses are plaintext unless OOMOL_CONNECT_ENCRYPTION_KEY is set, and admin/runtime auth is off by default for local dev (both loudly warned at startup in src/server/index.ts and documented in SECURITY.md); the Docker image binds 0.0.0.0; the project is young (created 2026-06-29, 300 commits in 90 days) so API surface churn is likely; license is a modified Apache-2.0 (NOASSERTION per GitHub) adding a commercial condition for hosted-service use; 33 unpinned GitHub Actions steps are a CI supply-chain exposure; individual per-action executor quality across the huge provider catalog could only be sampled.

## Reviewed Files

- `README.md`
- `package.json`
- `LICENSE.txt`
- `SECURITY.md`
- `AGENTS.md`
- `vitest.config.ts`
- `docker-compose.yml`
- `docker/Dockerfile`
- `.github/workflows/ci.yml`
- `.github/workflows/publish-docker.yml`
- `docs/headless.md`
- `examples/homebox-live-check.ts`
- `scripts/generate-provider-registry.ts`
- `src/mcp.ts`
- `src/catalog-store.ts`
- `src/connection-service.ts`
- `src/core/custom-ca-fetch.ts`
- `src/core/guarded-fetch.ts`
- `src/marketplace/default-marketplace.ts`
- `src/marketplace/marketplace-service.ts`
- `src/providers/github/definition.ts`
- `src/providers/github/executors.ts`
- `src/providers/provider-proxy.ts`
- `src/server/actions/action-runner.ts`
- `src/server/api/auth.ts`
- `src/server/api/runtime-execution-routes.ts`
- `src/server/cloudflare.ts`
- `src/server/connect-app.ts`
- `src/server/connector-runtime.ts`
- `src/server/files/transit-files.ts`
- `src/server/index.ts`
- `src/server/oauth/token-endpoint.ts`
- `src/server/secrets/secret-codec.ts`
- `src/server/scope-isolation.test.ts`
- `src/server/storage/runtime-token-service.ts`
