-
-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Add deSEC Flexibility. #1988
Comments
@RJ-Make Thanks for your feedback and pointers!
Well, you can't register someone else's domain or email. :) But sure, I agree that it would be cool if you could add domains to an existing email account so that you don't need to enter a brand new email account every time the script is run. I'm not sure about how the API looks here, but that would open up for adding Collabora, Talk, and other domains as well on the same account. The manual way of doing it would be to enter the domain in your admin panel before you run the scripts in question.
There already is such a function actually. I think it was implemented after you ran the script for the first time. Now you can choose whichever port you want between 1024 - 49151. Port 80 is only used for HTTP, and it's redirected if to a secure port in any case. Have a look here: https://github.com/nextcloud/vm/blob/master/lets-encrypt/activate-tls.sh#L240 If you want to change port yourself afterwards it can also be done manually in the Apache2 configs.
The script is designed to setup one domain, once done you can go to the deSEC admin portal yourself and change it. I don't know if it's possible from the API to change your domain on an already existing account. @peterthomassen Any thoughts on above? |
It's currently not possible to rename a domain in our API, and I don't think we'll implement that, as it comes with a lot of ill-defined edge cases. If you want to change the domain name, you need to log into your account, create a new domain and then configure fresh records for that domain. I agree though that the preferred solution should be one that does not require users to interact with our support. :-) As for the ill-defined edge cases: If your domain is Things become more complicated if you use DANE (TLS certificate or PGP key pinning via DNS): Should you transfer pinned keys to the new domain? -- My impression is that it's impossible to do this correctly in a generic way, and the consequence is that it can only be done manually. (fyi @nils-wisiol) |
Not sure if it's possible, but say the function asks for the users token and existing domain (after the first "fork" question). I have to assume there is a method to return authentication. So if authenticated = true then the domain must be owned by the script user? I would think this would prevent the need to delete/merge a domain/account to get it setup?
Could you elaborate on this? I had to delete my deSEC account (and domain) if I wanted to use the same domain again if I re-ran the script when I kept running into bugs in getting the certificate created correctly.
Yep, That was the version I ran when the bugs finally got sorted out, which was great. I was referring to subsequently changing the port.
I will assume, like me, other customers of the product don't have the working knowledge of safely making such changes and is the sole reason we purchase the product in the first place. I rely on the experts, such as yourself, to help us make those changes without messing everything up. :-) I wouldn't even know where to find that file, much less know how and what to change. Just thinking about how to make the user experience better running through the product's functions. Which I have got to say has improved greatly from the GEN 1 product I purchased last year. Thank You! |
Oh I missed the last part.. I'm not asking for a function to re-name an existing domain, but to simply choose another domain name without having to delete/merge my deSEC account. deSEC allows it's users to create multiple domains. Example: I originally chose xyz.dedyn.io as my domain, but later wanted to use abc.dedyn.io (one I created in my deSEC control panel). I would think if my #1 enhancement in my first post was achieved, it would solve this one also? |
@peterthomassen Would it be possible to add more domains to an account if you have the I think the main question here is: Is it possible to register more domains to the same email-address (account) with the API? Right now you need a unique email-address to be able to run the deSEC script, each time. |
Just found out it is possible. Testing with this:
|
PR is here: #1991 |
@RJ-Make Please download and run the script in the PR to test if it's working.
TODO: add TLS |
I get this when I enter wget https://raw.githubusercontent.com/nextcloud/vm/desec_subdomain/addons/desec_subdomain.sh. |
@RJ-Make Sorry, it was merged before you tried. Use this link: https://raw.githubusercontent.com/nextcloud/vm/master/addons/desec_subdomain.sh |
I entered talk.xxx.dedyn.io (which appears to have been incorrect) The created result in the session was
|
@RJ-Make You should only enter the subdomain name, so talk would be the one in your case. When done you currently need to add TLS manually by running the Activate TLS script on that domain. |
@RJ-Make It's now possible to add TLS to the domain as well. Please run the script again to test if it works:
Please report back. |
I will add, the script thought the process completed without errors. EDIT: This is a domain already created in my deSEC account. |
I have a feeling this is screwing things up. I'll delete my talk entry and re-test tomorrow. |
Please remove both talk records and try again. Thanks! |
OK, great! The the deSEC script is working in the current state! 🚀 Please open another issue for the issue with Talk and I'll ping the right people. |
Integrated deSEC is just plain awesome, and now that it's working I loved how easy it was. After literally running through the latest GEN 2 Script over 10 times I have made some observations in regards to the deSEC implementation.
And if any of these are incorrect please correct me.
Perhaps this was not implemented in such a way for simplicity reasons for people like me, but trust me, I'm an idot when it comes to this stuff and even I can understand. :-)
Add a mechanism in the function to change the port number. This IS the sole reason I love the deSEC implementation. Having port 80 open has always bothered me. However it doesn't seem possible to change the port after the function has been run?
Add a mechanism in the function to change the domain. I don't believe asking deSEC admins to merge accounts, etc is a fair solution IMO.
Anyway, thanks for reading and thanks for continuing to improve the product.
The text was updated successfully, but these errors were encountered: