Commit Graph
93 Commits
Author SHA1 Message Date
Davide Silvestri e7fae94fa1 chore(deps): upgrade Pydantic AI to 2.77.0 and refresh the AI model picker (#7002)
* chore(deps): upgrade Pydantic AI to 2.77.0

* test(agent): cover updated provider error handling

* test(assistant): locate tool results alongside availability updates

* feat: keep older OpenAI and Anthropic models in the picker

* fix: use SDK retry causes in Kuma evals and clarify model discovery

* feat: preserve historical AI provider model suggestions
2026-12-03 11:13:02 +01:00
Przemyslaw Kukulski 8af86f7e1f chore(deps): bump django from 5.2.17 to 5.2.20 (#7025) 2026-12-03 10:59:39 +01:00
dependabot[bot] bc0a679aa1 chore(deps): bump uvicorn[standard] from 0.52.4 to 0.55.0 in /backend (#6969)
Bumps [uvicorn[standard]](https://github.com/Kludex/uvicorn) from 0.52.4 to 0.55.0.
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Kludex/uvicorn/compare/0.52.4...0.55.0)

---
updated-dependencies:
- dependency-name: uvicorn[standard]
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:03:08 +01:00
dependabot[bot] 658d60598e chore(deps): bump faker from 40.1.0 to 40.63.0 in /backend (#6968)
Bumps [faker](https://github.com/joke2k/faker) from 40.1.0 to 40.63.0.
- [Release notes](https://github.com/joke2k/faker/releases)
- [Changelog](https://github.com/joke2k/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/joke2k/faker/compare/v40.1.0...v40.63.0)

---
updated-dependencies:
- dependency-name: faker
  dependency-version: 40.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:03:04 +01:00
dependabot[bot] e23f44eb12 chore(deps-dev): bump pre-commit from 4.6.2 to 4.7.0 in /backend (#6972)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.6.2 to 4.7.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.6.2...v4.7.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-version: 4.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:02:08 +01:00
Bram 59fab074b5 Updated descriptions for 3.0 (#6979) 2026-12-01 20:37:32 +00:00
Davide Silvestri ffa2884169 fix(api): serve api documentation in air-gapped installations (#6882)
* fix: serve the API reference on air-gapped installations

* test: verify the packaged ReDoc bundle renders offline

* perf: compress and cache versioned ReDoc assets
2026-11-26 15:35:49 +00:00
alamin-brandMohammad Al Amin a63ff419a2 feat(agent): let agents open web pages with any model (#6766)
* feat(agent): let agents open web pages with any model

Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com>

* fix(agent): open web pages through Baserow's HTTP stack and report failures

Failed fetches ended the whole reply, showed as invalid input, and files were stored whole.
Pages now go through the integration HTTP limits, only text is opened, and a reply opens at most five.

* fix(agent): leave scripts out of opened pages and bound their titles

Script and style text made up most of what the model got from many pages.

* fix(agent): refuse internal addresses when opening pages

The model picks the URL and a page can steer it, so the setting that lets integrations reach internal services shouldn't apply.

* fix(agent): read opened pages more safely

A crafted page could still end the reply, files sent as text were read, and pages without a charset came out garbled.

---------

Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com>
2026-11-18 23:01:30 +01:00
alamin-br 804782a21a fix(database): bump psycopg2 to fix export worker crash (#6645)
A PostgreSQL data sync connects to a user-supplied server, which controls the
RowDescription type OID psycopg2 uses to cast each value. A malicious server can
report a scalar column in information_schema while announcing it as an array
(e.g. int8[]), then send an overlong array element. In psycopg2 < 2.9.13
typecast_LONGINTEGER_cast copies that element into a 24-byte stack buffer
without a length check, so get_all_rows() crashes the worker in fetchall()
(SIGSEGV/SIGTRAP) instead of raising an error.

Bump psycopg2-binary 2.9.11 -> 2.9.13, which bounds the copy (#1847) and also
fixes a malformed-interval infinite loop (2.9.12, #1835) and malformed bytea
parsing (2.9.13).

The version is pinned exactly in the lockfile and installed with
`uv sync --frozen`, so the vulnerable version cannot come back silently.
2026-11-09 13:05:14 +00:00
Davide Silvestri ce09e3e829 chore(deps): refresh backend and frontend security dependencies (#6604)
* chore(deps): fix high-severity backend and editor advisories

* chore(deps): refresh networking, telemetry and frontend tooling
2026-11-06 11:23:18 +01:00
dependabot[bot] db55a5c091 chore(deps): bump jira2markdown from 0.5 to 0.5.3 in /backend (#6568)
Bumps [jira2markdown](https://github.com/catcombo/jira2markdown) from 0.5 to 0.5.3.
- [Release notes](https://github.com/catcombo/jira2markdown/releases)
- [Commits](https://github.com/catcombo/jira2markdown/compare/v0.5...v0.5.3)

---
updated-dependencies:
- dependency-name: jira2markdown
  dependency-version: 0.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 16:19:36 +01:00
dependabot[bot] 7e873b3aaf chore(deps-dev): bump fakeredis[lua] from 2.34.1 to 2.40.0 in /backend (#6566)
Bumps [fakeredis[lua]](https://github.com/cunla/fakeredis-py) from 2.34.1 to 2.40.0.
- [Release notes](https://github.com/cunla/fakeredis-py/releases)
- [Commits](https://github.com/cunla/fakeredis-py/compare/v2.34.1...v2.40.0)

---
updated-dependencies:
- dependency-name: fakeredis[lua]
  dependency-version: 2.40.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-02 22:08:19 +01:00
dependabot[bot] 49870d9779 chore(deps-dev): bump coverage from 7.13.5 to 7.17.0 in /backend (#6567)
Bumps [coverage](https://github.com/coveragepy/coveragepy) from 7.13.5 to 7.17.0.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](https://github.com/coveragepy/coveragepy/compare/7.13.5...7.17.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-02 22:07:39 +01:00
Bram Wiepjes f696d36405 Updated brotli to 1.2.1 and use lowercase in pyproject 2026-10-31 00:24:26 +01:00
alamin-br ac1b1f5a93 chore(deps): bump pillow to 13.0.0 (#6509)
12.3.0 is affected by several image decoding advisories fixed in 13.0.0.
2026-10-26 16:11:19 +01:00
Bram ee3119bd07 Fix Celery workers that stop picking up tasks after losing the Redis connection (#6505) 2026-10-26 15:10:09 +01:00
dependabot[bot] 0a25d2c688 chore(deps): bump mcp from 1.28.1 to 1.30.0 in /backend (#6420)
Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.28.1 to 1.30.0.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](https://github.com/modelcontextprotocol/python-sdk/compare/v1.28.1...v1.30.0)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 1.30.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-20 12:01:09 +02:00
Tsering Paljor 4ff953ed43 feat: Add markdown_to_html() formula expression (#6366)
* Add markdown to HTML renderer for runtime formulas

* Add markdown_to_html formula function

* Add markdownToHtml renderer for runtime formulas

* Add markdown_to_html runtime formula to the frontend

* Add changelog

* Enable advanced mode for smtp service's body input
2026-10-15 15:33:52 +04:00
alamin-br 2c5fca6538 feat(mcp): OAuth sign-in for MCP clients with CIMD, DCR and consent (#6312)
* feat(mcp): add django-oauth-toolkit metadata and scopes for MCP OAuth POC

Adds the OAuth provider settings, endpoint scope validator and discovery URLs behind BASEROW_MCP_OAUTH_ENABLED.

* feat(mcp): redirect OAuth authorize to Baserow consent and issue endpoint-bound codes

The consent API validates the authorization query, binds the code to an MCP endpoint, and returns the client redirect URL.

* fix(mcp): reject non-S256 and foreign-resource OAuth requests and read consent client from credentials

Shared validation backs both authorize and consent; the token audience is pinned to the MCP resource.

* test(mcp): cover CIMD host allowlist for MCP OAuth

* feat(mcp): serve Streamable HTTP /mcp with OAuth or endpoint-key bearer auth

MCP clients doing OAuth need a single resource URL; endpoint keys keep working as bearers.

* feat(mcp): revoke OAuth tokens when their MCP endpoint is deleted

Scope is matched as a whole word so endpoint:1 never hits endpoint:12.

* feat(mcp): add title and read-only/destructive annotations to MCP tools

MCP directories require a title and readOnlyHint/destructiveHint on every tool.

* feat(mcp): add consent page for MCP OAuth sign-in

* fix(mcp): only issue OAuth tokens through the consent flow

Open DCR let a client register for the password grant and request an endpoint scope,
skipping consent. DCR and the token endpoint now allow only authorization_code and
refresh_token, and only the consent view can add an endpoint scope.

* fix(mcp): strip trailing slash from the OAuth issuer and resource URL

A PUBLIC_BACKEND_URL ending in / produced a //mcp audience and a mismatched issuer.

* fix(mcp): add iss to OAuth deny and error redirects

The metadata advertises RFC 9207 support, so every redirect back to the client carries iss.

* fix(mcp): pass the authorize query to /mcp-authorize as base64url

The login redirect re-encoded the plain query, so the consent request failed after
signing in. /mcp-authorize also stays clear of the backend /mcp/* route.

* feat(mcp): limit an endpoint to its allowed tools

Null keeps every enabled tool, so existing endpoints and keys are unchanged.
tools/call now also refuses disabled tools, which match_by_name let through.

* feat(mcp): consent picks a workspace and tools

Users never see the endpoint row behind an OAuth connection; consent creates
or reuses it per client and workspace and stores the chosen tools.

* feat(mcp): pick a workspace and tools on the consent page

Replaces the MCP endpoint picker; the backend manages the endpoint row now.

* fix(mcp): reuse a consent grant only for the same OAuth client

Keying on the client name let manual endpoints and same-named clients share a grant.

* feat(mcp): drop dynamic client registration, keep CIMD only

Clients without CIMD use the endpoint key in the Authorization header.

* feat(mcp): redesign the consent page

Card with client avatar pair, verified badge, database counts and tool badges.

* feat(mcp): list and disconnect OAuth connections, refuse grant keys

Endpoints created by OAuth consent only accept their OAuth tokens, so their key
is refused on SSE and as a bearer, and they move from the endpoint list to a
connected apps API.

* feat(mcp): connect URL and connected apps in MCP server settings

Shows the one OAuth URL with per-client setup steps and lets users disconnect
apps they granted. Endpoint keys stay below under their own title.

* fix(mcp): hide OAuth grants from endpoint routes and left workspaces

The legacy endpoint routes no longer return grant rows or their key, and the
connections list skips grants in workspaces the user left, which can't be used
or disconnected.

* fix(mcp): load consent on the client so tool checkboxes render ticked

Server-rendered checkboxes lacked the checked class, which hydration kept while the state was ticked.

* fix(mcp): define django-oauth-toolkit swappable model settings

migrate resolves them when checking for model changes on an already migrated DB, which broke CI.

* fix(mcp): reset the SSE endpoint key when the key is unknown

The early 401 left current_key set, leaking it into later work in the same context.

* feat(mcp): give OAuth grants no key and one row per client and workspace

* fix(mcp): resolve the /mcp endpoint once and drop the /mcp/ route

* feat(mcp): hash OAuth tokens, expire refresh tokens and accept offline_access

Resource metadata lists only mcp; the CIMD host allowlist is now BASEROW_MCP_OAUTH_CIMD_ALLOWED_HOSTS.

* test(mcp): assert offline_access reaches the token and add refresh expiry control

* feat(mcp): rate-limit the OAuth token endpoint per client IP

* fix(mcp): validate consent once and only keep a grant when a code is issued

* fix(mcp): roll back the grant when the library answers consent with an error

oauthlib re-validates while issuing and returns non-fatal errors as a redirect, which committed the grant.

* fix(mcp): revoke OAuth grants when a user leaves the workspace

* fix(mcp): count only usable tools on connected apps

* fix(mcp): start reconnects from the existing grant's tools on the consent page

* fix(mcp): give the connections section its own BEM elements

* feat(mcp): send mcp_connected for Streamable HTTP clients

* fix(mcp): route /mcp, /oauth and OAuth metadata to the backend

* fix(mcp): route /mcp-authorize to frontend before /mcp to prevent 404

* feat(mcp): let MCP clients without CIMD register with DCR

Registration is anonymous, limited to public code-grant clients with https or loopback redirects, and unused clients are removed after a day.

* fix(mcp): reject DCR redirect URIs containing whitespace

DOT splits stored redirect URIs on whitespace, so one URI could smuggle in a second.

* docs(mcp): document OAuth sign-in for MCP clients

* test(mcp): load the URLconf before tests turn OAuth off

The OAuth routes are only mounted if the flag is on at URLconf import, so a test
that turned it off first left later tests in the worker with 404s.

* feat(mcp): periodically clear expired OAuth tokens

Rotation and reuse protection leave revoked refresh tokens, used codes and
expired access tokens behind. DCR registration tokens now expire so they're cleared too.

* style(mcp): drop dead and invalid rules in the OAuth SCSS

* fix(mcp): keep unnamed library metadata routes instead of crashing

* refactor(mcp): remove unused MCPEndpointHandler.get_by_key

* fix(mcp): only accept an OAuth token for its own client's grant

* fix(mcp): leave resource_metadata out of the 401 when OAuth is off

The metadata route isn't mounted then, so the hint pointed at a 404.

* fix(mcp): rate-limit the OAuth authorize redirect per client IP

Each anonymous authorize request can fetch and store a CIMD client.

* fix(mcp): delete CIMD clients that have no grant

Anonymous authorize requests store CIMD clients and nothing removed them.

* fix(mcp): say a CIMD host published the client, not that it verified it

With the default * allowlist the host is not vouched for.

* fix(mcp): name a DCR client without client_name by its redirect host

The consent title read "Connect " and the grant had an empty name.

* fix(mcp): route MCP and OAuth paths to the backend in the no-caddy nginx config

* fix(mcp): reject an access token that has no application

It crashed the /mcp request instead of returning invalid_token.

* fix(mcp): return the 404 JSON for RFC 7592 PUT and DELETE

Django's CSRF check answered them with a 403 page first.

* refactor(mcp): move the shared client avatar placeholder out of mcp_authorize

The connections list extended a placeholder defined in another component.

* fix(mcp): issue a refresh token only for offline_access

ADR 009 decision 6 ties refresh tokens to the offline_access scope.

* fix(mcp): stop the consent page from being framed

The consent page grants a client access, so it is a clickjacking target.

* fix(mcp): make the consent page tool toggles keyboard reachable

* docs(mcp): say the CIMD host allowlist only covers CIMD clients

* docs(mcp): route MCP and OAuth paths in the k8s and AWS examples

/mcp is only served by the ASGI app, so the examples sent it to a 404.

* fix(mcp): refuse to show the consent form inside a frame

Logging in inside a frame reaches the consent page by client-side navigation, which skips the frame headers.

* fix(mcp): always issue OAuth refresh tokens

Users stay signed in until they disconnect or the app goes unused for 30 days,
whether or not the client asks for offline_access.

* fix(mcp): keep the endpoint scope when a refresh narrows scopes

A refresh asking for scope=mcp issued a token without endpoint:<id>, which
failed on /mcp and escaped revocation on Disconnect.

* fix(mcp): keep OAuth clients that are still in use after a disconnect

Cleanup deleted a disconnected client the next day while the app kept using
its client_id. Clients now go after 30 days without a token, and an unknown
client on authorize tells the user to re-add the server.

* fix(mcp): serve the SSE route with a trailing slash

Turning off redirect_slashes made /mcp/<key>/sse/ a 404 instead of a redirect.

* fix(mcp): drop the error code from the 401 when no token was sent

RFC 6750 section 3.1 says no error code when the request has no credentials.

* fix(mcp): delete grantless CIMD clients a day after creation

Any anonymous authorize re-fetch bumps a CIMD client's updated, so it can't
mark use. CIMD clients are fetched again on demand anyway.

* fix(mcp): mark the OAuth client as used after saving its tokens

Matches the cleanup's lock order, tokens before the application row.

* style(mcp): rewrap the OAuth validator docstring

* fix(mcp): describe offline_access as it now behaves

Refresh tokens are issued whether or not it is requested.

* feat(mcp): audit log MCP OAuth connect and disconnect

ADR 009 decision 6: connecting and disconnecting are recorded in the audit log.

* test(mcp): give the OAuth action tests a unique module name

test_actions.py clashed with other test modules of the same name and broke collection in CI.

* fix(mcp): let users disconnect their OAuth grants without endpoint permissions

Listing grants and using them only needs membership, so disconnecting must not need the MCP endpoint operations either.

* fix(mcp): require the mcp scope on OAuth tokens used at /mcp

A refresh asking only for offline_access issued a token without mcp that /mcp still accepted. Refreshes now keep mcp, and /mcp rejects tokens without it.

* fix(mcp): ignore the redirect URI's own query when checking for an issued code

A client registered with a redirect URI like https://app.example/cb?error=0 never got a code.

* fix(mcp): send the OAuth connect PostHog event only after consent commits

The consent transaction rolls back when no code is issued, and the event was already sent by then. The audit log entry stays in the transaction.

* fix(mcp): keep OAuth grants out of the key endpoint lookup

Callers had to remember to pass a key-only queryset; grants have their own lookup.

* fix(mcp): show a CIMD client's host in a neutral badge

Any host can publish a client metadata document, so a green check made lookalike hosts look trusted.

* fix(mcp): show the readable reason when the consent request is rejected

* style(mcp): tidy an import and an outdated comment

* fix(mcp): name every client on the consent page by its client name

Matches Settings, which shows the client name with the host as a badge. A nameless CIMD client falls back to the host that published its metadata.

* fix(mcp): show fatal authorize errors on the styled consent page

The authorize endpoint answered unknown clients and bad redirect URIs with a bare text 400.

* test(mcp): add an e2e spec for the OAuth connect and disconnect flow

Enables BASEROW_MCP_OAUTH_ENABLED on the e2e and CI backends so the spec runs.

* fix(mcp): send only an error code to the consent error page

Free text in the URL could be injected and came back double-encoded after login. The page now maps codes to its own text and shows errors without sign in.

* fix(mcp): keep a CIMD client's host in the consent title

Any host can publish metadata under any name, so the title reads "Connect {name} from {host}". The neutral badge only repeated the host and is dropped.

* test(mcp): check the MCP status before parsing the body in the e2e spec

* test(mcp): await the login redirect in the consent middleware spec

The unawaited navigation ran the settings middleware after the request mock was restored, making a real request.

* fix(mcp): address final review findings on the OAuth flow

Authorize errors no longer redirect to client-registered URIs, CIMD redirect URIs follow the DCR rule, consent is rate-limited per user, and deleting a grant any way revokes its tokens.

* fix(mcp): accept ChatGPT, Claude and VS Code CIMD documents

django-oauth-toolkit 3.4.1 ignores token_endpoint_auth_methods_supported and refuses extra grant types; fixed upstream in #1856 and #1858 but not released.

* fix(mcp): update ChatGPT connect steps to the Plugins page

* feat(mcp): split MCP server settings into OAuth and Endpoint tabs

* fix(mcp): route /mcp without a trailing slash on K8s

The OAuth resource is /mcp, which the /mcp/ prefix missed.

* fix(mcp): give the CIMD document download one deadline

The library's timeout applies per read, so a slow-drip document held a worker.

* fix(mcp): bound anonymous client registrations

Caps the body at 16 KB and redirect URIs at 10; unsupported URIs are dropped instead of failing the registration.

* fix(mcp): rate-limit token revocation, count only failed token calls

Revocation loads the client, which can fetch and store a CIMD client.

* fix(mcp): preselect the granted workspace when reconnecting

It picked the first workspace with databases, so one Allow could move the app with every tool ticked.

* fix(mcp): carry the consent request in the path so SSO keeps it

SSO sign-in only keeps the return path. The frame headers move to the page so every spelling of the path gets them.

* fix(mcp): canonicalize the resource URL, scrub OAuth fields from Sentry

SDK clients send the resource normalized; the Sentry denylist only matches exact keys.

* fix(mcp): lock the membership while granting an OAuth client

A member removed during consent could otherwise keep the new grant.

* chore(mcp): count databases through the registry, add missing translations

* test(mcp): check the OAuth routes follow the flag

* test(e2e): skip the MCP OAuth test only when the route is missing

 Any other status hid a broken metadata endpoint.

* fix(mcp): explain rejected CIMD clients and load failures on the consent page

 Both showed the invalid request message, which suggested re-adding the server.

* fix(mcp): answer a refresh that lost a race with invalid_grant

With hashed storage the library returned a blank token and the token view raised a 500.

* feat(mcp): mark connected apps whose sign-in has ended

Grants stay listed after their refresh token expires, but the app has to sign in again.

* docs(mcp): add a self-hosting note for MCP OAuth sign-in

Covers the public URL, routing, outbound HTTPS for CIMD, the client IP the limits use and what turning the flag off does.

* fix(mcp): sign OAuth apps out on password change or reset

Browser sessions already end then; grants stay so apps show as signed out.

* feat(mcp): tick only the read tools on a first connection

Changing data becomes opt-in; reconnecting still starts from the existing grant.

* fix(helm): keep the MCP consent page on the frontend on a shared domain

Caddy ingress turns Prefix /mcp into /mcp*, which also caught /mcp-authorize.
2026-10-15 08:40:09 +00:00
Bram 5aa4cd9ed3 Update pydantic AI to version 2.55.0 (#6349) 2026-10-12 10:27:08 +02:00
dependabot[bot]andDavide Silvestri bc35440a39 chore(deps): bump drf-spectacular from 0.29.0 to 0.30.0 in /backend (#6276)
* chore(deps): bump drf-spectacular from 0.29.0 to 0.30.0 in /backend

Bumps [drf-spectacular](https://github.com/tfranzel/drf-spectacular) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/tfranzel/drf-spectacular/releases)
- [Changelog](https://github.com/tfranzel/drf-spectacular/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tfranzel/drf-spectacular/compare/0.29.0...0.30.0)

---
updated-dependencies:
- dependency-name: drf-spectacular
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(api): keep pagination next/previous nullable in the OpenAPI schema

drf-spectacular 0.30 documents allow_blank URL fields as a oneOf of the URL and an empty string, and OpenAPI 3.0 ignores nullable next to oneOf, so the null returned on every last page no longer validated. The example pagination serializer is only used for the docs and next/previous are never blank, so drop allow_blank.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com>
2026-10-02 12:17:08 +02:00
dependabot[bot] a02aaec8ae chore(deps): bump boto3 from 1.42.63 to 1.43.104 in /backend (#6277)
Bumps [boto3](https://github.com/boto/boto3) from 1.42.63 to 1.43.104.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.42.63...1.43.104)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.103
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 09:18:58 +00:00
dependabot[bot] e1fe9b0aad chore(deps-dev): bump pytest-asyncio from 1.3.0 to 1.4.0 in /backend (#6275)
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 10:39:02 +02:00
dependabot[bot] 809970347b chore(deps-dev): bump snoop from 0.6.0 to 0.6.1 in /backend (#6278)
Bumps [snoop](https://github.com/alexmojaki/snoop) from 0.6.0 to 0.6.1.
- [Commits](https://github.com/alexmojaki/snoop/compare/v0.6.0...v0.6.1)

---
updated-dependencies:
- dependency-name: snoop
  dependency-version: 0.6.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 10:38:24 +02:00
dependabot[bot] 422ec2681d chore(deps): bump tqdm from 4.67.1 to 4.70.1 in /backend (#6279)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.67.1 to 4.70.1.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.67.1...v4.70.1)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-version: 4.70.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-02 10:37:54 +02:00
Davide Silvestri 3f1de6e74d chore(deps): upgrade pysaml2 to 7.5.5 and drop the baserow fork (#6229)
Upstream pysaml2 7.5.5 ships IdentityPython/pysaml2#1021, the fix we
cherry-picked into baserow/pysaml2 in #5663 to unblock the
CVE-2026-26007 cryptography upgrade. Install it from PyPI again.

The only code difference from the fork is a refactor of
OpenSSLWrapper.verify in saml2/cert.py, reached only through
verify_ssl_cert or generate_cert_info, which Baserow never sets.

git is removed from the Dockerfile builder-prod-base and dev stages: it
was only needed for uv to fetch the git-sourced fork.
2026-10-01 09:54:08 +02:00
dependabot[bot] 4a86741e53 chore(deps): bump django from 5.2.16 to 5.2.17 in /backend (#6239)
Bumps [django](https://github.com/django/django) from 5.2.16 to 5.2.17.
- [Commits](https://github.com/django/django/compare/5.2.16...5.2.17)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 5.2.17
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 09:46:45 +02:00
Davide Silvestri 7d94a86406 chore(deps): upgrade pydantic-ai to 2.50.0 (#6173)
* chore(deps): upgrade pydantic-ai to 2.50.0

- Bump pydantic-ai-slim 2.28.0 -> 2.50.0 and
  openinference-instrumentation-pydantic-ai 0.1.20 -> 0.1.27; the lock
  also moves anthropic to 1.8.0, openai to 3.19.2, google-genai to 2.25.0.
- Unwrap SourcedInstruction entries in the eval prompt override.
- Show the error message, not the model response dump, for
  UnexpectedModelBehavior errors.
- Disable the pydantic-ai first-run Logfire banner.
- Stop in-flight tools when an eval case times out.

* fix: address AI dependency upgrade feedback
2026-09-25 15:35:33 +00:00
dependabot[bot] 721a2f8b37 chore(deps): bump uvicorn[standard] from 0.40.0 to 0.52.4 in /backend (#5988)
Bumps [uvicorn[standard]](https://github.com/Kludex/uvicorn) from 0.40.0 to 0.52.4.
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md)
- [Commits](https://github.com/Kludex/uvicorn/compare/0.40.0...0.52.4)

---
updated-dependencies:
- dependency-name: uvicorn[standard]
  dependency-version: 0.52.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-18 09:21:40 +02:00
dependabot[bot]andDavide Silvestri 2a99b60afc chore(deps-dev): bump pytest from 9.0.3 to 9.1.1 in /backend (#5987)
* chore(deps-dev): bump pytest from 9.0.3 to 9.1.1 in /backend

Bumps [pytest](https://github.com/pytest-dev/pytest) from 9.0.3 to 9.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/9.0.3...9.1.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.1.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* test: drop trailing comma from single-name parametrize argnames

pytest 9.1 fixed `parametrize` not unpacking values when argnames is a
string with a trailing comma, so `"value,"` now means `("value",)` and
pytest tries to unpack each value into one name. These four files carried
the comma by accident, which broke collection.

The two multi-name cases (`"table_row_id,db_row_id,"`) already pass
tuples and behave the same either way, so they are left alone.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com>
2026-09-16 16:21:53 +00:00
dependabot[bot]andDavide Silvestri 51c025d2f8 chore(deps-dev): bump ruff from 0.14.13 to 0.16.7 in /backend (#5989)
* chore(deps-dev): bump ruff from 0.14.13 to 0.16.7 in /backend

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.13 to 0.16.7.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.14.13...0.16.7)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* apply formatting

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Davide Silvestri <silvestri.eng@gmail.com>
2026-09-16 15:58:46 +00:00
dependabot[bot] fbf1b5a22b chore(deps): bump requests-futures from 1.0.2 to 1.1.0 in /backend (#5985)
Bumps [requests-futures](https://github.com/ross/requests-futures) from 1.0.2 to 1.1.0.
- [Changelog](https://github.com/ross/requests-futures/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ross/requests-futures/compare/v1.0.2...v1.1.0)

---
updated-dependencies:
- dependency-name: requests-futures
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 09:47:14 +02:00
dependabot[bot] 2e5f16899b chore(deps-dev): bump pre-commit from 4.6.0 to 4.6.2 in /backend (#5986)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.6.0 to 4.6.2.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.6.0...v4.6.2)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-version: 4.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-15 09:45:16 +02:00
13d23fa3bc chore(deps): bump djangorestframework from 3.16.1 to 3.17.2 in /backend (#5999)
* chore(deps): bump djangorestframework from 3.16.1 to 3.17.2 in /backend

Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.16.1 to 3.17.2.
- [Release notes](https://github.com/encode/django-rest-framework/releases)
- [Commits](https://github.com/encode/django-rest-framework/compare/3.16.1...3.17.2)

---
updated-dependencies:
- dependency-name: djangorestframework
  dependency-version: 3.17.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>


---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
2026-09-11 12:03:04 +02:00
Davide Silvestri 0bb39e36c6 [1/4] feat: AI assistant eval platform on self-hosted Phoenix (#5958)
* feat: add Phoenix LLM tracing service to the dev stack (ai profile)

* chore(deps): add openinference pydantic-ai instrumentation (dev)

* feat: export assistant traces to Phoenix when BASEROW_ASSISTANT_PHOENIX_URL is set

* fix: harden Phoenix tracing setup after review

* feat: Phoenix postgres storage, ai-evals profile and auth support

* docs: ADR 007 and assistant tracing/evals guides

* feat: assistant eval platform core (types, registries, scenarios)

* feat: eval harness with shared assistant factory

* feat: phoenix dataset sync for assistant evals

* feat: assistant eval experiments via phoenix client + CLI

* feat: migrate core, database and docs evals to the platform

Ports the 42 kuma-core/kuma-database/kuma-docs pytest evals into
declarative EvalCase/EvalScenario registrations, plus structure-level
tests asserting dataset counts, ids, and scenario wiring.

* feat: migrate builder and automation evals to the platform

Ports the 12 builder + 2 proactive + 2 user-source cases into
evals/datasets/builder.py (kuma-builder, 16 cases) and the 7 automation
cases into evals/datasets/automation.py (kuma-automation), following the
Task 5 pattern established in core.py/database.py. Extends
eval_platform/test_datasets.py with counts, id lists, a mode-per-case
assertion, and pre_state snapshot checks for the two cases that need one.

* fix: link traces and final counts for single-case eval runs

* fix: root spans for single-case eval runs use the assistant tracer provider

* feat: assistant eval runner service with run page

Adds the assistant_eval_runner management command (migrate -> instrumentation
-> dataset sync -> single worker thread -> wsgiref server) and its
runner.py module: a stdlib WSGI app serving a plain server-rendered page
(GET /, POST /run, GET /healthz) backed by a bounded in-memory run history
and one background worker draining a queue.Queue via run.run_experiment_for.

Wires the assistant-eval-runner compose service (ai-evals profile, own
baserow_evals DB), renames phoenix-db-init to ai-evals-db-init and extends
it to also create baserow_evals, and adds BASEROW_EVAL_RUNNER_PORT to both
env example files and the dev docs.

* fix: eval runner integration fixes

assistant-eval-runner needs its own SECRET_KEY/DATABASE_*/REDIS_* env vars:
dev-overlay compose services don't inherit docker-compose.yml's
x-backend-variables anchor (that's file-scoped YAML), so the container was
starting without a Django SECRET_KEY and without a Redis password, crashing
on auth. Also links to finished experiments pointed at the container-internal
BASEROW_ASSISTANT_PHOENIX_URL (http://phoenix:6006), unreachable from the
developer's browser.

Adds BASEROW_ASSISTANT_PHOENIX_PUBLIC_URL (defaulting to
http://localhost:${BASEROW_PHOENIX_PORT:-6060}) and has runner.py build the
Phoenix link from it, deep-linking straight to the finished run's experiment
compare view when its dataset_id/experiment_id are known, falling back to
the datasets list otherwise.

* refactor: retire the pytest eval harness

All 65 eval cases now live in baserow_enterprise.assistant.evals.datasets;
delete the legacy pytest-based suite and its `eval` markers.

* docs: rewrite assistant evals guide for the Phoenix platform

* feat: docs judge, prompt sync, git stamping and UI-contributed eval examples

- answer_quality LLM-as-judge evaluator for kuma-docs (BASEROW_EVAL_JUDGE_MODEL)
- Kuma prompts versioned into Phoenix on sync; experiments stamped with
  prompt hashes, git branch/commit and judge model
- sync preserves UI-added dataset examples with prompt-match adoption;
  eval-export emits paste-ready docs.py snippets
- final-review fixes: skip-safe scoring, runner CSRF/bind hardening,
  doc corrections

* feat: eval runner UI round — tabs, fan-out, reference answers, 64-case docs dataset

- Runner page: dataset tabs with selection badges, per-dataset and global
  all/none, cross-dataset fan-out (one experiment per dataset), 5s
  auto-refresh of runs, persistent run history across restarts, per-dataset
  Phoenix links, in-page Help tab rendering the repo docs via /docs.json.
- Reference answers for kuma-docs: EvalCase.reference_answer, judge grades
  against it, sync preserves UI-curated ones, eval-export round-trips them.
- kuma-docs grown to 64 cases: reference answers for all, PostHog-mined
  frequent questions, and cannot-do guardrail cases.
- Gemini (google:gemini-3.6-flash) in the eval model list.

* feat: runnable UI examples, prompt overrides, eval baseline and results view

- UI-added Phoenix examples now execute: docs questions get the standard
  docs checks + judge; tool cases declare scenario/expected_tools/
  answer_contains in metadata (empty-workspace default scenario). They are
  tickable per dataset on the runner page and run in whole-dataset
  experiments too.
- Prompt overrides: run any experiment with a prompt's latest Phoenix
  version instead of the code constant (runner checkbox panel with soft
  per-tab ordering, or --override-prompt). Agent singletons keep their
  dynamic instructions; effective hashes + override list stamped on the
  experiment.
- Committed baseline snapshot (evals/baseline.json, 111 cases) with
  just b eval-baseline capture/import; the runner imports it on startup so
  every Phoenix instance gets a baseline experiment per dataset,
  idempotent by content hash and run count.
- Results tab: all datasets in one view for a named experiment, with
  baseline deltas and a case-weighted overall row, via Phoenix experiment
  annotation summaries.
- New evaluation guide (docs/testing/ai-assistant-eval-analysis.md) served
  in the Help tab; layout uses horizontal space better (single tab row,
  fluid case columns).

* feat: time and cost in eval results, frozen into the baseline snapshot

- Results tab gains time (sum of run latencies) and cost/token columns per
  dataset and summed overall, with lower-is-better baseline deltas.
- eval-baseline capture freezes each dataset's time/cost/token totals into
  baseline.json; import stamps them as metadata so imported baselines
  (which carry no traces to price) still show time and cost.
- Importing a new baseline supersedes the previously imported one instead
  of accumulating duplicates.
- Changelog entry for the eval platform.

* fix: OpenInference attributes on subset-run task root spans

Bare wrapper spans rendered as kind 'unknown' with Unset status and empty
input/output in Phoenix. The Task root span now carries the CHAIN kind, the
case prompt as input, the run result as JSON output, and an explicit OK
status.

* polish; minor fixes

* fix: address eval platform review feedback

Apply production model settings and retries, isolate automation checks, and fix runner configuration, links, and result status.

Defer GPT-5.6 compatibility and baseline comparisons to #6034.

* fix: preserve model profiles in rebased eval harness

Use an explicit model profile for evals and share concrete models with tools. Manage model clients through the existing lifecycle helper and preserve regression coverage from the retired harness.

* fix: harden eval persistence and Phoenix access
2026-09-09 17:06:07 +02:00
Davide Silvestri 1fa388b83f chore(deps): upgrade pydantic-ai to V2 (2.28.0) (#5896)
* chore(deps): upgrade pydantic-ai to V2 (2.28.0)

Upgrades pydantic-ai-slim from 1.102.0 to 2.28.0. No user-visible behaviour
change: where V2 moved a default, the V1 behaviour is pinned rather than
silently adopted.

Production changes are five files:

  assistant/assistant.py            async for -> async with ... as events:
                                    (run_stream_events is a context manager)
  assistant/retrying_model.py       public RunContext; state/metadata/
                                    close_stream proxy delegation; Vertex AI
                                    via GoogleCloudProvider
  core/generative_ai/registries.py  output_retries=3 -> retries={"output": 3}
  assistant/model_profiles.py       normalise google-gla/google-vertex prefixes
  assistant/tools/database/agents.py  pin end_strategy="early"

The rest of the diff is test hardening, and it is the point of the change.
The assistant suite mocked pydantic-ai's streaming path instead of running it,
which hid four real breaks — one of them user-facing:

  - Agent(output_retries=3) raises TypeError on V2, breaking the premium
    generate_ai_formula endpoint. Invisible because the test patches prompt()
    wholesale and the shared fixture refuses structured output.
  - run_stream_events became a context manager; the bare async generator mock
    kept working regardless.
  - end_strategy flipped early -> graceful, letting a previously-skipped tool
    call execute and hard-fail formula generation.
  - GoogleProvider(vertexai=True) was removed entirely.

The doubles now wrap real pydantic-ai types, one test drives the genuine
streaming path, one proves cancellation unwinds through the context manager,
and test_pydantic_ai_contract.py pins the API surface (public and private) so
the next upgrade fails at import rather than mid-run in production.

Verified: assistant + core/generative_ai 343 passed, 66 skipped; full backend
suite 11962 passed, 360 skipped, 1 failed. That failure
(test_view_empty_count_aggregation_for_interesting_table, BaserowFormulaButtonType
missing empty_query) is pre-existing and unrelated — the identical failure occurs
at base commit 321c00adc, and this branch changes nothing under
backend/src/baserow/contrib/ or premium/.

Note for future upgrades: _ErrorRecoveringStream in retrying_model.py
re-exposes each StreamedResponse class attribute as a delegating property,
because class attributes shadow __getattr__. V2 added state and metadata. That
list must be revisited on every pydantic-ai upgrade — the failure mode is a
wrong value, not an error.

* fix: give Google models a usable HTTP deadline

A bare httpx.AsyncClient defaults to a 5s timeout, and GoogleProvider
forwards that to the Gemini API as an explicit deadline, which the API
rejects because its minimum is 10s. Every Google model was therefore
unusable. Build the client with pydantic-ai's own
create_async_http_client factory instead (600s read, 5s connect).

Also document GOOGLE_API_KEY alongside the other assistant provider
keys, pass it through docker-compose, and bridge it in the eval
conftest so evals can target Gemini.

* fix: resolve GOOGLE_API_KEY explicitly for Google providers

_PROVIDER_ENV had no google entry, so _resolve_credentials fell through
to the deprecated UDSPY_LM_API_KEY and handed whatever it held (e.g. a
Groq key) to Google. It only worked because pydantic-ai reads
GOOGLE_API_KEY itself when no key is passed. Map all four google
prefixes explicitly, matching the other providers' precedence.

Also raise the title-generation timeout from 10s to 15s: 10s is exactly
Gemini's minimum allowed deadline, leaving no margin.
2026-08-20 12:20:40 +02:00
dependabot[bot] 455d77edf6 chore(deps): bump genson from 1.3.0 to 1.4.0 in /backend (#5820)
Bumps [genson](https://github.com/wolverdude/genson) from 1.3.0 to 1.4.0.
- [Changelog](https://github.com/wolverdude/GenSON/blob/master/HISTORY.rst)
- [Commits](https://github.com/wolverdude/genson/compare/v1.3.0...v1.4.0)

---
updated-dependencies:
- dependency-name: genson
  dependency-version: 1.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-13 11:54:52 +02:00
dependabot[bot] 89d3fdf883 chore(deps): bump django from 5.2.15 to 5.2.16 in /backend (#5869)
Bumps [django](https://github.com/django/django) from 5.2.15 to 5.2.16.
- [Commits](https://github.com/django/django/compare/5.2.15...5.2.16)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 5.2.16
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-12 07:34:57 +00:00
Davide Silvestri 463fb662c0 chore (deps): update pillow and soupsieve in the backend; axios in the frontend (#5761) 2026-07-21 15:56:11 +02:00
Davide Silvestri eda35b0efe chore(deps): resolve backend dependency CVEs (pysaml2 fork, cryptography, twisted, pydantic-ai) (#5663)
* chore(deps): switch pysaml2 to baserow fork to fix cryptography and pyopenssl CVEs

The baserow/pysaml2 fork is v7.5.4 with IdentityPython/pysaml2#1021
cherry-picked, lifting the pyopenssl<24.3.0 cap that blocked the
cryptography upgrade. Pinned to the immutable merge commit
(tagged v7.5.4+deps-upgrade) via tool.uv.sources.

Upgrades cryptography 43.0.3 -> 49.0.0 and pyopenssl 24.2.1 -> 26.3.0,
resolving 3 high and 3 low Dependabot alerts including CVE-2026-26007.

git is added to the Dockerfile builder-prod-base and dev stages because
uv requires the git CLI to fetch git-sourced dependencies.

* chore(deps): upgrade twisted, django, daphne, pydantic-ai and pydantic-settings to fix remaining CVEs

- twisted 25.5.0 -> 26.4.0: DNS compression pointer DoS (high)
- pydantic-ai-slim 1.77.0 -> 1.102.0: two SSRF blocklist bypasses (medium);
  requires boto3 >= 1.42.63
- pydantic-settings 2.12.0 -> 2.14.2: secrets_dir symlink traversal (medium)
- django 5.2.14 -> 5.2.15 and daphne 4.2.1 -> 4.2.2 security patches

pydantic-ai 1.102 turned StreamedResponse._parts_manager into a
cached_property and added _finished/_cancelled class-default fields.
These shadow __getattr__ on the assistant's _ErrorRecoveringStream
proxy, so get() would build the response from an empty proxy-local
parts manager. The shadowed attributes are now property-delegated to
the inner stream, with a regression test asserting get() sees the
streamed parts.

* chore: add changelog entry for security dependency upgrades
2026-07-07 13:01:47 +02:00
Davide Silvestri 4a09d03d21 chore: dependency updates (#5656) 2026-07-06 12:00:11 +02:00
dependabot[bot] d8a5210aff chore(deps): bump regex from 2025.11.3 to 2026.6.28 in /backend (#5636)
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2025.11.3 to 2026.6.28.
- [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt)
- [Commits](https://github.com/mrabarnett/mrab-regex/compare/2025.11.3...2026.6.28)

---
updated-dependencies:
- dependency-name: regex
  dependency-version: 2026.6.28
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-02 11:37:56 +00:00
dependabot[bot] 5de55a9647 chore(deps): bump django-celery-email-reboot in /backend (#5638)
Bumps [django-celery-email-reboot](https://github.com/Panevo/django-celery-email) from 4.2.0 to 4.2.1.
- [Commits](https://github.com/Panevo/django-celery-email/commits)

---
updated-dependencies:
- dependency-name: django-celery-email-reboot
  dependency-version: 4.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-02 13:32:46 +02:00
dependabot[bot] cff93c8f60 chore(deps): bump tzdata from 2025.3 to 2026.2 in /backend (#5635)
Bumps [tzdata](https://github.com/python/tzdata) from 2025.3 to 2026.2.
- [Release notes](https://github.com/python/tzdata/releases)
- [Changelog](https://github.com/python/tzdata/blob/master/NEWS.md)
- [Commits](https://github.com/python/tzdata/compare/2025.3...2026.2)

---
updated-dependencies:
- dependency-name: tzdata
  dependency-version: '2026.2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-02 13:29:14 +02:00
dependabot[bot] da7d90b59a chore(deps): bump mcp from 1.27.2 to 1.28.1 in /backend (#5637)
Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.27.2 to 1.28.1.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](https://github.com/modelcontextprotocol/python-sdk/compare/v1.27.2...v1.28.1)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 1.28.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-02 13:27:09 +02:00
dependabot[bot] 8a501f4cc6 chore(deps): bump requests from 2.33.0 to 2.34.2 in /backend (#5634)
Bumps [requests](https://github.com/psf/requests) from 2.33.0 to 2.34.2.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.33.0...v2.34.2)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.34.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-02 13:23:13 +02:00
Davide Silvestri 8d7c01119f chore(deps): upgrade backend dependencies (#5532) 2026-06-17 10:04:40 +02:00
Jérémie Pardou 9c395bfd9c feat: add XLS reader service (#5502)
* Add XLS[x] reader

* Solve workflow action ordering and remove translations
2026-06-15 07:37:26 +00:00
dependabot[bot] 498344a48c chore(deps-dev): bump django-stubs-ext from 5.2.9 to 6.0.5 in /backend (#5452)
Bumps [django-stubs-ext](https://github.com/typeddjango/django-stubs) from 5.2.9 to 6.0.5.
- [Release notes](https://github.com/typeddjango/django-stubs/releases)
- [Commits](https://github.com/typeddjango/django-stubs/compare/5.2.9...6.0.5)

---
updated-dependencies:
- dependency-name: django-stubs-ext
  dependency-version: 6.0.5
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 17:14:50 +02:00
alamin-br 40b8371c68 chore: improve pre commit performance (#5406)
* chore: improve pre-commit hook trigger and make sure only applies to
staged/unstaged changes.

* docs: update code-quality doc

* docs: improve doc
2026-05-21 15:05:32 +00:00