Girish Ramakrishnan
802011bb7e
Fix args to shell.sudo
2018-11-25 14:57:51 -08:00
Girish Ramakrishnan
aae259479f
move configure webadmin and status out of setup logic
2018-11-11 09:56:01 -08:00
Girish Ramakrishnan
6ec36c9605
Do not crash if platform.start fails
...
With this change, the box code always starts up even if nginx fails,
docker fails etc.
2018-11-10 18:34:37 -08:00
Girish Ramakrishnan
bd2b03876b
Add users.isActivated
...
it's easier to see where we do activation checks
2018-11-10 18:09:00 -08:00
Girish Ramakrishnan
eddcc6fe27
Fix another test
2018-11-10 01:35:49 -08:00
Girish Ramakrishnan
953b55439c
eventlog: add domain events
2018-11-10 01:25:34 -08:00
Girish Ramakrishnan
eef6056174
bump timeout of setup route
2018-11-05 16:55:46 -08:00
Girish Ramakrishnan
a1dfc758c6
Fix debug
2018-11-02 17:10:16 -07:00
Girish Ramakrishnan
ff3a4f65dd
autoprovision: register cloudron when provided appstore config
2018-11-01 22:28:51 -07:00
Girish Ramakrishnan
63946509b3
Get autoconf data as separate object
...
This was done because restore API already takes a backupConfig.
So, it's best to split up the primary parameters and the autoconf
2018-10-30 19:27:14 -07:00
Girish Ramakrishnan
668ff99450
Add support for restricted certs as part of dns setup
2018-10-30 18:15:26 -07:00
Girish Ramakrishnan
03984a811f
dnsSetup -> setup
...
It now takes a dnsConfig object. It will end up taking other config
objects for provisioning.
2018-10-30 14:01:02 -07:00
Girish Ramakrishnan
a504759b95
more debugs and comments
2018-09-26 12:39:33 -07:00
Girish Ramakrishnan
e69004548b
waitForDnsRecord: use subdomain as argument
...
this allows to hyphenate the subdomain correctly in all places
the original issue was that altDomain in caas was not working
because waitForDnsRecord was not hyphenating.
2018-09-22 11:26:33 -07:00
Girish Ramakrishnan
3f0bc6165b
Enhance waitForDns to support TXT records
2018-09-11 19:41:38 -07:00
Girish Ramakrishnan
976cf1740e
Put edition in status route
2018-08-28 21:43:25 -07:00
Girish Ramakrishnan
e49b57294d
Give optional name for tokens
2018-08-27 14:59:52 -07:00
Girish Ramakrishnan
fba70d888b
Remove tokenScopes
...
decided that the UI won't use this any more and will just the admin flag
2018-08-03 10:07:23 -07:00
Girish Ramakrishnan
56ca6f449f
Set any restore errors in status object
...
Fixes #505
2018-07-29 20:31:58 -07:00
Girish Ramakrishnan
c09ae963e9
merge set/addDnsRecords
...
This also makes the update mail domain route redundant
2018-07-25 10:51:21 -07:00
Girish Ramakrishnan
fa30312cea
lint
2018-07-25 10:34:57 -07:00
Girish Ramakrishnan
9aa74c99fc
Make setup route return tokenScopes
...
This is used by the dashboard logic during initial activation
2018-06-29 08:27:34 -07:00
Girish Ramakrishnan
dfa318e898
Add ownerId for apps
...
This tracks who installed the app.
2018-06-28 14:13:12 -07:00
Girish Ramakrishnan
38977858aa
When issuing token intersect with the existing user roles
...
Also:
* Move token validation to accesscontrol.js
* Use clients.addTokenByUserId everywhere
2018-06-28 00:07:43 -07:00
Girish Ramakrishnan
898cbd01b3
tokens table always has canonical scope
2018-06-17 23:11:36 -07:00
Girish Ramakrishnan
900225957e
typo: code should return SetupError
2018-06-05 21:19:47 -07:00
Girish Ramakrishnan
7382ea2b04
Handle my subdomain already existing
2018-06-05 20:53:28 -07:00
Girish Ramakrishnan
953398c427
lint
2018-06-05 20:02:47 -07:00
Girish Ramakrishnan
c5ffb65563
Fix usage of normalizeScope
2018-05-01 13:21:53 -07:00
Girish Ramakrishnan
61d803f528
Use SCOPE_ANY everywhere
2018-04-30 21:44:24 -07:00
Girish Ramakrishnan
b5f8ca6c16
Fix nasssty typo
2018-04-29 17:50:12 -07:00
Girish Ramakrishnan
d8acf92929
UserError -> UsersError
2018-04-29 11:22:15 -07:00
Girish Ramakrishnan
863afc68cb
DomainError -> DomainsError
2018-04-29 11:20:12 -07:00
Girish Ramakrishnan
4fd58fb46b
Rename user.js to users.js
2018-04-29 11:19:04 -07:00
Johannes Zellner
60381d938e
Fix search and replace mistake
2018-04-11 15:29:37 +02:00
Girish Ramakrishnan
5af657ee22
rename mail crud functions
2018-04-03 15:06:14 -07:00
Girish Ramakrishnan
61243f6a09
Wait for DNS records call to finish
2018-03-08 20:08:01 -08:00
Girish Ramakrishnan
2e156aa34a
simplify the configureWebadmin logic
2018-03-08 18:26:44 -08:00
Girish Ramakrishnan
440629530f
remove redundant check for "test" mode
2018-03-08 18:15:09 -08:00
Girish Ramakrishnan
6bc5add023
Add a way to re-sync mail DNS records
...
Also, make restore resync the admin domain record which gets messed
up by the dns setup
2018-03-08 17:59:53 -08:00
Girish Ramakrishnan
66f251be06
dnsSetup must fail if domain already exists
2018-03-08 15:10:38 -08:00
Girish Ramakrishnan
b7bf5b180c
Display the format as well
2018-03-07 13:59:17 -08:00
Johannes Zellner
721a4c4349
Validate the adminFqdn in dns setup route
2018-02-09 12:43:03 +01:00
Girish Ramakrishnan
d31c948d3e
Remove type argument from waitForDns
...
The function is going to be changed to handle only A/CNAME records
2018-02-08 14:24:11 -08:00
Girish Ramakrishnan
3b987f1970
DNS -> Dns
2018-02-08 12:05:29 -08:00
Girish Ramakrishnan
ad152bacdd
Do not allow dns setup and restore to run in parallel
...
In the e2e, we did not check the webadminStatus after a dnsSetup
and immediately rushed into restore. This ended up mangling the
cert/key files of the admin domain.
2018-02-05 09:35:16 -08:00
Girish Ramakrishnan
17128f0b56
Start the platform code only after 3 secs
2018-01-31 22:16:06 -08:00
Girish Ramakrishnan
d915ea348f
cloudron-setup: tls-provider is obsolete
2018-01-31 20:10:47 -08:00
Johannes Zellner
0b31568c14
Remove tlsConfig from the settings code
2018-01-31 18:27:31 +01:00
Johannes Zellner
1ec294a04b
Add tlsConfig to domains and setup rest apis
2018-01-31 17:42:26 +01:00