Johannes Zellner
0d5d54d2d8
Add xFrameOptions to apps and routes
2016-07-14 16:28:59 +02:00
Johannes Zellner
dcb14b452b
Validate xFrameOptions in app install
2016-07-14 16:28:59 +02:00
Girish Ramakrishnan
bcc1b6343e
initialize appId before icon is saved
2016-07-09 12:25:00 -07:00
Girish Ramakrishnan
a3d185e653
fix typo
2016-06-18 14:51:49 -05:00
Girish Ramakrishnan
c2da3da035
set force to false explicitly
2016-06-18 13:24:27 -05:00
Girish Ramakrishnan
7e93c23110
set the lastBackupId to backup from
2016-06-17 18:41:29 -05:00
Girish Ramakrishnan
7009b9f3ac
implement clone
2016-06-17 17:45:14 -05:00
Girish Ramakrishnan
fe62aba4d7
make appdb.add take a data object
2016-06-17 16:43:35 -05:00
Girish Ramakrishnan
fee6f3de0f
configure/restoreInstalledApps must always succeed
2016-06-16 06:50:34 -07:00
Girish Ramakrishnan
53cd45496b
parse the response
2016-06-13 18:28:51 -07:00
Girish Ramakrishnan
942339435a
return config correctly
2016-06-13 18:04:22 -07:00
Girish Ramakrishnan
2bd6519795
add assert
2016-06-13 18:02:57 -07:00
Girish Ramakrishnan
1763c36a0b
restore from the backup's config.json
...
To summarize what we are doing is that restore is simply getting old data and
old code. Config is not changed. If config is required, then it has to come
in the restore REST parameter. Otherwise, there is too much magic.
https://blog.smartserver.io/2016/06/13/app-restore/
2016-06-13 16:54:59 -07:00
Girish Ramakrishnan
2c0eb33625
use apps.getAppConfig when generating config.json
2016-06-13 15:11:49 -07:00
Girish Ramakrishnan
040b9993c7
refactor code into getAppConfig
2016-06-13 15:07:15 -07:00
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