Skip to content

Releases

DreamFactory 7.8.0

Choose a tag to compare

@thekevinm thekevinm released this 18 Nov 17:17
37d8454

DreamFactory 7.8.0

DreamFactory 7.8.0 is a feature release. It is an in-place upgrade from any 7.x release, on the same platform baseline as 7.7.x: Laravel 13 and PHP 8.3 or later. The Docker images run PHP 8.5.

On this page

Highlights

  • Data Masking and Compliance baselines. DreamFactory finds the sensitive columns in your SQL databases and masks them in API responses. You can preview the effect before you switch it on, grant real-value access to the people and roles that need it, and track HIPAA, PCI DSS, GLBA, CJIS, GDPR, SOC 2 and ISO/IEC 27001 baselines with exportable evidence.
  • AAuth agent authentication. AI agents call DreamFactory APIs with signed HTTP requests and scopes that a person approves, instead of shared API keys. Each scope is an ordinary DreamFactory role, so everything a role controls applies to agents too.
  • AI budgets on every AI path. Spending caps cover chat, completions, embeddings, Data Chat, the OpenAI-compatible endpoint and streaming. There is a new management API and an AI > Budgets screen for budget rules, model aliases and alert webhooks.
  • Server Settings. Change the server log level at runtime from Config > Server Settings, with no .env edit and no restart.
  • Scheduler run history. Every scheduled task keeps a history of its last 100 runs, and the task list shows whether a task is running and how its last run ended.
  • Python scripting gets real JSON. Event and platform data reach Python scripts as decoded JSON, so true, false, null and non-ASCII text work anywhere in a payload. PHP script errors name the error type and the script line.
  • A new admin interface release (1.8.5). It adds screens for all of the above, plus searchable pickers, a presentation mode for screen sharing, and a reworked Data Explorer flow.
  • Docker upgrades apply their own migrations. The 7.8.0 image runs pending database migrations when it starts on an existing installation, and it ships Python 3 scripting ready to use.
  • Installers. A new unattended installer for Windows Server with IIS, and a Linux installer that can resume after an interruption and supports RHEL 10.

AI and MCP

AI budgets, model aliases and alerts

  • Caps on every AI path. Budget caps apply to chat, completions, embeddings, Data Chat, the OpenAI-compatible endpoint and streaming responses. A request over a hard cap gets HTTP 429.
    • Chat sessions check the cap before a new message is saved.
    • The chat and Data Chat tool loops check the cap before each provider call, so a long tool conversation stops cleanly once the cap is reached.
  • Budget management API and AI > Budgets screen. Create and edit budget rules and model aliases from the admin interface or the API.
    • A model alias routes OpenAI-compatible requests to any configured AI connection and model, so clients can keep one model name while you change the provider behind it.
    • Management is off by default and needs a commercial license by default. Budget caps themselves apply in every edition that includes the AI packages.
  • Alert webhooks (opt-in). Get a webhook call when spending crosses a threshold. Each alert is sent once per threshold. Changing a webhook URL clears its stored authorization header; enter it again for the new receiver.
  • Current Claude models. The Anthropic provider handles temperature and thinking blocks the way current Claude models expect.
  • More complete usage reporting.
    • Data Chat records its usage, so its spend shows in AI Usage and counts toward budgets.
    • Tokens are counted when a streaming client disconnects early.
    • Usage rows are kept for long model names and across hour boundaries, and the "Other" bucket of usage series is returned in the same shape as the other rows.
    • Prompt audit records are more complete.

MCP (df-mcp-server, df-system-mcp-server)

  • Every caller is named. In the MCP request log and the admin interface's MCP panels, each OAuth client appears under the client_name it registered. Names are tracked per registration, so several clients of one MCP service show separately. API-key and session callers appear under their app name.
  • System API MCP tool annotations. Every System API MCP tool carries read-only, destructive, idempotent and open-world hints, so MCP clients can decide which calls need a confirmation. Every remaining tool parameter has a description.
  • Clearer data-server tools. Every tool parameter is documented, sibling tools say when to prefer one over the other, and create_file is marked as an overwrite.
  • Reproducible daemon installs. The MCP daemons pin their runtime dependencies and install them with npm ci. They need Node.js 20 or later; the Docker images ship Node.js 22.
  • Stability and reliability improvements.

Data Masking and Compliance baselines

  • Sensitive-column discovery. DreamFactory scans every SQL database service and classifies columns from their names, validated samples of their values and their table context: 23 classes in 4 tiers, such as national identifiers, payment cards, health data and contact details.
    • Each verdict comes with its evidence and masked examples.
    • New and changed services are scanned in the background.
  • Three modes.
    • Off is the default and leaves every response byte-for-byte unchanged.
    • Preview records which callers would receive masked values, without changing any response.
    • On masks values, including in related records, before event scripts, caching and logging see them.
    • The first scan that finds columns moves an instance from Off to Preview, so you see the effect before anything changes.
  • Mask formats: redact, last 4, initial, year, a per-instance token, null and span. Virtual fields and db_function fields take the masking of the columns they read.
  • Real-value access for chosen administrators (with expiring grants), for roles, and for AI sessions. AI and MCP sessions receive masked values by default.
  • Custom detection rules. Add column-name and value patterns of your own, built as a readable sentence in the admin interface, and test them live against your data.
  • Compliance baselines for HIPAA, PCI DSS 4.0.1, GLBA, CJIS, GDPR, SOC 2 and ISO/IEC 27001:2022.
    • Presets apply the recommended settings for a framework.
    • Live checklists map each control to its framework reference.
    • Evidence reports export as JSON or CSV.
    • A baseline covers the settings DreamFactory itself owns. It is not a certification.
  • Admin interface, API and console. Data Masking and Compliance pages in the admin interface; the system/data_masking and system/security_baseline APIs; and php artisan df:masking with status, scan, mode, grant, revoke, baseline and setup.
  • Data Explorer integration. Data Explorer shows when a column is masked for the current caller.

AAuth agent authentication

  • Signed agent requests instead of API keys. AI agents call any DreamFactory API with HTTP message signatures (RFC 9421, Ed25519 or ES256). DreamFactory implements the AAuth draft protocol in its three-party person-server mode.
  • Scopes are roles. A person approves an agent, and what they approve is a scope, which is an ordinary DreamFactory role. The agent gets exactly that role's access, with its filters, lookups, event scripts and limits, and Data Masking treats the call as an AI session. Responses name the scope that was applied.
  • Built-in person server.
    • People approve agents on consent pages at /aauth/interact by signing in with their DreamFactory account.
    • They choose each scope and can pick "Always allow", then review or revoke standing grants at /aauth/grants.
    • You can also trust external person servers, each with its own scope allow-list.
  • Agent registry and activity. Block an agent, see every signed request in the activity log, manage everything through the system/aauth API, and use php artisan df:aauth (status, rotate-keys, prune).
  • Admin interface. An AAuth page with agents, scopes, grants and activity, plus a Try it agent that shows a complete signed exchange as a sequence diagram.
  • Client libraries. A Node.js client library with a CLI and a Python client ship with the package, so you can build your own agents.

Admin interface (df-admin-interface)

The open source edition moves from admin interface 1.8.0 straight to 1.8.5, so it also gains everything that shipped in the 1.8.1-1.8.4

  • New screens
    • Config > Server Settings: see where the log level comes from (.env or a saved override) and change or reset it.
    • **Scheduler...
Read more

7.7.1

Choose a tag to compare

@thekevinm thekevinm released this 24 Sep 21:29

Overview

DreamFactory v7.7.1 is a security-and-correctness release with one major component update. The database ?filter= pipeline gets a full sweep — filter values are now bound as query parameters (SQL-injection hardening), bare AND/OR filters parse correctly instead of silently matching nothing, BETWEEN works, and DELETE/PATCH-by-filter on system resources no longer 500s. The MCP Server jumps to 1.4.0 with lazy mode, merged tool styles, Exposed Services scoping, opt-in API-key auth, and a round of OAuth/daemon hardening. The release also adds platform-wide access-usage auditing, outbound OAuth2 for Remote Web Services, fixes an RBAC bypass in the AMQP/MQTT subscribe consumers, brings the single-connector editions onto the Laravel 13 stack they missed in 7.7.0, and open-sources the System API MCP daemon (df-system-mcp-server, Apache-2.0), now included in every full edition.

New Features

MCP Server (df-mcp-server 1.4.0) — OPEN SOURCE

  • Lazy mode — a search/describe/call facade with hot tools, result paging, and a token-savings ledger, for clients that can't afford a large tools/list. Per-service lazy_mode setting: auto / on / off, default auto — the facade engages automatically when the service's full tool catalog would exceed roughly 8k tokens.
  • Exposed Services scoping — tools/list is scoped to each MCP service's Exposed Services selection, cutting token cost; existing services are backfilled on upgrade.
  • Merged tool style — database tools register once behind a service argument instead of once per service (now the default for new services), extended to file tools; existing services keep their configured style.
  • Exposure controls — per-service "Require Role Access" switch, a server-wide allow_writes switch that returns permission errors on role denials, catalog preview (tools/list for a chosen role without a session), stateless sessions as the new daemon default, snake_case tool arguments with camelCase aliases and tool annotations, aggregate pushdown with paged grouped results, and an admin daemon health check at GET /_internal/ai/mcp-health.
  • Opt-in API-key authentication — per-service static X-DreamFactory-API-Key auth on the MCP endpoint, for clients that can't do OAuth.
  • Configurable redirect URIs — supports MCP clients that skip dynamic client registration.
  • System API MCP Server (system_mcp) — a new service type that exposes DreamFactory's own admin/system API over MCP, with a secret-field manifest and daemon launcher. The System API daemon makes its first public release alongside 7.7.1: dreamfactory/df-system-mcp-server 0.5.1, open source (Apache-2.0), included in every full edition's 7.7.1 composer build as a vendor sibling. Start it with df-mcp-server's scripts/start-system-daemon.sh (requires Node.js on the host), or point MCP_SYSTEM_DAEMON_URL at a daemon running as a sidecar. Until the daemon is started, requests to a system_mcp service return a clear 503 with setup instructions.

Access Usage Auditing (df-system, df-admin-interface) — OPEN SOURCE

  • Last-used and last-denied timestamps recorded for apps, roles, and users (new access_usage table + middleware; tune via DF_ACCESS_USAGE_ENABLED, DF_ACCESS_USAGE_THROTTLE_SECONDS).
  • Read-only GET /api/v2/system/access_usage audit report with never_used, stale, disabled_but_attempted, and role_unreferenced flags — find dormant credentials and orphaned roles at a glance.
  • Admin UI: last-used column and "Not used in" filter on the Apps, Roles, Users, and Admins tables; get_access_audit added to the System API MCP tool catalog.

Remote Web Services outbound OAuth2 (df-rws) — OPEN SOURCE

  • Client-credentials authentication for proxied backends that require bearer tokens — token acquisition, caching, refresh, and one automatic retry on backend 401 are handled inside the service, no event scripts needed. Six optional rws_config fields (token URL, client id/secret, grant type, scope, auth method); the client secret is encrypted at rest and masked in API responses. Supports Basic-header (e.g. Oracle OIDS/IDCS) and RFC 6749 post-body client authentication.

SQL whole-set aggregates (df-sqldb) — OPEN SOURCE

  • Aggregate fields (MIN/MAX/COUNT, etc.) are now allowed without a GROUP BY, returning whole-set aggregates from _table queries.

Admin UI (df-admin-interface 1.8.0) — OPEN SOURCE

  • MCP service editor, redesigned — Connect, Tools, Settings, and Create surfaces with a tool grid; an Access section on the Tools rail to create/add/edit roles and API keys without leaving the MCP page; allow_writes / "Require Role Access" wired up; daemon health and server-backed tool/context catalog sizes; a merged database-tool matrix when the tool style is "merged".
  • System API MCP Server (system_mcp) service details UI.
  • API Docs show the full instance URL in Swagger curl examples and Request URL (relative server URLs are absolutized).

Editions & packaging

  • Everything new in this release is open source except the df-agents and df-schema-contracts fixes (commercial packages, tier placement unchanged from 7.7.0).
  • New package: df-system-mcp-server 0.5.1 — the System API MCP daemon is now open source (Apache-2.0) and ships in every full edition, including OSS, alongside df-mcp-server.
  • The eleven single-connector editions, last refreshed at 7.6.0, catch up to the 7.7.0 platform: Laravel 13 root constraints, the symfony 8 conflict guard, and seven package pins aligned to their 7.7.0 tags — plus all applicable 7.7.1 bumps. Single-connector installs now resolve Laravel 13.33 like every other edition.

Security Hardening

  • df-sqldb: SQL injection hardening in _table filters. Filter and {"expression"} values are now bound as query parameters instead of interpolated into SQL; a recognized set of no-argument SQL functions (NOW(), CURRENT_TIMESTAMP(), …) remains inline.
  • df-amqp / df-mqtt: subscribe-consumer RBAC bypass fixed. The subscription callback previously dispatched the triggered service request with permission checks disabled, so any user with pub/sub access on a queue could invoke admin-only endpoints. Callbacks now run permission-checked under the identity captured at subscribe time.
  • df-amqp: unserialize() of queue payloads is constrained to the Subscribe job class (allowed_classes + instanceof guard), blocking PHP gadget-chain attacks via crafted payloads.
  • df-mqtt: publish topics are validated — non-empty strings up to 64 KiB, no NUL bytes, no subscribe-only wildcards (+/#).
  • df-core: curl SSRF/TLS defaults hardened — redirects are no longer followed automatically, each opted-in redirect hop is validated and pinned to its resolved IP, and SSL peer/host verification is on by default. The installed service-type list at the API root now requires authentication.
  • df-system: import-URL SSRF validator blocks 0.0.0.0/8, IPv4-mapped/compatible IPv6, and alternate IPv4 encodings (decimal, hex, octal, short-dotted); security-question password-reset attempts are throttled and the reset response envelope is unified to blunt account enumeration.
  • df-rws: caller-supplied query parameters and pass-from-client header values expand public lookups only — private/secret lookups are expanded solely for admin-configured values; the service no longer follows HTTP redirects from the remote endpoint unless explicitly configured.
  • df-mcp-server: the daemon shared secret is required on every /mcp route; custom function tools are opt-in via MCP_ALLOW_FUNCTION_TOOLS; /register no longer persists caller-supplied redirect_uris and redirect_uri is validated on /login; loopback OAuth redirects follow RFC 8252 §7.3; plus config/OAuth hardening found during 7.7.1 testing.

Fixes

Platform (df-core, df-system)

  • DELETE and PATCH with ?filter= on system resources no longer return a 500 (Call to undefined method ...::deleteByFilter()). The filter now resolves to matching ids through the same criteria translation and model scoping as GET, then delegates to the existing by-ids batch paths; an empty match returns an empty resource set.
  • Filters with unparenthesized AND/OR (a='x' OR b='y') parse correctly instead of silently matching nothing; BETWEEN / NOT BETWEEN are implemented by expansion to range comparisons. (df-core + companion df-sqldb parsing fixes, including bare operators inside parenthesized groups.)
  • _spec is listed in the service access list, so roles can be granted it.
  • Package import resolves service ids without the cached id/name map — role service-access rows for services created in the same import are no longer skipped.
  • Validation errors from record updates return 400 instead of 500; a service description may be null; ?model=true builds from the caller's _table listing.
  • MCP query templates use snake_case arguments and aggregate_data for group counts.

MCP (df-mcp-server)

  • The MCP proxy no longer starves the PHP-FPM worker pool; the daemon's DreamFactory request timeout is raised to 60s.
  • get_data_model query templates match the active tool style; global tools read the stateless per-request config; mcp:prune-request-logs runs daily.

Agents (df-agents) — COMMERCIAL

  • Approving an access request for a bare-service target now actually grants it — approval previously OR-ed verbs into existing table-scoped rows only, so a role with rows for other tables got nothing and the agent kept being denied.
  • The activity ledger is indexed by (app_id, occurred_at) and (role_id, occurred_at), and gets retention: a daily agents:prune-ledger command (default 90 days, DF_AGENTS_LEDGER_RETENTION_DAYS, 0 disables).

Schema Contracts (df-schema-contracts) — COMM...

Read more

7.7.0

Choose a tag to compare

@thekevinm thekevinm released this 18 Aug 19:49
61004db

Overview

DreamFactory v7.7.0 introduces the Agent Control Plane — AI agents as first-class, human-owned API consumers with negotiated, role-scoped access — and moves the platform baseline to Laravel 13 / PHP 8.4+. The AI/agents family (df-ai, df-ai-chat, df-agents, df-alerts, df-schema-contracts) is a commercial capability available; the MCP server remains open source. The release adds two new packages (Alerts, Schema Contracts), a major admin UI overhaul, platform-wide request tracing, a rebuilt BigQuery connector with full write support, OIDC group-to-role mapping, and significant security hardening across the AI gateway, chat, and agent surfaces.

New Features

Agent Access Negotiation (df-agents) — COMMERCIAL — NEW PACKAGE

  • AI agents become governed API consumers: each agent is bonded to a human owner, scoped by an existing DreamFactory Role, and authenticates with a short-lived API key.
  • Agent registry — GET/POST/PATCH/DELETE /api/v2/agents/agents for agent CRUD (name, owner, role, TTL, skills, chat service); creating an agent auto-mints its API key. The whole management surface is sysadmin-only.
  • Short-lived keys — key_ttl_hours (default 4h, 1–24h) enforced on every API request; expired keys are rejected with 401 until re-approved or rotated. Non-agent keys are unaffected.
  • Access-request queue — agents file requests for access they don't have (POST /api/v2/agent/request_access, or the request_access MCP tool); admins one-click approve/deny via /api/v2/agents/requests. Approvals grant the requested verbs on the agent's role, down to table-scoped targets (mysql/_table/orders), effective immediately.
  • Agent self-service — GET /api/v2/agent/catalog answers "what can I access?" with the agent's own role-filtered service catalog.
  • Agent-to-agent brokering — a domain-owning agent can review and resolve requests into services its own role covers (/api/v2/agent/inbox, /api/v2/agent/resolve), so routine grants don't escalate to a human. Brokered approvals are tagged and alerted.
  • Kill switch & sponsor rule — deactivating an agent immediately stops its key from authenticating; an agent may not outlive its owner (deactivating or deleting a user auto-suspends their agents, including via directory sync).
  • Activity ledger — one row per data-plane API operation: agent → owning user → role, verb, service, table, outcome, duration — joined on the platform trace id. Covers human/API traffic too.
  • Deterministic capability router — POST /api/v2/agents/route {"task": "..."} scores every active agent against a task description (+3 per matched skills keyword, +1 per name/description token) and returns the winner, its chat persona service, a match reason, and the scoreboard. No LLM call; never returns key material.

Alerts (df-alerts) — COMMERCIAL — NEW PACKAGE

  • Real-time alerting on system lifecycle events (role/service/user changes, agent activity) routed to Slack/webhook channels.
  • Database-backed alert rules with glob event patterns (system.role.*), severity, per-rule rate limiting, and {{variable}} message templates.
  • Default messages include acting-user attribution and field-level old → new diffs; secret-looking fields are masked as "changed".
  • Admin API backing the new Alerts UI: rules/channels CRUD, test delivery, delivery log (sent/failed/skipped/throttled with HTTP status), and an event catalog.
  • Works out of the box: seeds a Slack channel from DF_ALERTS_WEBHOOK_URL and default rules for role, service, and agent events.

Schema Contracts (df-schema-contracts) — COMMERCIAL — NEW PACKAGE

  • Versioned, hashed, immutable schema snapshots for SQL services, with drift detection and optional runtime enforcement. Opt-in per service; default behavior is unchanged.
  • Canonical, connector-neutral JSON schema shape validated against MySQL/MariaDB, PostgreSQL (multi-schema), Oracle, and SQLite.
  • Contract modes per service: none (default), auto (additive drift auto-promotes, breaking drift held), strict (all drift held for review).
  • Drift engine classifies changes into breaking / potentially breaking / additive / cosmetic, with per-table and service-wide diff reports.
  • Runtime enforcement — shape_response strips response fields not in the locked contract on every verb; strict additionally rejects writes referencing non-contract or read-only fields. Alias-aware, including embedded ?related= records.
  • Stable OpenAPI 3.0 schema generation from the locked contract; full system API under /api/v2/system/schema_contract; schema-contracts:describe and schema-contracts:prune artisan commands.

API Builder (df-api-builder) — OPEN SOURCE — NEW PACKAGE

Author custom REST endpoints atop existing DreamFactory services in a human-centric, script-free workspace; every custom API deploys as a standalone, first-class platform service.

  • Managed API lifecycle — moves through draft, published, and archived states; active APIs reside at /api/v2/{api_name}/ with native inheritance of RBAC roles, keys, logging, and platform-wide request tracing.
  • Deterministic execution plans — endpoints execute sequenced service_request steps against backing workspace resources; static admin-defined selectors ensure caller input only influences parameters and payloads, never the call target.
  • Declarative transform steps — no-code response reshaping (pick, rename, filter, sort, wrap/unwrap) replaces post-processing scripts for in-memory data manipulation between steps.
  • Workspace-scoped composition — APIs only orchestrate services explicitly granted to their workspace; inter-service links utilize platform-native db_virtual_relationships to prevent registry drift.
  • Granular test tracing — POST /api/v2/api-builder/test {"trace": true} delivers per-step telemetry (status, timing, output) to isolate failures, powering the new Admin UI Preview panel.
  • Automated OpenAPI documentation — dynamic spec generation via api-builder/docs ensures custom endpoints maintain parity with native service documentation.
  • Integrated designer service — a dedicated api_builder management surface is automatically provisioned to handle endpoint, relationship, and workspace configuration.

AI Gateway (df-ai) — COMMERCIAL

  • Google Gemini provider — full chat, tool-calling, streaming, embeddings, and model listing via Gemini's OpenAI-compatible surface.
  • Department chargeback — usage rollups now include by_department (requests, tokens, cost) using the directory department captured at LDAP/AD login; unmapped usage lands in "Unattributed" so totals always reconcile.
  • Langfuse audit sink — completions can be forwarded to a Langfuse instance as trace + generation observations (AI_INSIGHTS_* env vars); best-effort, never blocks responses.
  • Per-model rate table — cost tracking consults built-in per-model rates (e.g. per-model Claude pricing) before provider defaults; lookup order: per-model on the connection → per-service flat rates → built-in per-model → provider defaults.

AI Chat (df-ai-chat) — COMMERCIAL

  • Conversations run under the caller's own role by default; admins can still act-as an allowed role for down-scoping.
  • New mcp_servers scope on chat services and sessions — always intersected with the caller's role grants.
  • Data tools honestly track RBAC: allowed table names are baked into tool descriptions, and table-listing tools are withheld when a role grants only specific tables.
  • MCP tool schemas are sanitized so LLM providers accept tools from remote MCP servers.

Platform request tracing (df-core)

  • Every API request carries a trace id (accepted from a validated X-DreamFactory-Trace-Id header or minted server-side) and echoes it on the response. AI usage, prompt logs, MCP audit rows, and the agent activity ledger all join on the same id, so one agent action can be followed across every hop. A new AGENT requestor type lets role access rules and event scripts distinguish agent traffic from API and script traffic.

MCP Server (df-mcp-server) — OPEN SOURCE

  • Stateless daemon mode (MCP_STATELESS=true) — no session pinning, so multi-node deployments behind a load balancer work without sticky sessions; defaults unchanged when unset.
  • Session-authenticated /rpc bridge — first-party DreamFactory-session callers (e.g. AI Chat) reach the MCP daemon without an OAuth client, with role-scoped service lists resolved server-side and full audit parity with OAuth clients.
  • Agent negotiation tools — always-on discover_services and request_access MCP tools connect any MCP-capable agent to the access-negotiation flow.

Editions & packaging

  • Commercial editions: df-ai (AI Connections), df-ai-chat (AI Chat), df-agents (Agent Access Negotiation), df-alerts (Alerts), and df-schema-contracts (Schema Contracts) ship in the commercial composer builds only. They are not part of the open-source build.
  • df-mcp-server remains open source and ships in every build including OSS — MCP is protocol-level connectivity governed by the same roles and REST enforcement, not a tier differentiator.

Admin UI overhaul (df-admin-interface)

  • Design system — global theme-token layer with consistent light/dark theming, denser tables with hover-revealed actions, and shared primitives (stat tiles, badges, skeletons, toasts, empty states).
  • Command palette — Cmd/Ctrl-K jumps to real objects (services, roles, keys) and common actions; API Builder, Agents, and Alerts are nested under their pillar sections.
  • Home — dashboard-first redesign with quick actions, an activation checklist driven by live instance counts, and a deny-by-default governance metric (locked/scoped/open).
  • Services — Health column now probes the real backend connection; health issues appear on the service's own page; a Live API Card with working curl/JS/Python/MCP snippets sits on every service Overview; create an HTTP service by pasting a cURL command; service detail shows the effective request chain (script...
Read more

7.6.0

Choose a tag to compare

@thekevinm thekevinm released this 28 May 17:10
edb6bb3

DreamFactory v7.6.0

DreamFactory v7.6.0 launches governed AI/LLM connectivity as a first-class platform capability — a new AI Connection service type (df-ai), an AI chat experience over your own data (df-ai-chat), and an AI Gateway analytics dashboard backed by per-tool-call MCP audit logging. It also extends the security hardening pass to the full connector, authentication, and integration surface (SQL injection, SSRF, LDAP/SOQL/JS injection, zip-slip, JWKS/JWT validation, secret redaction, and more across ~20 packages), modernizes the MongoDB stack off the abandoned jenssegers/mongodb driver, and forward-ports every package to Laravel 13 compatibility. The admin interface gains AI management screens, a reusable RBAC role-scope control, overview landing pages, portable config-package export, and GitHub-linked server scripts.

New Features

AI Connection Service (df-ai) — COMMERCIAL

A new ai_connection service type providing unified, governed REST access to LLM providers, exposed as DreamFactory endpoints with role-based access control and identity passthrough.

  • Providers: Anthropic (Claude), OpenAI (GPT), xAI (Grok), Ollama (local), and any OpenAI-compatible endpoint
  • Resources per service:
    • POST /{service}/completion — single-turn text completion
    • POST /{service}/chat — multi-turn conversation
    • POST /{service}/embeddings — vector embeddings
    • GET /{service}/models — list available models
    • GET /{service}/health — provider health check
    • GET /{service}/usage — usage statistics and token counts
  • df-core adds an AI_CHAT service-type group so AI services slot into the standard service taxonomy

AI Chat Over Your Data (df-ai-chat) — COMMERCIAL

A new package to chat with your DreamFactory-governed data using AI together with MCP tools — combining the AI Connection service and the MCP server so agents reason over live data through existing role-based access controls.

AI Gateway Analytics Dashboard (Admin UI + df-mcp-server)

  • New AI Gateway dashboard in the admin interface: cost tracking, per-application attribution, multi-dimensional cost charts, most-expensive-call drill-downs, latency percentiles with deltas and sparklines, budget UI, and a dedicated MCP section
  • Backed by new per-tool-call request logging and a Gateway aggregator endpoint in df-mcp-server, with an mcp:prune-request-logs command and configurable retention
  • AI usage analytics surface through /_internal/ai/usage, reading the ai_usage_log

Admin UI: AI Management

  • Full configuration screens for AI Connection services — model picker, "test connection" with saved-key fallback, chip-style picker for allowed roles, and inline code-block rendering
  • Browser-based AI chat UI at /ai/chat ("Conversations") with a prerequisites picker panel above the chat-service config form
  • AI navigation split into Connections / Chat / MCP sub-routes

Admin UI: RBAC Role Scope

  • New reusable df-role-scope component and scope route, wired into the RBAC navigation, for scoping role access (including service_id=0 wildcard handling) — embedded directly in the AI chat-service config form

Admin UI: Overview Landing Pages & Config Package Export

  • New overview landing pages with service-category tiles and config-package tooling
  • df-system adds portable config-package export, surfaced through the new admin UI config-package tools

GitHub-Linked Server Scripts

  • df-script + admin UI: scripts can now be linked to GitHub with a repository explorer, live fetch, and webhook-based cache invalidation
  • df-script adds an _event metadata object (pre/post, service, script name) accessible inside scripts, plus a recursion guard for file-script services whose trigger path matches the file service

Snowflake Enhancements (df-snowflake)

  • Snowflake key-pair authentication
  • Stored-function handlers, including cross-database/cross-schema function calls, with a dedicated SnowflakeFunctionSchema and payload-driven parameter filtering

Security

This release extends DreamFactory's security hardening to the full connector, auth, and integration surface.

Authentication & Identity

  • df-user: hardened AlternateAuth against filter injection and plaintext/MD5 handling
  • df-oauth: strict redirect-host matching, rejection of credentials embedded in URLs, and constant-time comparison (hash_equals)
  • df-oidc: never trust id_token claims without signature validation; JWKS algorithm allowlist (RS256/RS384/RS512 only)
  • df-saml: JWT requirement for metadata-endpoint access; bumped onelogin/php-saml to ^4.3.1
  • df-adldap: ldap_escape on user-supplied values and sanitized LDAP group-filter fragments
  • df-mcp-server: hardened OAuth flow, daemon shared-secret, and Referrer-Policy

SQL & Query Injection

  • df-database: validate relationship-filter PK values; quote identifiers in DDL helpers; validate CREATE TABLE options append; harden single-id relationship upsert filter
  • df-sqldb: parameterized MySQL + PostgreSQL getTableConstraints schema lookups and routine/schema metadata lookups
  • df-sqlsrv: quote INOUT parameter values in T-SQL SET statements (dblib/FreeTDS path); parameterize schema-name interpolation; quote identifiers in dropColumns
  • df-oracledb: parameterize OracleSchema lookups; quote dropColumns identifiers
  • df-snowflake: removed eval() from loadParameters; parameterized routine lookups
  • df-salesforce: validate SOQL identifiers before concatenation
  • df-mongodb: reject MongoDB filter operators that execute server-side JavaScript

SSRF, File & Transport Safety

  • df-soap: SSRF, TLS-bypass, and symlink-traversal hardening
  • df-file: refuse zip entries that escape the extraction target (zip-slip); refuse asFullPath() results that escape the storage root
  • df-email: validate URL imports; configurable, hardened allowlist for the Local mailer executable
  • df-scheduler: gate crontab install to CLI only, lock it, and escape the path

Secrets & Logging

  • df-logger: redact credentials before shipping log payloads to a remote aggregator
  • df-cache: unit-separator delimiter in cache keys to prevent key collisions
  • df-limits: bucket numeric/UUID/hash path segments in the rate-limit endpoint key (prevents key explosion)

Data Layer

MongoDB Driver Modernization

  • df-mongodb (0.22.1) and df-mongo-logs (1.3.1) migrated from the abandoned jenssegers/mongodb to the maintained mongodb/laravel-mongodb ^5.7. The mongodb connection driver name and LOGSDB_* variables are unchanged — existing Mongo services and logging keep working without configuration changes.
  • df-mongodb: preserved nested field paths (no longer rewrites _id.Id → _id), maintaining correct dot notation

Connector Fixes

  • df-sqlsrv: fixed null values in Additional SQL Statements causing service errors at startup
  • df-sqldb (pgsql): correctly detect primary keys when loading columns
  • df-databricks: fixed connector creation; removed a dead reserved-keyword class (Function) that could trigger a PHP parse error
  • df-dremio: fixed connector installation issues
  • df-azure-ad: fixed get/set inheritance for role-per-app fields
  • df-email: allow the default sendmail transport
  • df-logger: correct Monolog v3 log-level integer conversion

Admin UI Fixes

  • Event Scripts: fixed the "Add path to file" radial not saving state and not clearing service details in the event-script service config screen
  • API Docs: pinned swagger-ui to 4.15.5 to restore the API Docs UI
  • Overview tiles navigate on first click and remain stable across dashboard pages; category pages render before data loads; clicks no longer blocked by the loading overlay
  • AI UI: corrected camelCase form-key handling, hid ai_service_id/ai_role_id when type is ai_chat, stopped sending the masked api_key, improved light-mode legibility, and aligned font sizing
  • Performance: reduced navigation churn and cached AI usage lookup datasets

Platform & Compatibility

Laravel 13 Forward-Compatibility

  • Every package was updated for Laravel 13 compatibility (e.g., replacing the removed Connection::withTablePrefix() with the L13 Grammar($this) constructor in df-sqlsrv, and dispatchNow()→ Bus::dispatchSync() in df-script)
  • df-core adds PHP 8.5 readiness fixes (autoload preloading and incomplete-class guards around cached schema/CORS reads)

Upgrade Notes

  • Security fixes are cumulative — upgrading is recommended for all deployments. This release hardens SQL injection, SSRF, LDAP/SOQL injection, server-side-JS injection, zip-slip, JWT/JWKS validation, secret logging, and crontab handling across ~20 packages.
  • Platform baseline is unchanged from 7.5.0 (PHP 8.3 / Laravel 11). No host-level upgrade is required — this is an in-place upgrade. All packages are now Laravel 13-ready, but 7.6.0 ships on the validated L11 stack.
  • MongoDB driver swap: df-mongodb and df-mongo-logs now use mongodb/laravel-mongodb instead of the deprecated jenssegers/mongodb. The mongodb connection driver name and LOGSDB_* variables are unchanged; ensure the mongodb PHP extension is present (already included in the official Docker images).
  • MongoDB field paths: nested _id field paths are now preserved in dot notation. If you built downstream logic around the previous _id.Id → _id rewrite, re-verify those queries.
  • OIDC/SAML hardening: OIDC now enforces id_token signature validation and an RS256/384/512 JWKS allowlist; SAML requires a JWT for metadata-endpoint access and bumps onelogin/php-saml. Verify identity-provider configurations after upgrading.
  • Standard upgrade process applies for all other changes. Existing services, roles, and API keys a...
Read more

7.5.0

Choose a tag to compare

@thekevinm thekevinm released this 23 Apr 18:14
065d622

DreamFactory v7.5.0

DreamFactory v7.5.0 delivers a platform-wide 2026-04 security hardening pass (auth bypass, SQL injection, SSRF, unsafe deserialization, and timing-attack fixes across most packages), introduces GitHub as a first-class MCP utility service, adds a custom-tool lookup picker and unsaved-changes save guard to the admin UI, switches the MCP server from SSE streams to JSON responses with stale-stream eviction to prevent PHP worker lockups, and ships a new Jest + Playwright CI test harness for the admin interface.

New Features

GitHub MCP Utility Service

  • New DreamFactory utility-service integration for GitHub — custom MCP tooling can call GitHub as a first-class service so AI agents reach repositories, issues, and pull requests without custom auth plumbing
  • Admin UI elements for configuring the GitHub integration end-to-end

Custom MCP Tool Lookup Picker

  • Added a lookup picker for custom MCP tools — admins can insert DreamFactory lookup values into custom-tool configuration through the UI instead of hand-typing keys
  • Inline JSON/JS lint-error display for custom tool bodies, with error notifications on static-header JSON

Unsaved-Changes Guard for MCP Custom Tools

  • Added a save guard that detects unsaved custom-tool changes when saving an MCP service and surfaces a contextual popup with persist/discard options (replaces the previous silent-drop behavior)
  • Fixed a related issue where custom tools were not persisted on first service creation or on re-save without IDs

MCP OAuth Direct Redirect Workflow

  • MCP services can now declare an OAuth service for direct redirect — the MCP client is sent straight through the OAuth flow, skipping the DreamFactory UI login and removing a step from the desktop MCP connect experience

Security

Authentication & Authorization

  • df-core: Fixed auth bypass, widened the OAuth filter blocklist, removed token logging; reverted an earlier change that had narrowed OAuth method coverage so all meth
    ods are now protected again
  • df-core: Replaced rand() with random_int() in generateConfirmationCode()
  • df-core: Added /auth/ prefix to password-reset and email-invite URLs so they route through the authenticated handler
  • df-system: Removed the admin flag from password-reset email URLs
  • df-script: Replaced uniqid() with random_bytes(32) for script auth tokens
  • df-oauth: Fixed unsafe deserialization, a timing-attack vector, an open-redirect, and a name-field bug

SQL Injection Hardening

  • df-sqldb: Fixed SQL injection in MySQL INOUT stored-procedure parameters (regression test added)
  • df-sqldb: Fixed SQL injection in ORDER BY, GROUP BY, filter, and expression handling; widened expression/filter checks from allowlist to blocklist
  • df-database: db_function template value substitution now uses quoteValue() to prevent injection via template expansion

SSRF & Request Integrity

  • df-system: Added SSRF validation to import_url endpoints on Package, Import, and App resources
  • df-mcp-server: Fixed host-header injection, OAuth-redirect issues, and session leaks; CORS posture re-widened explicitly for MCP's inherently-external clients after
    being tightened in the scan

Admin UI

  • df-admin-interface: Added a same-origin check to handleRedirectIfPresent
  • df-admin-interface: Updated npm dependencies to eliminate critical CVEs surfaced by the scan

MCP Server

Transport & Stability

  • Switched MCP responses from SSE streams to JSON, with guards around remaining SSE streams to prevent PHP worker lockups when multiple MCP session connections arrive concurrently
  • Stale-SSE-stream eviction on reconnect — resolves 409 errors clients previously saw when reconnecting to an MCP session

Custom Tools

  • Fixed order-of-operations for custom-tool role checks against services — role rules now evaluate consistently with other service-level authorization
  • Custom tools persist correctly on first service creation and on re-save without IDs

Admin UI

Event Scripts

  • Script Type dropdown now populates for services whose names contain underscores
  • Fixed scriptMethod wiring and added fallback behavior when the method name is empty
  • Event-script services are fetched lazily on open (events on service selection), cutting initial page load on large instances
  • /system/event responses exempted from the snake→camelCase interceptor so event identifiers are returned raw

Editor & Loading States

  • Permitted top-level await in the Ace JavaScript lint worker under module:true
  • Fixed a stuck loading spinner that could persist after rapid concurrent requests

SQL Databases

  • df-sqldb: Fixed a regression where null values in additional SQL init statements caused service errors at startup
  • Blocklist-based filter/expression validation (from the security hardening above) now applies uniformly across all SQL connectors

Performance

  • df-system: Added a services_only fast path to the system/event resource, avoiding a full event walk when callers only need the service enumeration
  • df-admin-interface: Deferred event-script fetching until the user opens the section, with a secondary fetch on service selection

Testing & CI

  • df-admin-interface: Jest wired into CI with regression specs covering the 2026-04 fixes
  • df-admin-interface: Playwright scaffold with smoke specs and a dedicated CI workflow, scoped to manual/nightly to keep PR CI fast
  • df-admin-interface: UI automation affordances added and a discovery spec reporting navigation automation limits
  • df-admin-interface: Dropped the pre-existing lint gate from default CI (lint still runs, just non-blocking)
  • Test-suite hardening across df-sqldb (PHPUnit 9 compatibility, driver/host config, reliable cleanup), df-database (void return type on tearDown()), df-syst
    em
    (explicit admin auth, order-independent assertions, stronger fixture passwords), and df-user (fixture passwords updated for stronger strength policy)

Upgrade Notes

  • Security fixes are cumulative — upgrading is recommended for all deployments. The 2026-04 security scan covers auth bypass, SQL injection, SSRF, unsafe deserializati
    on, and timing-attack vectors across multiple packages.
  • Password-reset / invite URLs now include an /auth/ prefix. Update any external tooling that parses or constructs DreamFactory reset URLs.
  • MCP transport: The MCP server now returns JSON instead of SSE for most flows. Compliant MCP clients require no changes — the switch is server-side and transparent.
  • MCP custom tool persistence: Tools that previously appeared to be "lost" on service creation in 7.4.x will now persist correctly; re-verify any that were affected.
  • Password strength policy: The df-user fixture-password hardening reflects a stronger strength policy. Deployments relying on weak programmatic passwords (e.g., old C
    I fixtures or seeded test accounts) may need to update them.
  • Platform baseline is unchanged from 7.4.x (PHP 8.3 / Laravel 11). No host-level upgrade is required.
  • Standard upgrade process applies for all other changes.

Full Changelog: 7.4.5...7.5.0

7.4.5

Choose a tag to compare

@oleksandrkits oleksandrkits released this 30 Mar 12:03
6f4d43b

DreamFactory v7.4.5 introduces a dedicated aggregate data tool for MCP-connected AI agents, adds server-side aggregate expression support in the SQL fields parameter, improves MCP server stability with request timeout guards and crash prevention, fixes OAuth connectivity for Cursor IDE and desktop MCP clients, and resolves admin UI issues for non-sysadmin users.

New Features

MCP Aggregate Data Tool

  • New aggregate_data MCP tool — AI agents can now compute SUM, COUNT, AVG, MIN, and MAX directly on the database server through a single MCP tool call, eliminating the need to fetch and manually aggregate raw rows
  • Supports groupBy for efficient server-side grouping (e.g., total revenue by country, average order value by status, row count by category)
  • Supports filter to narrow rows before aggregation using the same filter syntax as get_table_data
  • Improved MCP tool descriptions to guide AI agents toward using aggregate_data instead of attempting aggregation through get_table_data

Server-Side Aggregate Expressions in Fields Parameter

  • SQL database services now support aggregate expressions directly in the fields query parameter (e.g., SUM(amount), COUNT(*), AVG(price))
  • Updated GROUP and FIELDS option descriptions across the API to document aggregate expression support
  • Applies to all SQL database connectors (MySQL, PostgreSQL, SQL Server, Oracle, Snowflake, etc.)

MCP Desktop OAuth Success Page

  • Added a post-redirect success page for desktop MCP OAuth flows — after completing authentication, users now see a confirmation page instead of a blank browser tab
  • Improves the onboarding experience for Claude Desktop, Cursor, and other MCP desktop clients

MCP Server

Stability & Reliability

  • Request timeout guards — Added timeout guards to MCP daemon requests to prevent PHP worker lockups when external requests fail or hang
  • Global error handlers — Added process-level error handlers to prevent unhandled exceptions from crashing the MCP daemon
  • Custom tool auth injection — DreamFactory authentication headers are now automatically injected into custom tool API requests, so custom tools can call DreamFactory-hosted services without manual auth configuration

OAuth & Authentication Fixes

  • Fixed OAuth connection issue for Cursor IDE — Resolved compatibility problems when connecting Cursor to the DreamFactory MCP server
  • Fixed duplicate scope keys in OAuth createCode calls that could cause authentication failures
  • Fixed general MCP OAuth connection issue affecting desktop clients
  • Fixed MCP tools disabling — Resolved an issue where toggling tools off in the admin UI was not being correctly persisted

Query Hints

  • Added filter syntax hint for field names containing spaces — MCP tool descriptions now instruct AI agents not to quote or escape field names with spaces in filter expressions

Admin UI

Non-Sysadmin Database Filtering

  • Enhanced logic for non-sysadmin users' database filtering by role — Resolved edge cases where certain database services were incorrectly shown or hidden based on the user's assigned role

OAuth Redirect Fix

  • Fixed an issue where a stale redirect URL caused the login screen to become stuck between states, returning an empty response after OAuth redirect — the admin UI now properly detects and cleans up stale redirect URLs

Logging

Monolog v3 Compatibility

  • Fixed log level conversion for Monolog v3 — Log levels are now properly converted to integers, resolving compatibility issues with the Monolog v3 API that expects integer severity levels instead of strings

Upgrade Notes

  • MCP server users: The new aggregate_data tool is automatically available on all database services connected to your MCP server. No configuration changes are required.
  • The server-side aggregate expression support in the fields parameter is backward-compatible — existing queries are unaffected.
  • Standard upgrade process applies for all other changes.

7.4.4

Choose a tag to compare

@oleksandrkits oleksandrkits released this 24 Mar 20:51
c010bf1

DreamFactory v7.4.4 delivers an AI-optimized data model endpoint for LLM and MCP integrations, adds custom tool support to the MCP server, introduces granular MCP tool management in the admin UI, and includes fixes for Google OAuth group mapping, Azure AD role-per-app fields, and MCP OAuth redirect handling.

New Features

AI-Optimized Data Model Endpoint

  • New _spec endpoint on database services — Returns a condensed ~14KB data model payload containing all tables, columns, types, primary keys, foreign keys, row counts, and structural patterns in a single response
  • Automatic relationship pattern detection — Identifies self-referencing hierarchies (tree structures) and junction tables (many-to-many relationships) so AI agents can navigate complex schemas correctly
  • ?model=true parameter for LLM-optimized compact output; ?stock=true toggle for enriched metadata including query templates, field semantic hints, and sample data
  • spec_url added to the service listing response for programmatic discoverability

MCP Server Custom Tools

  • Custom tool definitions — Admins can now define custom MCP tools that make HTTP requests to external REST APIs, with configurable parameters, HTTP methods, static headers, and auto-generated Zod schemas
  • Custom tools management UI — New table view and inline add/edit form in the MCP service configuration page for creating and managing custom tool definitions
  • 30-second request timeout and case-insensitive Content-Type handling for robust external API integration

MCP Server Tool Management

  • Per-service and per-tool toggle controls — Enable or disable individual built-in MCP tools (database and file operations) directly from the admin UI
  • New disabled_tools column in MCP server configuration for persistent tool state
  • Role-based service discovery — MCP tool listing now respects DreamFactory role permissions, only exposing services and tools the authenticated user is authorized to access

Google OAuth Group-to-Role Mapping

  • Switched from Google Admin SDK to Google Identity Provider for the group-to-role mapping workflow, improving compatibility and reducing configuration complexity
  • Enhanced OAuth flow logging with appropriate log levels (info, warning, debug) for easier troubleshooting

Bug Fixes

Azure AD / Entra ID

  • Fixed get and set inheritance for role-per-app fields in the Azure AD connector

MCP Server

  • Fixed OAuth redirect passthrough — Changed from localStorage to sessionStorage for redirect auth URLs, resolving stale redirect issues
  • Fixed N+1 query in syncToolsForService by bulk-fetching with keyBy
  • Fixed text double-serialization in non-JSON custom tool responses
  • Used forceDelete to avoid soft-delete and unique constraint conflicts when removing tools

Upgrade Notes

  • MCP server users: A new database migration adds the disabled_tools column to the MCP server configuration table and a custom_tools table. Run php artisan migrate after upgrading.
  • Google OAuth users: If you are using the map-group-to-role feature with Google, this release switches from the Google Admin SDK to Google Identity Provider. Verify your Google OAuth configuration after upgrading.
  • Standard upgrade process applies for all other changes.

7.4.3

Choose a tag to compare

@oleksandrkits oleksandrkits released this 07 Mar 00:53
477b826

New Features

MCP Server Integration

  • df-mcp-server v1.2.0 — Introduces ability to toggle on/off MCP tools from the MCP Server configuration page.

7.4.2

Choose a tag to compare

@oleksandrkits oleksandrkits released this 11 Feb 14:39
3040601

DreamFactory v7.4.2 delivers a new Data Explorer for visual database browsing, expands MCP server capabilities with multi-API and file support, introduces Google Workspace group-to-role mapping, and improves PostgreSQL stored procedure handling.

New Features

Data Explorer

  • New admin UI feature — Browse database tables, view schema details, filter and search data, navigate foreign key relationships, and inspect row details directly from the API Connections section of the admin panel
  • Schema tree navigation with table and column visibility
  • Built-in filtering and foreign key link navigation for exploring related data

MCP Server Multi-API & File Support

  • Multi-API connector support — MCP server is no longer limited to a single API; connect AI agents to multiple DreamFactory services simultaneously
  • File API tools — AI agents can now interact with DreamFactory's file management services through MCP
  • OAuth discovery — Added RFC 8414 .well-known URI support for standard OAuth server metadata discovery
  • Claude Desktop fix — Resolved OAuth Dynamic Client Registration (DCR) compatibility issue for Claude Desktop MCP integration

Google Workspace Group-to-Role Mapping

  • Map Google Workspace groups directly to DreamFactory roles using the Google Admin SDK
  • New map_group_to_role toggle in OAuth configuration for Google providers
  • Automatic group resolution and role assignment during SSO login
  • New role_google database table for managing group-to-role mappings

OAuth & Authentication Fixes

  • Fixed Azure AD / Entra ID UI page being incorrectly overwritten by the generic OAuth UI
  • Resolved incorrect field population for OAuth providers on the Authentication configuration page

Database Connectors

PostgreSQL

  • Stored procedure & function fixes — Improved compatibility with PostgreSQL v12+ when invoking stored procedures and functions
  • Added SELECT * fallback when field resolution fails during procedure execution

SQL Database (General)

  • Virtual relationship transactions — Virtual relationship operations are now wrapped in proper database transactions via RelationTransactionContext, ensuring data consistency across related table operations
  • Updated df-database dependency across all database connector packages for improved compatibility

Upgrade Notes

  • MCP server users: The api_name column has been removed from the MCP server configuration table in favor of the new multi-API architecture. Existing MCP configurations will need to be reconfigured to specify connected APIs through the updated interface.
  • Google OAuth users: A new database migration adds the map_group_to_role column and role_google table. Run php artisan migrate after upgrading.
  • Standard upgrade process applies for all other changes.

7.4.1

Choose a tag to compare

@oleksandrkits oleksandrkits released this 22 Jan 22:30
89a1545

Fix Swagger and df-apidoc versions