* fix: rotate refresh tokens and revoke the session when an old one is reused
A refresh token could be replayed to get new access tokens until it expired,
so a leaked token gave access for up to seven days.
* test: mint the refresh token inside the frozen time
The token was minted at the real time, so refreshing at an earlier frozen time failed once the clock passed it.
* fix: document the rotated refresh token in the token refresh response
The schema checked simplejwt's own rotation setting, which is off, so the API docs left out refresh_token.
* fix: keep the user session valid across refresh token rotation
The previous release crashed on the new cookie payload, and the cookie stopped
working as soon as its refresh token rotated.
* test: sign out through the API in the secure file serve test
Signing out revokes the session, which is what the user session cookie checks now.
* feat: retire AI provider flag and add rollout audit
* test: remove obsolete AI provider flag setup and docs
* chore: clean up AI provider configuration and tests
* feat: deprecate legacy AI provider environment configuration
* docs: explain AI provider migration sizing and timing
* docs: mark AI provider migration audit for removal
* docs: explain AI provider migration audit usage
* fix: log AI provider env deprecations after logging setup
log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.
Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.
* fix: reuse environment AI settings in generation workers
* feat: import legacy AI provider settings on upgrade
Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.
Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.
Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.
migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.
* chore: remove the temporary AI provider audit command
audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.
* docs: reduce AI provider docs to lasting behaviour
The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.
Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.
* docs: shorten the AI provider changelog entries
Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.
* docs: clarify where imported AI credentials are stored
The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.
* docs: explain the AI provider upgrade and where to configure providers
State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.
* fix: renumber the legacy AI provider import after 0121_agent
Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.
* feat: remove the legacy workspace generative AI settings endpoint
GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.
* fix: stop instance AI provider changes from fanning out per workspace
An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.
* fix: keep inherited Kuma when a workspace switches off the instance provider
The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.
* fix: skip malformed Ollama URLs during AI provider migration
* fix: preserve skipped legacy AI provider connections
* test: cover independent legacy AI workspace connections
* fix: skip malformed legacy AI provider settings
* fix: move legacy AI import after current core migrations
The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
* feat: add workspace AI providers for AI fields
* fix: address workspace AI provider review feedback
* fix: address remaining AI provider review feedback
* fix: resolve core migration conflict
* fix: stabilize premium AI provider tests
* address feedback for local imports
* feat: add instance AI provider management
* fix: simplify AI provider testing
* fix: remove extra model list spacing
* fix: show AI provider form errors inline
* fix: use icons for AI provider row actions
* fix: place model errors before help text
* chore: polish code
* fix: address feedback
* fix: address remaining frontend CI failures
* fix: Impersonating a user results in a 403 error page
* chore: add changelong entry for impersonate bug fix
* chore(changelog): fix typo in file name
* fix: change approach to fix impersonate user issue
* chore (deps): upgrade nuxt to 3.21.2
* chore (deps): upgrade prttier, eslint and vitest
* fix(frontend): move dashboard redirect to middleware for Nuxt 3.21 compat
The dashboard page had a top-level `await navigateTo()` in `<script
setup>` that triggered chained navigation during Suspense. Nuxt 3.21's
"force remount suspense when navigating after pending" change caused
this to deadlock — the URL would update but the page never re-rendered.
Move the workspace redirect logic into a dedicated `dashboardRedirect`
middleware that runs before the component setup, avoiding the issue.
* Address feedback
* Update web-frontend/modules/core/middleware/dashboardRedirect.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix sort in data source
* Fix bug in preview authentication
* chore: Remove `applicationContext` from table page metadata.
* chore: Remove `applicationContext: true` from `definePageMeta` in automation workflow and dashboard pages.
---------
Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
* Fix preview error with page parameter
* Fix OIDC form support
* Fix input border color
* Fix some builder inputs
* Clear some TODO MIGs
* Clean comments
* Update snapshot
* Fix page title
* Fix reactivity issue
* refactor: replace individual RadioButtons with a RadioGroup component for choice option type selection.
* Fix domain
---------
Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
* refactor: Update URL validation to use runtime config and clean up feature flag plugin code.
* refactor: Migrate module environment variable handling to Nuxt runtime config, utilizing `env-remap.mjs` for backward compatibility.
* Add debug page to show all runtime variables
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* Refactor store registration to use SSR methods across multiple plugins for improved state management
* fix database file field drag and drop
* fix storybook dependencies warning.
* refactor: Replace `useAsyncData` with a direct `watch` and `renderMarkdown` function for markdown content.
* fix workspace hydratation warning
* replace direct `role.isBillable` access with `roleIsBillable` computed property
* fix auth settings form
* fix alert slot usage
* please linter
* please prettier
* fix SSR rendering
* refactor: simplify relay state URL generation by directly passing the user source object.
* refactor: Replace `registerModuleSSR` with `registerModuleNuxtSafe` for Vuex module registration across all plugins.
* please linter
* fix: add retry logic for Firefox NS_BINDING_ABORTED navigation errors in E2E tests
* test: reload page and assert link visibility using getByRole after setting parameters.
* refactor: simplify `goto` navigation by removing retry logic and adding a fixed delay.
* refactor: trigger initial markdown rendering via immediate watcher option
* update snapshots