1042 Commits
Author SHA1 Message Date
Matej BačoandClaude Fable 5 6b7c35ae15 chore(deps): raise the nanoid floor past GHSA-28wg-ghj8-5hjv and GHSA-2v37-7h3g-55p8
bun audit fails the CI build on three high nanoid advisories. All fixes are
within the existing semver ranges: the direct dependency and @melt-ui/svelte's
nested copy move to 5.1.16, and the 3.x copies under @ai-sdk/provider-utils
and postcss move to 3.3.17.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 16:44:21 +02:00
harsh mahajan a7c75f7be5 chore(deps): raise the js-yaml floor to 4.3.1
GHSA-5p4m-2wfm-xmqj (CVE-2026-59870) covers >=4.0.0 <4.3.1 and the fix was
not backported, so the existing >=4.3.0 override stopped clearing it and the
audit step in tests.yml now fails on every branch. It reaches us transitively
via eslint > @eslint/eslintrc > js-yaml.

Only the pinned floor and the resolved version move; integrity hashes are
untouched.
2026-08-07 11:14:28 +05:30
harsh mahajan 9bce5ac7bd chore(deps): raise the brace-expansion floor to 5.0.9
GHSA-rgw5-rvv9-x895 widened the affected range to <5.0.9, so the
existing >=5.0.8 override stopped clearing it and the audit step in
tests.yml now fails on every branch. Only the pinned floor and the
resolved version move; integrity hashes are untouched.
2026-08-04 15:10:51 +05:30
Chirag AggarwalandCursor 9559127a80 fix: pin postcss and brace-expansion to clear high-severity audit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-25 09:18:58 +05:30
harsh mahajan 62867648a7 fix: bump immutable override to clear high-severity audit
bun audit --audit-level high was failing on immutable (pulled in via
sass) for two DoS advisories (32-bit trie overflow, hash-collision
complexity). Bumped the override from ^5.1.5 to ^5.1.8.
2026-07-22 16:15:51 +05:30
harsh mahajan 7d3815284b fix: bump brace-expansion/js-yaml overrides to clear high-severity audit
bun audit --audit-level high was failing CI on transitive deps pulled
in by eslint and @sentry/vite-plugin. Existing brace-expansion
override didn't cover the patched range; added a js-yaml override.
2026-07-21 17:52:23 +05:30
BretRen e2e1c2b4d7 Enhance Security + Formatting 2026-07-19 23:05:09 -07:00
Matej Bačo 98b6451021 Upgrade SDK 2026-07-10 10:08:45 +02:00
Chirag Aggarwal cfaf3e7491 (feat): resume OAuth2 authorize requests through PAR handles across login
When an unauthenticated user lands on the consent screen, push the authorization request server-side (RFC 9126 PAR) and round-trip only a short request_uri handle through login, instead of the full consent URL. The full URL — scope, 2KB state, PKCE and authorization_details — previously travelled inside the GitHub OAuth state during 'Sign in with GitHub' and could exceed the provider's state size limits, breaking MCP client logins.

- createPAR goes through an anonymous no-credentials client: the server serves /par (like /token) with wildcard CORS and credentials disabled, which the browser rejects for the SDK's default credentialed fetch.
- The post-login request_uri path requires a session before dereferencing (the handle is single-use and consumed even by failing authorize calls) and sends only clientId + requestUri, as the server rejects any other param alongside the handle.
- After authorize returns a grant, the URL is rewritten to ?grant_id= with replaceState so reloads resume via getGrant instead of failing on the consumed handle.
- The consent effect is keyed on the query string via $derived: login calls invalidate(ACCOUNT) right after goto(redirect), which replaces the page.url object without changing the query — an effect tracking page.url directly re-runs, cancels the in-flight authorize and re-dereferences the consumed handle.
- Expired/consumed handles render a friendly retry message; PAR failures (e.g. servers without the endpoint) fall back to the legacy full-URL redirect.
- resource params are forwarded with getAll (RFC 8707 repeats the key).

SDK pinned to the preview build of appwrite-labs/cloud#4660 (@4b3ae78); re-pin after the cloud PR merges. Models.Locale was renamed to Models.CloudLocale in that spec, updated the seven usages.
2026-07-08 11:50:36 +05:30
Chirag Aggarwal 274efd0882 Update console SDK preview 2026-06-26 17:42:58 +05:30
Chirag Aggarwal 0c7e8a42b2 Fix nameserver verification SDK calls 2026-06-26 17:31:19 +05:30
Chirag Aggarwal 13416cd6a7 feat(oauth2): selectable console scopes + named per-project sections on consent
Refactor the consent screen for the per-project RAR model:

- Console access is now individually selectable: each account-tier scope
  (teams.*, projects.*, organization.keys.*, domains.*) renders as a checkbox
  with a real description; identity and account.admin stay read-only. The
  chosen subset is sent as a downscoped `scope` to oauth2.approve (RFC 6749
  §3.3) — bumps the @appwrite.io/console SDK to a build that exposes the param.
- Project access shows the actual project name + avatar + region per RAR entry
  (resolved client-side via the user's orgs → listProjects), so the user can
  tell which project each grant refers to. Unresolved ids fall back to the raw
  id. Multi-project entries list all names (truncated past five).
- Sync the RAR type to the renamed `appwrite_project` (was `appwrite_console`)
  and add splitSelectableScopes + project-name resolution helpers.

Authorize stays enabled whenever anything is granted (incl. identity-only).
2026-06-26 11:43:19 +05:30
Torsten Dittmann 476e195dc5 Merge remote-tracking branch 'origin/main' into fix-site-build-runtime-spec-limits
# Conflicts:
#	bun.lock
#	package.json
2026-06-23 16:28:26 +04:00
Chirag Aggarwal dae2b0b9eb (feat): group OAuth2 consent scopes into a collapsible section
The console OAuth2 consent screen rendered every requested scope as a flat
list. For broad requests (e.g. account.admin plus dozens of granular console
scopes) this produced an unusably long list.

Group granular scopes by resource and tuck them into a single collapsible
"App permissions" accordion, with read/write shown as compact tags. The
account.admin full-access row and the OIDC identity scopes stay as
always-visible rows above it.

Also bump @appwrite.io/console to 15.1.0, let the consent layout scroll a tall
card, and forward the resource indicator param through authorize.
2026-06-23 14:53:29 +05:30
Torsten Dittmann b5c68e8f26 fix: pass specification type to SDK 2026-06-22 20:10:28 +04:00
Torsten Dittmann 3911369d8f fix: use typed site spec eligibility 2026-06-22 19:31:55 +04:00
Torsten Dittmann 958e773232 fix: update console SDK for site specifications 2026-06-22 18:11:23 +04:00
Chirag Aggarwal cd81387798 fix: pin ws to ^8.21.0 to clear high-severity audit advisory
bun audit (CI gate) flagged ws 8.19.0 (transitive via jsdom) for
GHSA-96hv-2xvq-fx4p. Add an overrides pin to 8.21.0, matching the
repo's existing security-pin convention.
2026-06-18 12:47:03 +05:30
Chirag Aggarwal 45a95e5a71 feat: OAuth2 server consent & device verification screens
Adds the 'Sign in with Appwrite' identity-provider UI for the Console
OAuth2 server — the two user-facing screens behind the new server env
vars:

- _APP_CONSOLE_OAUTH2_AUTHORIZATION_URL -> /oauth2/consent
- _APP_CONSOLE_OAUTH2_VERIFICATION_URL  -> /oauth2/device

Consent (/oauth2/consent): authorization-code flow. Reads the grant,
shows the requesting app's branding and what authorizing grants, and
lets the user authorize or cancel. Approve redirects back to the
client with a code; cancel returns access_denied. The permission list
leads with full account access rather than the requested OIDC scopes,
since console-project tokens receive the full users (member) role
regardless of scopes.

Device (/oauth2/device): Device Authorization Grant (RFC 8628). When
opened via verification_uri_complete the code is rendered for the user
to confirm it matches their device (no silent auto-submit); otherwise
they type it in. After confirming, the same consent card is shown
(with device-specific copy), then a terminal success state.

SDK: bump @appwrite.io/console pin to 1a5604f which adds the Oauth2
grant service and Models.Oauth2Grant; wire Apps + Oauth2 into
sdk.forConsole.

Login: honor the redirect query param after email login (MFA-safe) so
OAuth2 flows resume after sign-in, aligning login with register.
2026-06-18 11:31:01 +05:30
harsh mahajan 18489917e4 replace ComboBox with BranchSelector in settings pages 2026-06-11 17:27:53 +05:30
harsh mahajan 2d517c74e1 feat: add password strength policy UI 2026-06-05 16:14:15 +05:30
harsh mahajan ca592d05a8 feat: gate project-specific roles on supportsProjectSpecificRoles plan flag
Update SDK to @appwrite.io/console@82069e6 which exposes the new flag.
Replace supportsOrganizationRoles with supportsProjectSpecificRoles in
createMember, edit, and members page — org roles and project-specific
roles are now independently gated by their own plan flags.
2026-06-04 14:03:18 +05:30
harsh mahajan 0a141d0baf chore: bump vitest to 4.x, fix date mocking in support store tests
Resolves critical advisory GHSA-5xrq-8626-4rwp. Updated store.test.ts
to use vi.useFakeTimers/vi.setSystemTime instead of the constructor spy
pattern that Vitest 4 no longer supports.
2026-06-02 11:06:15 +05:30
harsh mahajan 7ca457edef bun update 2026-06-02 11:02:24 +05:30
harsh mahajan 01273a1e81 chore: bump SDK to 666231b, fix enum renames, add OAuth2 server feature flag
- Update @appwrite.io/console to 666231b
- Scopes → ProjectKeyScopes in all function/overview files
- StatusCode.MovedPermanently301/Found302/TemporaryRedirect307/PermanentRedirect308
  → MovedPermanently/Found/TemporaryRedirect/PermanentRedirect
- Add oauth2Server feature flag to flags.ts
- Wire UpdateOAuth2Server card into project settings behind oauth2-server flag
- Type-cast missing oAuth2Server fields and updateOAuth2Server method until SDK ships them
- Add Submit.ProjectUpdateOAuth2Server analytics event
2026-06-01 16:55:09 +05:30
harsh mahajan 4107a7898b feat: add OAuth2 server settings card
- New updateOAuth2Server.svelte card in project settings
- Enable/disable toggle, authorization URL, scopes, per-client token
  durations with unit selectors, PKCE enforcement
- min={1} on all duration inputs, scopes sent directly to allow clearing
- Add ProjectUpdateOAuth2Server analytics event

Note: awaiting SDK with updateOAuth2Server method and correct enum names
2026-06-01 16:24:12 +05:30
harsh mahajan a38bbd5b9b feat: add OAuth2 server settings card and update SDK to 81a4f24
- New updateOAuth2Server.svelte card in project settings for configuring
  the project as an OAuth2 authorization server (enabled toggle, authorization
  URL, scopes, per-client-type token durations, PKCE enforcement)
- Add ProjectUpdateOAuth2Server analytics event
- Fix enum renames introduced by SDK bump: Status→ProjectStatus,
  StatusCode→RedirectStatusCode, Adapter→SiteAdapter,
  BuildRuntime→SiteBuildRuntime, Framework→SiteFramework,
  Runtime→FunctionRuntime, Scopes→ProjectKeyScopes, Addon→OrganizationAddon
2026-06-01 16:24:12 +05:30
harsh mahajan 5a528dda16 chore: ce bump 2026-06-01 12:37:33 +05:30
harsh mahajan 282ec7bb5a fix: migrate project API calls to org-scoped Organization SDK
Bumps @appwrite.io/console SDK to 35c3dea which introduces the Organization
class. All projects.list/create/update calls are now routed through
sdk.forConsole.organization(orgId) so requests carry the
X-Appwrite-Organization header required by the new API contract.
2026-05-27 17:09:10 +05:30
Torsten Dittmann 0105b87607 feat: support concurrent uploads 2026-05-20 16:42:58 +04:00
harsh mahajan e74f49f8be feat: add reset to default button on email templates 2026-05-19 18:57:47 +05:30
harsh mahajan cf9dba6da2 fix: override vulnerable devalue version 2026-05-18 11:32:54 +05:30
harsh mahajan e9f3292f81 update dependencies 2026-05-18 11:27:17 +05:30
harsh mahajan 4d06c9bb4c fix bun sdk dependency install 2026-05-12 18:50:06 +05:30
ArnabChatterjee20k e608d82ddc updated 2026-05-08 20:04:25 +05:30
Prem Palanisamy f5a113a501 feat: add backup policy migration support 2026-05-06 17:05:30 +01:00
Chirag Aggarwal 9791d314b5 feat: add rust function runtime template support 2026-05-03 20:22:29 +05:30
harsh mahajan 8a78402ea1 remove yammer and change names 2026-04-29 20:05:04 +05:30
harsh mahajan 5488f4734e feat: update console OAuth2 provider support 2026-04-29 19:03:06 +05:30
harsh mahajan d03555f338 fix: update console SDK project endpoint usage 2026-04-23 19:20:36 +05:30
Prem Palanisamy 85723e06f9 Reapply "Feat DocumentsDB"
This reverts commit 3cbfec7d44.
2026-04-23 08:59:50 +01:00
Harsh Mahajan 3cbfec7d44 Revert "Feat DocumentsDB" 2026-04-23 12:26:45 +05:30
Prem Palanisamy 596ec41c68 Merge branch 'feat-documentsdb' of https://github.com/appwrite/console into feat-documentsdb 2026-04-21 10:07:33 +01:00
Prem 711efc67f7 chore: remove unused codemirror lang deps and stale bugs.md 2026-04-21 10:07:11 +01:00
Prem dfdf507b84 Merge remote-tracking branch 'origin/feat-documentsdb' into feat-vectordb
# Conflicts:
#	bun.lock
#	package.json
#	src/routes/(console)/project-[region]-[project]/databases/database-[database]/(entity)/views/field/activity.svelte
#	src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/activity/+page.ts
2026-04-16 13:33:58 +01:00
Prem 2c65d66641 fix: use pkg.vc console SDK @6d0c948 2026-04-16 13:28:53 +01:00
Prem 9d55a661de Merge remote-tracking branch 'origin/main' into feat-documentsdb
# Conflicts:
#	bun.lock
#	package.json
#	src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/rows/editRelated.svelte
#	src/routes/(console)/project-[region]-[project]/settings/updateLabels.svelte
2026-04-16 09:03:51 +01:00
harsh mahajan 7d6c8c14de svelte audit fix 2026-04-13 12:34:46 +05:30
premtsd-code e4da580b35 Merge pull request #2960 from appwrite/feat-upload-progress
feat: add upload progress feedback
2026-04-09 13:22:34 +05:30
Matej Bačo 380bf73d10 Upgrade SDK to new platforms API 2026-04-08 17:01:28 +02:00