Johannes Zellner
a6eca44a0d
Do not attempt to purchase an app if we dont have an appstore token
2015-12-31 09:15:27 +01:00
Girish Ramakrishnan
a4ea693c3c
update superagent
...
the latest superchanged changed the meaning of 'error'. Previously,
error implied a network error. With the latest superagent, error means
a REST api error i.e 4xx, 5xx are flagged as errors.
error && !error.response means network error
2015-12-15 09:53:37 -08:00
Girish Ramakrishnan
cf80fd7dc5
rename certificatemanager
2015-12-11 12:24:52 -08:00
Girish Ramakrishnan
73d891b98e
move validateCertificate to certificateManager
2015-12-10 20:38:49 -08:00
Girish Ramakrishnan
fe819f95ec
always return logs regardless of state
2015-12-04 13:13:54 -08:00
Johannes Zellner
b9695b09cd
Fix crash due to wrong AppsError usage
2015-11-25 13:49:20 +01:00
Johannes Zellner
3d80821203
Give correct feedback if an app cannot be found in the appstore
2015-11-13 10:35:29 +01:00
Girish Ramakrishnan
8f05917d97
delete container on network error
2015-11-10 21:56:17 -08:00
Girish Ramakrishnan
3766d67daa
create new container from cloudron exec
2015-11-10 21:36:20 -08:00
Johannes Zellner
b1290c073e
log lines should be newline separated
2015-11-10 11:31:07 +01:00
Girish Ramakrishnan
5de3baffd4
send monotonic timestamp as well
2015-11-02 14:26:15 -08:00
Girish Ramakrishnan
63c10e8f02
fix typo
2015-11-02 14:23:02 -08:00
Girish Ramakrishnan
88b1cc553f
Use journalctl to get app logs
2015-11-02 14:08:34 -08:00
Johannes Zellner
eca328b247
Add cert and key to app install route
2015-10-28 22:09:19 +01:00
Johannes Zellner
cf021066ed
Move cert validation to settings and use it for wildcard cert
2015-10-28 14:35:39 +01:00
Johannes Zellner
04eb2a982f
Add proper cert validator
2015-10-28 14:20:25 +01:00
Johannes Zellner
e81db9728a
Set the cert and key dynamically when rendering nginx appconfig
2015-10-28 12:42:04 +01:00
Johannes Zellner
db305af8c9
We name certs with .cert extension
2015-10-28 12:33:27 +01:00
Johannes Zellner
4b3aca7773
certs should be stored with app fqdn
2015-10-28 12:28:57 +01:00
Johannes Zellner
5b5abe99e7
Save the uploaded certs to app cert directory
2015-10-28 12:24:59 +01:00
Johannes Zellner
4ea3238391
Pass certs down to apps.configure
2015-10-27 16:36:09 +01:00
Girish Ramakrishnan
6671b211e0
export a connection property from docker.js
2015-10-19 11:24:21 -07:00
Johannes Zellner
fa193276c9
Require exactly one user in accessRestriction for singleUser app installations
2015-10-16 20:01:45 +02:00
Johannes Zellner
b5cfdcf875
Fixup the unit tests for accessRestriction format change
2015-10-16 16:06:13 +02:00
Johannes Zellner
373db25077
Make accessRestriction a JSON format to prepare for group access control
2015-10-16 15:32:19 +02:00
Johannes Zellner
f8c2ebe61a
Taks accessRestriction and oauthProxy into account for an update through the cli
2015-10-16 14:50:00 +02:00
Johannes Zellner
9833d0cce6
Adhere to accessRestriction in simple auth
2015-10-15 15:18:40 +02:00
Johannes Zellner
fbc3ed0213
Add apps.hasAccessTo()
2015-10-15 15:06:34 +02:00
Johannes Zellner
73d88a3491
Rewrite accessRestriction validator
2015-10-15 12:37:42 +02:00
Johannes Zellner
4eab101b78
use app.oauthProxy instead of app.accessRestriction
2015-10-13 10:41:57 +02:00
Johannes Zellner
bad50fd78b
Merge branch 'simpleauth'
2015-10-11 17:40:10 +02:00
Johannes Zellner
79c17abad2
Add simpleAuthPort to config.js
2015-10-11 17:19:39 +02:00
Girish Ramakrishnan
d0da47e0b3
fix comment
2015-10-09 11:48:59 -07:00
Girish Ramakrishnan
c95778178f
make rootfs readonly based on targetBoxVersion
2015-10-08 11:48:33 -07:00
Girish Ramakrishnan
ed2f25a998
better debugs
2015-09-21 16:02:58 -07:00
Girish Ramakrishnan
78a1d53728
copy old backup as failed/errored apps
...
This ensures that
a) we don't get emails from janitor about bad app backups
b) that the backups are persisted over the s3 lifecycle
Fixes #493
2015-09-21 15:03:10 -07:00
Girish Ramakrishnan
d83b5de47a
reserve the ldap and oauthproxy port
2015-09-16 10:12:59 -07:00
Girish Ramakrishnan
28b768b146
Fix app autoupdater logic
...
The main issue was that app.portBindings is never null but { }
2015-09-10 11:39:29 -07:00
Girish Ramakrishnan
c1e4dceb01
ssh is now on port 919
2015-09-10 10:08:40 -07:00
Johannes Zellner
59be539ecd
make restoreapp.sh support aws session tokens
2015-08-26 09:14:15 -07:00
Johannes Zellner
60b5d71c74
appBackupIds are not needed for backup url generation
2015-08-26 09:06:45 -07:00
Johannes Zellner
9fdcd452d0
Use locally generate signed urls for app backup
2015-08-25 17:52:01 -07:00
Girish Ramakrishnan
9a35c40b24
Add force argument
...
This fixes crash when auto-updating apps
2015-08-25 10:01:20 -07:00
Girish Ramakrishnan
ee74badf3a
Check for dockerImage in manifest in install/update/restore routes
2015-08-19 11:08:45 -07:00
Girish Ramakrishnan
aa173ff74c
restore without a backup is the same as re-install
2015-08-19 11:00:00 -07:00
Girish Ramakrishnan
814674eac5
addons can be null in apps.backupApp
...
addons.backup already takes care of null.
a future commit will give defaults for all non-default manifest fields
at some point and document them as so
2015-08-10 13:47:51 -07:00
Girish Ramakrishnan
1a7fff9867
Keep linter happy
2015-08-10 13:42:04 -07:00
Johannes Zellner
19fef4c337
Add missing appId key to access app updateInfo
2015-07-23 07:21:05 +02:00
Girish Ramakrishnan
17b1f469d7
Handle forced updates
2015-07-20 10:09:02 -07:00
Girish Ramakrishnan
26fbace897
During an update backup the old addons
...
Fixes #444
2015-07-20 00:50:36 -07:00