Girish Ramakrishnan
a2ec308155
pass the lastBackupId explicity as the backup to restore to
2016-06-13 10:13:54 -07:00
Girish Ramakrishnan
b82610ba00
pass data argument to restore
2016-06-13 10:08:58 -07:00
Girish Ramakrishnan
f9db24e162
Fix autoupdate detection logic
...
We should be comparing existing manifest ports with new manifest ports.
The user chosen bindings itself doesn't matter.
2016-06-08 08:45:40 -07:00
Girish Ramakrishnan
3236ce9cd6
check if both are null
2016-06-07 15:36:45 -07:00
Girish Ramakrishnan
1766da9174
update code path now takes appStoreId
2016-06-04 20:05:29 -07:00
Girish Ramakrishnan
dbdcf1ec27
pass data object to update
2016-06-04 19:12:36 -07:00
Girish Ramakrishnan
1e38190e68
setting falsy values for cert/key removes it
2016-06-04 18:30:05 -07:00
Girish Ramakrishnan
8f3553090f
make args optional in configure
2016-06-04 18:07:06 -07:00
Girish Ramakrishnan
cc0f5a1f03
fix configure arg insanity
2016-06-04 16:32:27 -07:00
Girish Ramakrishnan
a49cf98a8d
do not allow appId to be set
...
this is some legacy code
2016-06-04 13:40:43 -07:00
Girish Ramakrishnan
4068ff5f21
add TODO note to validate accessRestriction
2016-06-04 13:20:10 -07:00
Girish Ramakrishnan
ee073c91a3
return BAD_FIELD if app was not found
2016-06-04 13:15:38 -07:00
Girish Ramakrishnan
9e8742ca87
download manifest from appstore when appStoreId is provided
2016-06-04 01:07:43 -07:00
Girish Ramakrishnan
7f99fe2399
appStoreId has empty string default
2016-06-03 23:58:09 -07:00
Girish Ramakrishnan
bfe8df35df
toLowerCase in one place
2016-06-03 23:54:46 -07:00
Girish Ramakrishnan
e2848d3e08
fix apps.install insane arg list
2016-06-03 23:35:55 -07:00
Girish Ramakrishnan
bc823b4a75
make checkManifestConstraints return AppsError
2016-06-03 22:19:09 -07:00
Girish Ramakrishnan
c24f780722
make validateAccessRestriction and validateMemory return AppsError
2016-06-03 22:16:55 -07:00
Girish Ramakrishnan
0d51ec9920
make validatePortBindings return AppsError
2016-06-03 22:15:02 -07:00
Girish Ramakrishnan
e07e544029
make validateHostname return AppsError
2016-06-03 22:14:08 -07:00
Girish Ramakrishnan
5aff55c5ca
typo when stashing altDomain
2016-06-03 19:50:01 -07:00
Girish Ramakrishnan
e30d71921e
pass auditSource for app autoupdater
2016-06-02 18:49:56 -07:00
Girish Ramakrishnan
a49c78f32c
make box autoupdate generate eventlog
2016-06-02 18:47:09 -07:00
Girish Ramakrishnan
a100837e69
Add helpers to restore/reconfigure all apps
2016-05-24 10:44:45 -07:00
Girish Ramakrishnan
9570086c87
add config.smtpPort
2016-05-24 00:53:42 -07:00
Girish Ramakrishnan
0aaaa866e4
Add a whole bunch of magic for docker.exec to work
2016-05-22 00:27:32 -07:00
Girish Ramakrishnan
5322ed054d
reserve 4190 for sieve
2016-05-13 18:48:05 -07:00
Girish Ramakrishnan
1da24564b3
reserve postman subdomain
2016-05-11 15:04:22 -07:00
Girish Ramakrishnan
631b238b63
use MAIL_LOCATION for mx record
2016-05-11 09:59:12 -07:00
Johannes Zellner
cbc906f8d1
Remove apps.getBySubdomain()
2016-05-06 14:52:06 +02:00
Girish Ramakrishnan
c3c18e8a4b
reserve more ports
2016-05-05 15:00:07 -07:00
Girish Ramakrishnan
e56192913d
reserved smtp and imap locations
2016-05-04 15:54:21 -07:00
Girish Ramakrishnan
5683cefe89
provide auditSource when autoupdating app
2016-05-03 23:36:27 -07:00
Girish Ramakrishnan
ffedbdfa13
various minor fixes to eventlog
2016-05-02 10:01:23 -07:00
Girish Ramakrishnan
994cbaa22a
add event log in model code
2016-05-01 21:38:20 -07:00
Girish Ramakrishnan
d2a3925e04
add altDomain to install route
2016-04-26 14:45:58 -07:00
Girish Ramakrishnan
c581d2a52c
stash altDomain in oldConfig
2016-04-25 21:22:08 -07:00
Girish Ramakrishnan
19948851e0
return altDomain as the app.fqdn if present
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
3d5aa9fd23
pass altDomain in configure route
2016-04-25 10:52:12 -07:00
Girish Ramakrishnan
5c1970b37f
Fix crash where portBindings is set to undefined
2016-04-15 21:27:42 -07:00
Girish Ramakrishnan
414b21f29a
add sysadmin route test
2016-04-15 12:33:54 -07:00
Girish Ramakrishnan
322e9faee7
rework backup code
...
move all the backup code into backups.js
2016-04-10 20:41:08 -07:00
Girish Ramakrishnan
af9d489395
backup apps use aws-cli
2016-04-10 18:47:25 -07:00
Girish Ramakrishnan
d839f0b762
remove redundant session token
2016-04-03 23:23:23 -07:00
Girish Ramakrishnan
f8c683f451
Disallow updating an app with mismatching manifest id
...
Story so far:
1. App installed from store. appStoreId is set to manifest.id.
2. User installed a custom built app with a custom manifest.id using cloudron install --app <id>. The appStoreId is still set.
3. When we make a new release, it overrides the users install.
The fix (for now) is:
1. Do not allow mismatching ids to start with.
2. When forced, it is allowed but appStoreId is cleared so as to not get any auto updates.
This leaves the user vulnerable to 'cloudron uninstall' simply autoselecting this new app.
For this, they have to simply disable CLI mode for now.
There is also a corner case where:
1. Dev installs from app store
2. Dev compiles from source and updates on top of app store install with --app <id>
3. Dev find out that his installation has auto-updated the next day.
2016-03-25 11:46:25 -07:00
Girish Ramakrishnan
3499a4cc6c
move requiresOAuthProxy to nginx
...
we have 3 levels
* routes, cron, apptask
* everything else where everyone calls everyone :-)
* the db layer
2016-03-17 11:38:29 -07:00
girish@cloudron.io
8b2903015d
list app backups from db
2016-03-08 08:57:28 -08:00
Girish Ramakrishnan
4dd82d10ad
backup: ensure same timestamp for app data and config
2016-03-07 12:13:54 -08:00
Johannes Zellner
9688e4c124
Add apps.getAllByUser()
2016-02-25 11:28:29 +01:00
Johannes Zellner
86f14b0149
Thanks JS for being so value focused...
2016-02-19 17:23:09 +01:00