Girish Ramakrishnan
4bda11edcf
Require admin for reboot, disk, graphs api
2017-04-18 14:31:55 -07:00
Johannes Zellner
d5db9657ca
Add s3 mock for the s3 storage tests
2017-04-18 19:15:56 +02:00
Johannes Zellner
9378b949fb
Add s3 storage tests
...
Those are not mocked yet and require real aws things.
Change will follow for mocking. We should probably keep them optionally
working agains AWS directly to ensure things really work
2017-04-18 17:34:45 +02:00
Johannes Zellner
ad9cb00f13
Add s3 storage removeBackup() and getDownloadStream() implementations
2017-04-18 17:33:59 +02:00
Johannes Zellner
5ccca76b17
Fix typo
2017-04-18 17:33:17 +02:00
Johannes Zellner
cec52e14f6
Remove s3 backup test shell script
2017-04-18 16:58:27 +02:00
Johannes Zellner
261d15f0f7
Handle S3 not found errors
2017-04-18 16:47:49 +02:00
Johannes Zellner
14fe1dde58
s3 storage backend with backup and restore implemented
2017-04-18 16:28:39 +02:00
Johannes Zellner
737bbd26ee
sort requires alphabetically
2017-04-18 15:32:59 +02:00
Johannes Zellner
f5db7c974f
Sync the storage interface api
2017-04-18 14:55:22 +02:00
Johannes Zellner
7303a09f2f
Support older backupIds which already include the type prefix
2017-04-18 14:39:48 +02:00
Johannes Zellner
3cae400b63
We still want to store the restoreConfig config.json as part of the backup itself
2017-04-18 12:16:32 +02:00
Johannes Zellner
5dd10e7cd2
app restoreConfig file api is no more in the filesystem backend
2017-04-18 12:11:05 +02:00
Johannes Zellner
f12358a10c
Do not save the restoreConfig json file in the backuptask
2017-04-18 12:10:39 +02:00
Johannes Zellner
23e3b0bd91
Get the restoreConfig from the database instead of the json file
2017-04-18 12:08:26 +02:00
Johannes Zellner
7a39cdda97
Store restoreConfig on backups
2017-04-18 12:02:15 +02:00
Johannes Zellner
5460027a49
Add restoreConfig to backupsdb.js
2017-04-18 11:57:59 +02:00
Girish Ramakrishnan
19d8b90a12
pass IP in query parameter
2017-04-17 21:14:13 -07:00
Girish Ramakrishnan
6bc764090c
Get geolocation info from geolocation.cloudron.io
2017-04-17 21:09:04 -07:00
Johannes Zellner
9c45dec8b0
Fix permissions for the filesystem backend
...
node will always apply the umask, so we have to set and then restore it
properly
2017-04-17 20:26:06 +02:00
Johannes Zellner
a21750a4c9
Fix the mysql dump commandline
2017-04-17 20:26:06 +02:00
Johannes Zellner
dda16331f6
Remove unused rmbackup.sh
2017-04-17 20:26:06 +02:00
Johannes Zellner
7b93150047
Also add intermediate removeAppRestoreConfig() api
2017-04-17 20:26:06 +02:00
Johannes Zellner
a98177fe71
Ensure non-root permissions to the backups
2017-04-17 20:26:06 +02:00
Johannes Zellner
d95e68926b
Remove unused backupapp.sh and backupbox.sh
2017-04-17 20:26:06 +02:00
Johannes Zellner
ff3a748398
Call backuptask.js directly as root to avoid trampoline shell scripts
2017-04-17 20:26:05 +02:00
Johannes Zellner
9354784f01
Remove unused cpbackup.sh
2017-04-17 20:26:05 +02:00
Johannes Zellner
e021a4b377
Remove unused restoreapp.sh
2017-04-17 20:26:05 +02:00
Johannes Zellner
4fac5a785f
Add unit tests for the filesystem storage backend
2017-04-17 20:26:05 +02:00
Johannes Zellner
4d42c116ce
Implement all the apis for the filesystem storage backend
2017-04-17 20:26:05 +02:00
Johannes Zellner
3879b55642
Also copy the app restore config file
2017-04-17 20:26:05 +02:00
Johannes Zellner
6d8cf8456e
Add filesystem backend encryption support
...
We will probably remove this but lets keep this for now
just to keep changes low in the next release.
2017-04-17 20:26:05 +02:00
Johannes Zellner
5e1ad4ad93
We need root access to copy backup files with the filesystem backend
2017-04-17 20:26:05 +02:00
Johannes Zellner
b29a6014d5
Remove unused shell variable
2017-04-17 20:26:05 +02:00
Johannes Zellner
bd7625031e
The writeable stream end event is 'finished'
2017-04-17 20:26:05 +02:00
Johannes Zellner
9e881d1934
Gunzip the app backups
2017-04-17 20:25:59 +02:00
Johannes Zellner
31f93f0255
Use the directory property not the object
2017-04-17 20:09:10 +02:00
Johannes Zellner
67a7624da0
add an explicit saveAppRestoreConfig() api
2017-04-17 20:09:10 +02:00
Johannes Zellner
7fdf491815
Add backuptask.js to work with new storage interface
2017-04-17 20:09:02 +02:00
Johannes Zellner
798c2ff921
Return correct error if route53 security token is invalid
2017-04-16 12:52:14 +02:00
Girish Ramakrishnan
8911081f85
When dns config changes, only fixup the cloudron records
2017-04-14 19:52:44 -07:00
Girish Ramakrishnan
9605fe3842
Only change dns records of already installed apps
2017-04-14 19:48:58 -07:00
Girish Ramakrishnan
588812a13a
Disable secure cookies for tests (since they use http)
2017-04-14 01:45:00 -07:00
Girish Ramakrishnan
b6d8721aed
reset config in backups test
2017-04-14 01:35:04 -07:00
Girish Ramakrishnan
da835afde1
More test fixing
2017-04-14 01:28:29 -07:00
Girish Ramakrishnan
5e22caa6e7
Fix updatechecker tests
2017-04-14 00:36:22 -07:00
Girish Ramakrishnan
937931e885
Pass the token when querying for updates
...
Part of #293
2017-04-13 19:40:59 -07:00
Girish Ramakrishnan
eb2ef47df1
remove boxVersionsUrl
...
update checker now uses the appstore routes
2017-04-13 11:38:42 -07:00
Girish Ramakrishnan
cdb5dc2c53
Remove isDev flag
...
We can pretty much test everything here on self-hosted cloudrons now
2017-04-13 11:34:03 -07:00
Girish Ramakrishnan
f6a2406091
Use hat for secret instead of uuid
2017-04-13 11:05:46 -07:00