Commit Graph

330 Commits

Author SHA1 Message Date
Nico
3a2704b03c feat(mirror): show sync progress (#1078) 2026-07-30 09:22:11 +08:00
Nicolas Meienberger
0f472bb5f4 fix: pr feedbacks 2026-07-27 06:25:38 +02:00
Nicolas Meienberger
ec123fe424 fix(mirror): cancel multiple syncs instead of the visible frontend one 2026-07-27 06:25:38 +02:00
Nicolas Meienberger
53dc210c06 refactor(mirrors): return last sync task in response instead of deriving state 2026-07-27 06:25:38 +02:00
Nicolas Meienberger
1b814f769e refactor(mirror-sync): use background task system 2026-07-27 06:25:38 +02:00
Nicolas Meienberger
c1929be289 refactor: skip auth for api docs in development 2026-07-22 12:20:29 +02:00
Nico
364bf23163 feat(restore): allow cancellation from UI (#1052)
* feat(restore): allow cancellation from UI

* fix: agent cancellation failure report
2026-07-11 10:46:11 +02:00
Nicolas Meienberger
d9a8ed762e refactor: split active tasks vs tracked in their own hook 2026-07-10 14:39:12 +02:00
Nicolas Meienberger
ab2ca3bbbe refactor(restore): move to task stream system 2026-07-10 09:59:21 +02:00
Nico
c4093b0719 refactor(doctor): move to task stream system (#1048)
Refactor doctor tasks to run in the new task system
2026-07-09 23:17:27 +02:00
Nico
4157514e32 refactor(tag-snapshots): move tag snapshots as background tracked task (#1047)
* refactor(tag-snapshots): move tag snapshots as background tracked task

* chore: remove flaky tests
2026-07-08 15:47:49 +02:00
Nico
a10be39159 refactor: delete snaps task sub (#1044)
* refactor(delete-snaps): use tasks subscriptions system

* refactor: subscribe to many tasks

* chore: pr feedback
2026-07-08 14:58:30 +02:00
Nico
0a9cecabc4 feat(tasks): introduce task scoped server sent events (#1043)
* feat(tasks): introduce task scoped server sent events

* fix: linting issue
2026-07-07 20:34:55 +02:00
Nico
1e2359acd9 refactor(delete-snapshot): background task (#1042)
* refactor(delete-snapshot): background task

* chore: pr feedbacks
2026-07-07 16:08:30 +02:00
Nico
de150b8cc4 feat(sftp): add option for absolute & parent symlink backups (#1040)
* feat(sftp): add option for absolute & parent symlink backups

Related issue: #1007

Recent SSHFS now contains absolute/parent-directory symlinks by default,
which is safer for browsing but prevents Restic from archiving the
original symlink metadata. This adds an opt-in `no_contain_symlinks`
switch for trusted SFTP sources that need exact symlink backup

* refactor(sftp): block unsafe symlink with skip host check combination
2026-07-06 14:11:42 +02:00
Nico
46c21c8529 feat(webhooks): allow insecure tls for self-signed certs (#1034) 2026-07-06 10:26:21 +02:00
Nico
3e3719f33c fix(bacups): reschedule immediately warning backups (#1016)
* fix(bacups): reschedule immediately warning backups

Backups that didn't end properly due to a container restart should be
re-scheduled immediately

* chore: pr feedback
2026-06-30 13:03:12 +02:00
Nicolas Meienberger
277c24e1a0 fix(auth): revoke organization API keys when removing members 2026-06-21 22:46:51 +02:00
Nicolas Meienberger
019ffa98fd fix(auth): require SSO auto-link policy for existing members 2026-06-21 17:23:35 +02:00
Nicolas Meienberger
4dd96307ec fix(sso): allow verified invitation account linking 2026-06-21 11:50:44 +02:00
Nico
c0148aba89 feat(desktop): prepare folder picker for desktop (#993)
* feat(desktop): prepare folder picker for desktop

* fix: test failure
2026-06-17 14:34:39 +02:00
Parman Mohammadalizadeh
34e8f89727 feat: add option to disable password login (#949)
* feat: add option to disable password login

Adds a global admin setting to hide the username/password form on the
login page, useful for deployments that rely solely on SSO/OIDC or
passkeys. The form defaults to enabled so existing deployments are
unaffected.

Changes:
- Add PASSWORD_LOGIN_ENABLED_KEY constant
- Add isPasswordLoginEnabled / setPasswordLoginEnabled to system service
  (defaults to true when no DB record exists)
- Add GET/PUT /api/v1/system/password-login-status endpoints (GET
  auth-gated for admin use; setting is exposed to the login page via
  the existing getLoginOptions server function)
- Extend getLoginOptions to include passwordLoginEnabled
- Conditionally render the password login form in LoginPage
- Add "Enable password login" toggle in the admin System Settings tab,
  next to "Enable new user registrations"
- Add corresponding entries to generated API client files
  (types.gen.ts, sdk.gen.ts, @tanstack/react-query.gen.ts)

Closes #941

* fix(login): show errors even if password is disabled

* feat(cli): add command to re-enable password

---------

Co-authored-by: Nicolas Meienberger <github@thisprops.com>
2026-06-16 22:26:56 +02:00
Nico
1f38d9241b fix(backups): allow clearing retention policy fields (#992)
Related issue: #988
2026-06-16 19:35:41 +02:00
Nico
d24167b520 refactor(auth): mark desktop sessions with auth source (#990)
* refactor(auth): mark desktop sessions with auth source

Makes it easier to filter out on session type in backend paths that
behave differently depending on the context

* chore: fix un-used import

* fix(auth): align desktop session guards

* refactor(auth): gate desktop sessions by runtime features
2026-06-15 21:39:32 +02:00
Nico
d1e96c21b9 feat(desktop): add launch-secret session bootstrap (#989) 2026-06-15 17:33:14 +02:00
Nico
35748e757f refactor(auth): model password support as runtime capability (#987) 2026-06-15 16:38:30 +02:00
Nico
d79ecc41a3 feat(desktop): hide unavailable admin flows (#986) 2026-06-14 23:27:27 +02:00
Nico
64e3bf48b9 refactor(auth): enforce named permissions on server routes (#984) 2026-06-14 20:16:34 +02:00
Nico
551e55aa53 refactor(auth): introduce named permission policy (#983) 2026-06-14 19:50:14 +02:00
Nico
aded9bbdce feat(system): expose runtime backend capabilities (#982) 2026-06-14 19:38:49 +02:00
Nicolas Meienberger
9ff5f9b7e7 fix(sso): block api key sessions from verifying sso invitations 2026-06-14 17:53:22 +02:00
Nico
2361a00e53 feat(restic): support configurable restic command (#979) 2026-06-14 14:15:51 +02:00
Nico
15c367eeb8 feat(copy): pass custom restic params (#976)
Restic copy (mirror) should inherit the compatible custom flags from the
parent backup setup

Related issue #960
2026-06-13 10:29:36 +02:00
Nico
283de054ec feat(authentication): api key (#966)
* feat(authentication): api key

Keeps selected UX pieces from b487b096.

Co-authored-by: Nguyen Quy Hy <nguyenquyhy@live.com.sg>

* refactor: pr feedbacks

* chore: bump @better-auth/api-key

* refactor: global limit of 50 api key instead of 10 per org

---------

Co-authored-by: Nguyen Quy Hy <nguyenquyhy@live.com.sg>
2026-06-12 20:14:21 +02:00
renovate[bot]
bd46bd1156 fix(deps): update bun minor and patch dependencies (#937)
* fix(deps): update bun minor and patch dependencies

* fix: require SSO flow for SSO org invitations

Manual enforcement since better-auth made the rule wider

* chore: re-generate api-client

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Meienberger <github@thisprops.com>
2026-06-12 08:50:56 +02:00
Nico
fd48ff9ce9 fix(backups): reduce low-cpu backup UI contention (#963)
* fix(backups): reduce low-cpu backup UI contention

* chore: remove un-used import

* refactor: start polling for backup updates on start event

* fix: skip ionice automatically if it fails to schedule
2026-06-10 19:36:56 +02:00
Nico
d0b6844435 fix(backups): skip warning messages on exit code 0 (#965) 2026-06-10 18:33:52 +02:00
Nicolas Meienberger
f4a9dcf677 refactor(progress-buffer): persist first event immediately 2026-06-08 19:22:35 +02:00
Nico
5dabe9dec5 refactor: buffer backup / restore progress (#956) 2026-06-08 17:36:20 +02:00
Nicolas Meienberger
a2e621345a refactor(sso): when verifying an invitation must complete SSO flow 2026-06-07 15:08:20 +02:00
Nicolas Meienberger
9437cdc821 feat(sso): display pending org invitations in user settings page 2026-06-07 14:07:01 +02:00
Nico
53dcd086ef fix(sso) auto linking local account (#953)
* fix(sso): allow invited local accounts to auto-link via SSO

* test(e2e): sso existing member auto linking
2026-06-07 11:46:02 +02:00
Nico
2318b6bdd0 fix: limit concurrent ls to 2 in flight calls (#948)
* fix: limit concurrent ls to 2 in flight calls

* refactor: get shared lock after semaphore take
2026-06-05 18:07:59 +02:00
Nicolas Meienberger
9d63f7cb2d Revert "fix(volumes): decrypt values before testing connection (#939)"
This reverts commit 885ea10f2a.
2026-06-03 19:56:55 +02:00
Nico
885ea10f2a fix(volumes): decrypt values before testing connection (#939)
* fix(volumes): decrypt values before testing connection

* chore: lint issue
2026-06-03 19:05:39 +02:00
Nico
333c11986d feat: enforce protocol version between agent and controller (#938)
* feat: enforce protocol version between agent and controller

* chore: add logging for protocol rejected message
2026-06-03 18:29:36 +02:00
Nicolas Meienberger
be3182793d fix(agent-backups): validate agent ownership 2026-06-03 17:28:43 +02:00
Nico
a488bbc754 fix: block login for 2fa users with un-verified passkeys (#934)
* fix: block login for 2fa users with un-verified passkeys

* refactor(passkey): show proper login error

* refactor: show passkey generic error on all failures
2026-06-02 19:48:40 +02:00
Nico
d479bfaddc feat: snapshot restores through rpc (#930)
* feat: snapshot restores through rpc

* fix(restore): do not wait for lock before returning response

* chore: fix liniting issue
2026-05-31 21:48:32 +02:00
Nico
8fedeef4d1 feat: add restore agent RPC foundation (#929)
* feat: add restore agent RPC foundation

* chore: temp event handlers

* refactor: export restore progress from dto file
2026-05-31 19:39:20 +02:00