Commit Graph

8393 Commits

Author SHA1 Message Date
Johannes Zellner fc3768101d Token exchange route does not need appstoreId 2016-11-15 15:24:28 +01:00
Johannes Zellner 5645954686 This route does not exist anymore 2016-11-14 17:16:42 +01:00
Johannes Zellner f16d1c80f4 Do not log if no update is available 2016-11-14 17:00:30 +01:00
Johannes Zellner a25b884dbb Fix typo, use .body 2016-11-14 16:29:47 +01:00
Johannes Zellner 567401c337 Fetch appstore credentials on app un-/purchase for caas 2016-11-14 15:40:53 +01:00
Johannes e033dce93e Run update short circuit prior earlier
This allows short circuit of non caas upgrades as well

Fixes #97
2016-11-09 12:25:39 +01:00
Girish Ramakrishnan e270c27cb0 Remove hardcoded cert 2016-11-08 18:04:07 +05:30
Girish Ramakrishnan 63561a51a4 Fix failing cert test
The hardcoded cert has expired
2016-11-08 17:33:45 +05:30
Johannes 0088d9d5fc Renew expired certs in the cert tests 2016-11-08 09:28:48 +01:00
Johannes 4fd5b369f8 Reset app update indicator when an update was triggered
Fixes #48
2016-11-07 15:14:08 +01:00
Johannes 5e0ed1dff3 Don't just center the whole update email
Finally fixes #88
2016-11-07 13:35:02 +01:00
Johannes 215a16cd18 Render update changelog mail with markdown 2016-11-07 13:34:48 +01:00
Johannes bd0b66aaad Improve update email 2016-11-07 13:34:47 +01:00
Johannes 45b83232d7 Enable html mails for box updates 2016-11-07 12:32:57 +01:00
Johannes 95a90dd050 Check on the installer service to be able to cancel update from box side 2016-11-06 14:30:26 +01:00
Johannes 908aa6f426 Reset the systemd-run service in case it failed earlier
systemd will refuse to run a transient unit if one run
with the same unit name failed earlier
2016-11-06 14:30:26 +01:00
Johannes 15f7ada958 We now use systemd-run no need for sudoDetached 2016-11-06 14:30:26 +01:00
Johannes 18b58ced8d Run the updater through systemd-run
This ensures it can start and stop the box process.
Due to control-group setting to killall children
the updater itself would get killed if the box service
restarts
2016-11-06 14:30:26 +01:00
Johannes b40a9803a8 Adjust script paths for isntaller.sh movement 2016-11-06 14:30:26 +01:00
Johannes c70c7462bf hooks for installer are just local sysadmin webhooks 2016-11-06 14:29:41 +01:00
Johannes 16deb001bf No more cloudron-installer to stop 2016-11-06 14:29:41 +01:00
Johannes 38ddf12542 Instead of calling the installer, just run update.sh
update.sh will run detached and triggers the installer.sh
2016-11-06 14:29:41 +01:00
Johannes 525c7f2685 add shell.sudoDetached() 2016-11-06 14:29:41 +01:00
Johannes 4d360e3798 Allow update.sh to be run as root 2016-11-06 14:29:41 +01:00
Johannes 8adf9f3643 Add initial update.sh script to trigger installer.sh from box 2016-11-06 14:29:41 +01:00
Johannes cc6b260189 Bump mail container version 2016-11-04 10:07:14 +01:00
Johannes 5ba86d5c35 Use aws s3 cli to test credentials
This allows us to test the exact same usage of the api
through the cli tool, not the javascript api
2016-10-28 16:36:05 +02:00
Girish Ramakrishnan d36af33269 default dns config has changed 2016-10-25 11:37:24 -07:00
Girish Ramakrishnan eaa747fe39 do not install admin certs during test 2016-10-25 11:36:56 -07:00
Johannes e1be8659fa Also validate DNS config for digitalocean backend 2016-10-25 16:18:54 +02:00
Johannes eb963f3e1b Report auth issues in digitalocean dns backend 2016-10-25 16:18:33 +02:00
Johannes a23f5d45b0 Improve error feedback when setting Route53 credentials 2016-10-25 16:06:31 +02:00
Johannes 0c6a2008ff Also support noop dns provider in settings backend 2016-10-25 14:55:20 +02:00
Johannes d7a91429f3 noop dns provider is a valid one 2016-10-25 14:15:54 +02:00
Johannes Zellner 2c279dc77e Set LE as default tls config 2016-10-21 10:31:55 -07:00
Johannes Zellner 5d8b46e015 Add more fallbacks for settings 2016-10-21 10:31:30 -07:00
Girish Ramakrishnan 6b72ee61f9 Show good error message for invalid username 2016-10-17 19:02:48 -07:00
Girish Ramakrishnan 4313d8a28c Send mail when backup fails
Fixes #9
2016-10-14 15:08:41 -07:00
Girish Ramakrishnan ae299f5838 Fix failing test 2016-10-14 09:30:42 -07:00
Girish Ramakrishnan bafc35f99e Revert "Use in-place replacement ursa-purejs for native ursa"
This reverts commit 8e033dc387.

Lots of things in ursa-purejs is unimplemented. We get errors like:

    /home/yellowtent/box/node_modules/ursa-purejs/lib/ursa.js:331
          throw new Error("Unsupported operation : sign");
          ^
    Error: Unsupported operation : sign
        at Object.sign (/home/yellowtent/box/node_modules/ursa-purejs/lib/ursa.js:331:13)
        at Object.sign (/home/yellowtent/box/node_modules/ursa-purejs/lib/ursa.js:624:27)
        at /home/yellowtent/box/src/cert/acme.js:112:50
        at /home/yellowtent/box/src/cert/acme.js:70:16
2016-10-13 21:41:04 -07:00
Girish Ramakrishnan 32eb1edead center it 2016-10-13 16:26:29 -07:00
Girish Ramakrishnan 1187e6a101 Add powered by footer to password reset 2016-10-13 16:18:26 -07:00
Girish Ramakrishnan f94a653e80 Add powered by footer
Fixes #77
2016-10-13 16:18:22 -07:00
Girish Ramakrishnan 1c22cb8443 Pass invitor object when reinviting user 2016-10-13 15:57:58 -07:00
Girish Ramakrishnan 49f7fb552b settings api: key if present must be a string 2016-10-13 15:32:18 -07:00
Girish Ramakrishnan d460c36e14 Simply use settings.setBackupConfig 2016-10-13 15:32:00 -07:00
Girish Ramakrishnan 6e8eea6876 Use getBackupConfig instead and allow key to be settable 2016-10-13 15:23:49 -07:00
Girish Ramakrishnan fd1b56b9e9 Fix failing sysadmin test 2016-10-13 15:13:28 -07:00
Girish Ramakrishnan 92106a2a52 Fix failing simple auth test 2016-10-13 15:11:03 -07:00
Girish Ramakrishnan 8809552fb2 Fix failing apps test 2016-10-13 15:04:12 -07:00