Girish Ramakrishnan
496f530b9f
sessionToken is required in credentials (when signing)
2016-04-04 11:23:38 -07:00
Johannes Zellner
fcfd1dceac
Deliver the resetToken when an invite was sent
2016-04-04 18:41:51 +02:00
Girish Ramakrishnan
d839f0b762
remove redundant session token
2016-04-03 23:23:23 -07:00
Girish Ramakrishnan
16a65fb185
drop configJson
...
The initial idea was to store exactly where the backups are stored.
But this only causes problems for migrations where the bucket might
change and clones where the prefix (box.id) changes.
Thus, it's best to leave the url creation to the caas side. (That
has to be done in another change)
2016-04-03 22:55:08 -07:00
Girish Ramakrishnan
c236072c4c
add comment
2016-04-02 18:04:58 -07:00
Girish Ramakrishnan
5d92cff638
backup config.json first because tarball takes lot of time and leads to token expiration
2016-04-02 18:01:49 -07:00
Girish Ramakrishnan
1b539b8d22
upload as binary
2016-04-02 17:58:10 -07:00
Girish Ramakrishnan
a21a913f34
delete snapshot on failure path
2016-04-02 17:57:15 -07:00
Girish Ramakrishnan
357f6f0552
use same region as what we uploaded to
2016-04-02 13:32:14 -07:00
Girish Ramakrishnan
b16aa4c007
check for region as well
2016-04-02 13:31:12 -07:00
Girish Ramakrishnan
29077abf7c
pass back the changeId
2016-04-01 23:21:10 -07:00
Girish Ramakrishnan
42fc2d446c
do not set the session_token header
...
this seems to be part of url now in signature v4
2016-04-01 13:26:25 -07:00
Girish Ramakrishnan
3ea2070cdb
pass filename (it is not part of the config!)
2016-03-31 09:53:56 -07:00
Girish Ramakrishnan
fc11484b51
pick region from apiConfig if present
2016-03-31 09:48:38 -07:00
Girish Ramakrishnan
b4ddfa94cc
rename to apiConfig
2016-03-31 09:48:13 -07:00
Girish Ramakrishnan
9e7ae1a4f7
we really need a better linter
2016-03-31 09:38:40 -07:00
Girish Ramakrishnan
d27159275b
pick region as well
2016-03-31 09:34:57 -07:00
Girish Ramakrishnan
6c2ae756f1
fix usage of backupInfo
2016-03-31 09:23:41 -07:00
Girish Ramakrishnan
92e4433dff
make backupdb.get return app backups
2016-03-31 09:12:12 -07:00
Girish Ramakrishnan
c4cbd9f4e4
mailer: check for the correct SPF record
2016-03-31 08:44:31 -07:00
Johannes Zellner
f413afb835
Support email login in simple auth
2016-03-31 16:59:44 +02:00
Johannes Zellner
915c37a72f
Add tests for displayName change
2016-03-31 16:24:28 +02:00
Johannes Zellner
1ddb3a58da
Also send displayName in simpleAuth
2016-03-31 16:24:28 +02:00
Girish Ramakrishnan
a4aa5bbc59
fix linting
2016-03-31 00:51:38 -07:00
Girish Ramakrishnan
39cc5d07d1
use the backupdb config to determine bucket and prefix
2016-03-31 00:50:56 -07:00
Girish Ramakrishnan
df39384056
do not save backup secrets in database
2016-03-30 23:39:48 -07:00
Girish Ramakrishnan
47c5cad239
fix typo
2016-03-30 17:06:50 -07:00
Girish Ramakrishnan
c097651a88
store backup configuration as part of backups table
2016-03-30 15:04:39 -07:00
Girish Ramakrishnan
9e8179a235
up link is relative
2016-03-29 14:02:53 -07:00
Girish Ramakrishnan
2c4cf0a505
Download intermediate cert following the 'up' Link
2016-03-29 12:51:05 -07:00
Girish Ramakrishnan
ae8a371597
add adminFqdn in the spf record
...
For custom domains, we do not set the A record for the naked domain
(because the user might be using it for his own). This means that
a:domain.com will not work.
The solution is to simply use the admin domain.
2016-03-27 23:05:29 -07:00
Girish Ramakrishnan
ead076bd9f
add MAIL_SMTP_PASSWORD
2016-03-25 23:14:09 -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
Johannes Zellner
b56bc08e9a
Allow to use email and username for ldap bind
2016-03-24 21:03:04 +01:00
Girish Ramakrishnan
a215443c56
do not renew apps without any cert
...
autoRenew was mistakenly reconfiguring app without a cert (this
is the common case for apps in non-custom domain)
2016-03-23 08:49:08 -07:00
girish@cloudron.io
d43810fea9
add comment on why we add naked domain for custom domains
2016-03-21 13:50:26 -07:00
girish@cloudron.io
b1f172ed17
trim the output string
2016-03-21 08:25:10 -07:00
Girish Ramakrishnan
413f9231b3
fix formatting
2016-03-20 12:12:22 -07:00
Girish Ramakrishnan
11513f9428
send a message for cert renewal status
2016-03-19 20:40:03 -07:00
Girish Ramakrishnan
5042741435
renew cert every 12 hours
2016-03-19 20:30:01 -07:00
Girish Ramakrishnan
75ed9c4a63
Check for key file instead of csr file
...
1) csr file in older backups got corrupt
2) new key results in a new cert request in LE (for rate limits)
2016-03-19 18:49:55 -07:00
Girish Ramakrishnan
8c36f3aab4
add debug for fallback case
2016-03-19 18:37:05 -07:00
Girish Ramakrishnan
14ef71002f
write the DER cert properly into the csr file
2016-03-19 14:07:58 -07:00
Girish Ramakrishnan
ea87841e77
merge fallback cert job into renewal
...
this is becase we need to reconfigure for the case where we got a
renewed cert (but the app was switched to fallback cert at some point)
2016-03-19 13:54:52 -07:00
Girish Ramakrishnan
20629ea078
fix linter errors
2016-03-19 13:22:38 -07:00
Girish Ramakrishnan
b1b6a9ae65
reconfigure admin using configureAdmin
2016-03-19 12:54:11 -07:00
Girish Ramakrishnan
7ddbf7b652
refactor expiry check
2016-03-19 12:50:31 -07:00
Girish Ramakrishnan
3d088aa9c4
fix debug message
2016-03-19 12:31:48 -07:00
Girish Ramakrishnan
f329e0da92
fix typo
2016-03-19 12:14:23 -07:00
Girish Ramakrishnan
a18737882b
run more aggressively in test mode
2016-03-19 12:12:39 -07:00