#87: Automate custom domain VHOST registration #89

Open
n4chung wants to merge 2 commits from n4chung/pyceo:feat-87 into master
Owner

Issue: #87

Things to complete/improve:

Instructions:

The following instructions should be listed on CSC Cloud's Wiki

Generate the correct TXT record for your CSC account:

echo "csc-verification=$(echo -n "ctdalek" | md5sum | cut -d ' ' -f 1)"

Info:
Replace ctdalek with your own CSC username!

Add a TXT record to your root domain name (ie. don't include the subdomain part). Follow your respective DNS record provider (example for Cloudflare: https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/).

**Issue**: https://git.csclub.uwaterloo.ca/public/pyceo/issues/87 **Things to complete/improve**: - Update CSC Cloud wiki section: https://docs.cloud.csclub.uwaterloo.ca/vhosts/ - Verify tests work... - Provide better output to the user; ie. what is invalid if a registration fails. **Instructions**: > The following instructions should be listed on [CSC Cloud's Wiki](https://docs.cloud.csclub.uwaterloo.ca/vhosts/) Generate the correct TXT record for your CSC account: ``` echo "csc-verification=$(echo -n "ctdalek" | md5sum | cut -d ' ' -f 1)" ``` Info: Replace `ctdalek` with your own CSC username! Add a TXT record to your root domain name (ie. don't include the subdomain part). Follow your respective DNS record provider (example for Cloudflare: https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/).
n4chung added 2 commits 2023-01-06 21:31:44 -05:00
3331e1e3ef
add fully automated vhost registrations (\#87)
Signed-off-by: n4chung <n4chung@csclub.uwaterloo.ca>
1505b07600
87: add tests for custom vhosts
Signed-off-by: n4chung <n4chung@csclub.uwaterloo.ca>
Owner

Is there a reason why we use an MD5 hash? Why not just store the username directly in the TXT record?

Is there a reason why we use an MD5 hash? Why not just store the username directly in the TXT record?
Author
Owner

Hmmm you're absolutely correct we can! In fact there isn't really a particular reason why not since all csc usernames seem to be alphanumeric...

Primarily because originally I wasn't sure what the key should be based on...

Hmmm you're absolutely correct we can! In fact there isn't really a particular reason why not since all csc usernames seem to be alphanumeric... Primarily because originally I wasn't sure what the key should be based on...
Owner

Let's fix the conflicts and the TODO comments, and then we can try testing it out with some real DNS records.

Let's fix the conflicts and the TODO comments, and then we can try testing it out with some real DNS records.
This pull request has changes conflicting with the target branch.
  • ceod/model/VHostManager.py
  • requirements.txt
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: public/pyceo#89
No description provided.