11 Commits
Author SHA1 Message Date
Peter EvansandJeremie Pardou e4b9a2615b feat: add a shared base for integrations that connect an account through OAuth (#6810)
* feat: add a shared base for integrations that connect an account through OAuth

* fix: keep OAuth account scopes current and bound provider answers

* fix: share parent registration between form APIs

* fix: preserve refreshed OAuth tokens when actions fail

* refactor: use absolute imports for parent OAuth modules

* refactor: decouple OAuth cleanup from application publication models

* refactor: use common import hooks for OAuth connections

* fix: keep OAuth account integrations out of the workspace

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-30 08:55:52 +00:00
Jérémie Pardou 93eeb19dcb feat: run Local Baserow integrations as Agents (#6064)
* Run Local Baserow integrations as Agents

* fix tests

* feat(core): add reusable subject options endpoint

* Add beta badge

* fix(audit-log): require actor type with actor id

* fix(audit-log): avoid duplicate actor export columns

* fix(audit-log): guard deprecated actor fields

* Restore the feature flag

* fix tab alignement

* fix(integrations): reject trashed authorized agents

* Fix migration conflict

* fix(audit-log): assert structured validation error

* fix(database): support agent row deletion trash entries

* fix(database): support agent row notifications

* fix(core): enforce subject option permissions

* chore: fix formatting after rebase

* fix(core): include agents in member totals

* fix(database): batch row history actor migration

* fix(integrations): handle trashed authorized agents

* fix(core): remove untranslated subject labels

* chore: move nodes around

* test: mock integration registry in AI agent service tests

* fix: resolve database migration conflict

* Add changelog entry

* feat: use typed subjects for local Baserow integrations

* fix: make audit actor migration retry-safe

* fix: retain historical audit actors

* Please linting

* fix: use canonical local integration subjects

* fix: order listed workspaces

* fix: validate current user integration authorization

* fix: preserve integration authorization on update

* docs: clarify migration deployment compatibility

* fix: paginate local baserow agent selection

* fix: validate selectable subject options

* fix: preserve integration authorization on update

* fix: show saved integration user in subject dropdown

* fix(enterprise): protect team subject options

* fix(builder): redispatch data sources for trashed agents

* fix(database): split row history actor backfill

* fix(enterprise): require audit log actor type

* fix(enterprise): use audit log actor options

* fix(core): prevent blank agent names

* fix(integrations): resolve migration conflict

* fix(integrations): pass SMTP preparation context

* docs: clarify migration rollout guidance

* fix: handle trashed integration subjects

* fix: reuse local integration authorization column

* fix: allow unconfigured local integrations

* fix: only update changed integration values

* fix: cache local integration subjects

* fix: sort field permission subjects by name

* fix: include historical audit log actors

* fix: center grow tab labels

* chore: remove unused AI providers flag

* fix: support agent file uploads

* Please linter

* fix: initialize integration edit values

* fix: preserve integration authorization updates

* fix: bound audit log actor pagination

* fix: support legacy local integration fixtures
2026-10-19 10:38:57 +02:00
alamin-br 5275ede481 fix: make SMTP and Slack integration credentials write-only (#6072)
* fix: make integration credentials write-only in the API

The SMTP password and Slack bot token were returned in plain text by the
integration API and broadcast to every collaborator over the websocket.

* fix: record integration config changes in the undo log

The exclude list used sensitive_fields, which for SMTP covers every field,
so undoing an SMTP integration update restored nothing.

* fix: require the SMTP password when the connection target changes

Keeping the stored password while changing host, port or use_tls let a
user redirect it to a server of their choosing, or downgrade the
connection so it crossed the wire in the clear.

* fix: refresh integration state from the update response

The has_password and has_token flags are derived server side and nothing
else refreshes them for the user who made the change.

* feat: keep the saved SMTP password when it is not retyped

The API no longer returns the password, so the form must distinguish an
untouched field from a deliberate clear.

* feat: keep the saved Slack bot token when it is not retyped

Also mask the input, which rendered a bearer credential in plain text.

* feat: explain why an integration credential must be re-entered

* chore: add changelog entry for write-only integration secrets

* test: cover write-only integration secrets end to end

Unit tests on either side cannot see the seam between the form omitting an
untouched credential and the backend reading an omitted one as keep.

* fix: correct Slack integration copy and defaults for write-only tokens

The summary read the token itself, so a configured bot showed as not
configured, and the create warning told users the token could be read
back through the API.

* fix: keep every sensitive field out of the integration action log

Narrowing the exclude list put the SMTP host into a replayable log while
the credential stayed out, so a recorded target change could be replayed
onto a password supplied later by someone else. It also wrote the AI
integration's provider API keys into the action and audit logs.

* fix: keep integration secrets required when there is nothing to keep

Making every secret optional so an update need not retype it also made the
Slack token optional on create, where no stored value can be kept.

* fix: never use the instance SMTP account for an integration

Django's SMTP backend replaces a None username or password with the instance's own.

* fix: read has_token when checking a Slack bot in button field actions

* fix: list writable credentials in the integration request schemas

Also keep the blank error code for an empty token on create.

* docs: correct integration secret comments and changelog

* style: format button field action list spec

* fix: validate integration updates as partial

Keeps secrets required on create so the schema matches the server, and
drops the None stripping and view-level secret check it made redundant.

* docs: cross-reference the two secret_field_dependencies

* docs: describe the write-only contract of integration secrets

The copy stops a base serializer's extra_kwargs leaking into the type's
shared dict, which made name optional on the create serializer.

* docs: move integration secret reasoning into docstrings

* fix: name the credential generically in the retype message

* test: select the SMTP password input by type

* test: expect the credential wording in the retype e2e

* fix: document integration updates as partial

The update validates with partial=True, but its per-type schema components
still listed token and host as required.

* fix: let undo restore non-credential SMTP settings

Only secrets and the targets they protect stay out of the action log, so an
SMTP username change can be undone. Types without secrets still exclude every
sensitive field.

* docs: point sensitive_fields readers to secret_fields

sensitive_fields does not hide a field from API responses, so new
integration credentials need secret_fields too.
2026-09-14 16:07:05 +02:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Jonathan Adeline df738083a6 FormGroup FormInput FormTextarea refactoring 2024-07-05 09:35:08 +00:00
Jonathan Adeline 3dd3d98972 Buttons refactor 2024-04-15 11:29:17 +00:00
Jérémie Pardou 3c17df7fe0 Integrations are now loaded with the application 2024-03-15 15:39:50 +00:00
Jonathan Adeline fb710657a0 alerts & toasts refactor 2023-12-01 07:50:54 +00:00
Jonathan Adeline d924627e80 Restyle alert and toast components 2023-10-17 07:54:26 +00:00
Jonathan Adeline 4321aaea9a Replace icons 2023-09-28 13:39:41 +00:00
Jérémie Pardou 327e197522 Resolve "Allow to define external service integration" 2023-06-22 14:23:00 +00:00