Girish Ramakrishnan
c09aa2a498
Make LE work with hyphenated domains
2018-11-01 19:08:05 -07:00
Girish Ramakrishnan
ce93518c0a
allow hyphenated subdomains on all editions
2018-10-30 20:35:35 -07:00
Girish Ramakrishnan
0ba0b009c7
make the domain locking code more clear
2018-10-30 20:35:32 -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
e7120bd086
Move renewal logic to domain model code
2018-10-24 20:32:03 -07:00
Girish Ramakrishnan
a34fe120fb
TXT values must be quoted
2018-09-27 20:17:39 -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
1d829c4af2
Allow wildcard only with programmable DNS backend
2018-09-12 12:36:13 -07:00
Girish Ramakrishnan
c138c4bb5f
acme2: implement wildcard certs
2018-09-11 23:15:50 -07:00
Girish Ramakrishnan
1067ff882a
Move type validation to routes logic
2018-09-11 22:17:40 -07:00
Girish Ramakrishnan
b6ad6e121b
refactor to validateTlsConfig
2018-09-11 21:53:18 -07:00
Girish Ramakrishnan
a756345138
consolidate hyphenatedSubdomains handling
2018-09-11 21:41:50 -07:00
Girish Ramakrishnan
3f0bc6165b
Enhance waitForDns to support TXT records
2018-09-11 19:41:38 -07:00
Girish Ramakrishnan
76f5b22c07
dns: implement wildcard dns validation
2018-09-06 20:45:10 -07:00
Girish Ramakrishnan
0639ca1594
Make wildcard a separate provider
...
this is required because the config object is not returned for
locked domains and the UI display for the provider field is then
wrong.
2018-09-06 20:09:08 -07:00
Girish Ramakrishnan
8d5e70f6aa
lock the admin domain based on the edition
2018-09-06 00:15:45 -07:00
Girish Ramakrishnan
def3521ee1
Do not allow admin domain to be deleted
2018-09-05 17:12:02 -07:00
Girish Ramakrishnan
fc96f59ecc
Add edition checks
2018-08-30 21:20:49 -07:00
Girish Ramakrishnan
534a00b3af
Disallow dot in location in hyphenatedSubdomains
2018-08-30 21:03:54 -07:00
Girish Ramakrishnan
619d1e44e5
Move validateHostname to domains code
2018-08-30 20:54:15 -07:00
Girish Ramakrishnan
068113bd5d
remove redundant domain arg to domains.fqdn
2018-08-30 19:57:12 -07:00
Girish Ramakrishnan
ca16072d90
hypenatedSubdomains: do not hyphenate txt dns records
2018-08-30 16:17:56 -07:00
Johannes Zellner
43d125b216
Send hyphenatedSubdomains as non restricted property
2018-08-22 17:19:18 +02:00
Johannes Zellner
9467a2922a
Return hyphenated subdomain name in getName()
2018-08-22 14:13:48 +02:00
Johannes Zellner
b35c81e546
Handle hyphenatedSubdomains in the backend verifyDnsConfig()
2018-08-22 12:16:19 +02:00
Johannes Zellner
59700e455e
Use the full domain record for domains.fqdn()
2018-08-22 12:15:46 +02:00
Johannes Zellner
e8fcfc4594
Allow to specify hyphenatedSubdomains for a domain
2018-08-22 11:59:42 +02:00
Johannes Zellner
163563f400
Remove now unused dnsRecordId
2018-06-29 23:14:06 +02:00
Girish Ramakrishnan
7ab5d5e50d
Add domain management scope
...
This splits the domains API into those who have just 'read' access
(i.e without configuration details) and those who have 'manage' access.
2018-06-25 15:12:22 -07:00
Girish Ramakrishnan
fd8f5e3c71
Return error for trailing dot instead
2018-06-05 21:09:07 -07:00
Girish Ramakrishnan
09163b8a2b
strip any trailing dot in the domain and zoneName
2018-06-05 20:33:14 -07:00
Girish Ramakrishnan
c3fbead658
Allow zoneName to be changed in domain update route
2018-05-15 15:39:30 -07:00
Johannes Zellner
94408c1c3d
Add name.com DNS provider
2018-05-09 18:13:14 +02:00
Girish Ramakrishnan
9981ff2495
Add GoDaddy Domain API
2018-05-06 23:07:52 -07:00
Girish Ramakrishnan
a53afbce91
Add Gandi LiveDNS backend
2018-05-06 19:48:51 -07:00
Girish Ramakrishnan
863afc68cb
DomainError -> DomainsError
2018-04-29 11:20:12 -07:00
Girish Ramakrishnan
b72efb1018
Remove private fields when listing domains
...
Currently, domains list route does not return the fallback cert.
make it future proof, just in case.
2018-04-27 11:41:30 -07:00
Girish Ramakrishnan
5263ea860d
Add cert tests
2018-02-09 11:19:47 -08: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
Johannes Zellner
3572b4eb91
Do not crash if certs cannot be found. Error object does not exist
2018-02-08 10:27:30 +01:00
Johannes Zellner
b1939e73f4
Remove all occurances of altDomain in the code
...
Tests are pending
2018-02-08 09:00:31 +01:00
Girish Ramakrishnan
8014cc8ae1
le -> letsencrypt
2018-01-31 18:53:29 -08:00
Girish Ramakrishnan
ab7448926f
Fix use of fallback certs
...
We used to always use nginx cert dir. When custom fallback certs
were set, we used to copy it in boxdata cert dir and then nginx cert dir.
The issue is then that we have to copy all certs to nginx cert dir on
cloudron restore.
To fix this, we simply give priority to nginx cert dir and not copy
around certs anymore. caas cert will reside in nginx cert dir and
not get backed up, as expected.
2018-01-31 18:20:29 -08:00
Johannes Zellner
31be178210
Add tlsConfig provider validation
2018-01-31 18:20:11 +01:00
Johannes Zellner
75775fa192
Add tlsConfig in domain model code
2018-01-31 16:57:59 +01:00
Girish Ramakrishnan
f379724128
merge certificates.js and nginx.js to reverseproxy.js
...
when certs change, we have to call into nginx anyway. since they
go hand in hand, just merge those files. modern reverse proxies
do this job integrated already.
2018-01-30 12:26:09 -08:00
Girish Ramakrishnan
3336614702
Make getFallbackCertificate return path like getCertificate
2018-01-30 11:30:35 -08:00
Girish Ramakrishnan
c57c372adf
remove config.fqdn() completely
2018-01-29 15:11:43 -08:00
Girish Ramakrishnan
4c78a2933f
config.setZoneName is gone
2018-01-29 09:06:01 -08:00