Commit Graph

9434 Commits

Author SHA1 Message Date
Girish Ramakrishnan ac7c32ad4c backups: log encryption and format in upload 2025-10-07 17:42:51 +02:00
Girish Ramakrishnan e93898d2ec typo that broke encryption 2025-10-07 17:42:51 +02:00
Girish Ramakrishnan 02ba2fe59b encryption: do not allow password and hint to be the same 2025-10-07 16:52:39 +02:00
Girish Ramakrishnan 6ac914904e backups: make listing by site only return box backups 2025-10-07 12:13:14 +02:00
Girish Ramakrishnan 68dd1fbedb rename function to listByTypePaged 2025-10-07 12:07:46 +02:00
Girish Ramakrishnan 6869380500 Fix tests 2025-10-07 10:01:35 +02:00
Girish Ramakrishnan 3a0febe760 convert console.log to debug 2025-10-07 09:36:07 +02:00
Girish Ramakrishnan 548418ecfe graphs: show correct metrics when container stops 2025-10-06 23:05:49 +02:00
Girish Ramakrishnan 28c0d63f89 app archive: fix download config 2025-10-06 22:34:28 +02:00
Girish Ramakrishnan d732adf34b restore: complete the latest full backup task of site id
when creating a full backup, the task is still running and the database
dump which is part of the backup, still says it is still running.

during restore, we mark the taskId as completed. detection of the task
is using the siteId in config (when restoring via backup config) or
just blindly setting the last backup task as completed (in manual form fill).
2025-10-06 19:50:58 +02:00
Girish Ramakrishnan 8718e7efd2 tasks: list by prefix 2025-10-06 19:32:06 +02:00
Girish Ramakrishnan b21d29098b tasks: refactor listByTypePaged into list with options
this way we can list by prefix (coming commit)
2025-10-06 19:28:51 +02:00
Girish Ramakrishnan 34043d5c97 backupsites: reinit sites after restore 2025-10-06 18:20:38 +02:00
Girish Ramakrishnan 43962c4a5a add route to list backups by site 2025-10-06 14:52:29 +02:00
Johannes Zellner 72c97ba224 remount() needs a backupSite object 2025-10-06 11:10:18 +02:00
Girish Ramakrishnan 3364e5c876 ldapserver: fix crash when app not found 2025-10-03 11:55:20 +02:00
Girish Ramakrishnan a6355e1945 remove spammy log 2025-10-03 11:49:40 +02:00
Girish Ramakrishnan 6c1b07a7f1 add comment on why checkSubscription 2025-10-02 11:37:26 +02:00
Girish Ramakrishnan b511b0c39a restore: get subscription info after a restore 2025-10-02 11:20:00 +02:00
Girish Ramakrishnan 5b43de944d activation: update features after registering cloudron 2025-10-02 11:18:42 +02:00
Girish Ramakrishnan 832eca2d9c backup size: display stats correctly 2025-10-01 17:43:27 +02:00
Johannes Zellner f69bdd1ac4 This aint the real superagent 2025-10-01 17:16:21 +02:00
Johannes Zellner 01f10baa18 subscription POST api is /subscription3 2025-10-01 16:46:30 +02:00
Johannes Zellner 23178b24c6 Send cloudron state along with fetching subscription state 2025-10-01 16:44:53 +02:00
Johannes Zellner 295aafddf0 Use appUpdates feature flag 2025-10-01 14:35:14 +02:00
Girish Ramakrishnan ab0f8fc081 backupsite: remove bc- prefix from id 2025-10-01 10:27:20 +02:00
Girish Ramakrishnan 53de61330f remove debug 2025-10-01 10:09:32 +02:00
Girish Ramakrishnan 54cd9c7afa Use JSON query to remove the app id from site
the original regexp does not work for leading comma like [ "box", "appid" ]
2025-09-30 19:43:08 +02:00
Girish Ramakrishnan edcffd3417 Remove app from backup sites when uninstalled 2025-09-30 18:22:22 +02:00
Girish Ramakrishnan f7c85d8aa2 mail: add api to list domains 2025-09-30 17:11:10 +02:00
Johannes Zellner e05fef18a0 Only check subscription once a day again 2025-09-29 16:26:01 +02:00
Johannes Zellner 38267a26c1 Send some metrics 2025-09-29 16:16:22 +02:00
Girish Ramakrishnan 5dd5a20fc1 code -> sqlCode 2025-09-29 12:18:26 +02:00
Girish Ramakrishnan 73ddf48d12 Do not put sensitive config into the eventlog 2025-09-26 11:14:47 +02:00
Girish Ramakrishnan 4962597f58 Remove forum message from installation notification 2025-09-25 08:31:16 +02:00
Girish Ramakrishnan 8a20c1812f Fix cloudron appstore link 2025-09-24 22:11:43 +02:00
Girish Ramakrishnan 98d4d99c1b appstore: add unlink account route 2025-09-24 21:49:24 +02:00
Girish Ramakrishnan 5723717576 appstore: add note on token check 2025-09-24 20:56:54 +02:00
Girish Ramakrishnan f8e5a65f95 Fix test 2025-09-24 14:09:06 +02:00
Girish Ramakrishnan 379066c782 eventlog: remove private fields from site 2025-09-24 14:04:49 +02:00
Girish Ramakrishnan 19df2e0baa ER_DUP_ENTRY is passed as code and not in message 2025-09-24 10:50:25 +02:00
Girish Ramakrishnan aefe69c4b5 Fix test 2025-09-23 19:07:45 +02:00
Girish Ramakrishnan f92cdf36f5 system: return the mounted and unmounted block devices (as long as xfs or ext4) 2025-09-23 18:51:23 +02:00
Girish Ramakrishnan 50d37ad752 Fix consistent use of enabledForUpdates -> enableForUpdates 2025-09-23 16:43:17 +02:00
Girish Ramakrishnan 08f7685ca3 backupSite: enableForUpdates in add 2025-09-23 10:21:43 +02:00
Johannes Zellner 49de124fc0 Fix typo 2025-09-22 20:24:29 +02:00
Girish Ramakrishnan cc939de641 Fixup tests 2025-09-22 20:17:34 +02:00
Girish Ramakrishnan 5157789774 backups: add per site enabledForUpdates flag
previously, we had a singleton 'main' flag to indicate a site can
be used for updates. with this new approach, we can get rid of the
'primary' concept. each site can be used for updates or not.
2025-09-22 18:03:01 +02:00
Girish Ramakrishnan 305441ea28 backups: remove noop backend
the noop backend is migrated into 0 sites config.

when the updater code sees that there is no site to backup, it will
just fail. user has to manually update with skipBackup flag.
2025-09-22 16:44:12 +02:00
Girish Ramakrishnan 4c3a8e1fd7 backup site: add contents
it is a json that can be one of the three:

* null - include everything
* include - only include these ids
* exclude - everything except these ids
2025-09-22 13:28:16 +02:00