Skip to content
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

check for underscore for https #147

Merged
merged 6 commits into from
Oct 11, 2022
Merged

check for underscore for https #147

merged 6 commits into from
Oct 11, 2022

Conversation

GretaP
Copy link
Contributor

@GretaP GretaP commented Oct 11, 2022

Add check for underscores for custom domain certificates

@GretaP GretaP requested a review from yoannchaudet October 11, 2022 18:33
@GretaP GretaP requested a review from TooManyBees October 11, 2022 18:49
@GretaP GretaP marked this pull request as ready for review October 11, 2022 18:51
TooManyBees
TooManyBees previously approved these changes Oct 11, 2022
Copy link
Contributor

@parkr parkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive by comment! Hi!


# Can't have underscores in the domain name
return false if host.include?("_")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this invalidate the domain name as well, or just HTTPS eligibility? Does GitHub have many customer custom domains with underscores?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there!

We do have people on HTTP only and with a _ in their domain name unfortunately 🙈. Some are using Cloudflare which does issue certs, but Let's Encrypt does not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love the edge cases! 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are full of them!

yoannchaudet
yoannchaudet previously approved these changes Oct 11, 2022
Copy link
Contributor

@yoannchaudet yoannchaudet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. That will matches the current state which is, if a domain name contains _, we are unable to obtain a TLS certificate from Let's Encrypt today.

@yoannchaudet yoannchaudet dismissed stale reviews from TooManyBees and themself via e9b9079 October 11, 2022 22:19
@yoannchaudet yoannchaudet merged commit 67abe4a into master Oct 11, 2022
@JamesMGreene JamesMGreene deleted the update_https_rules branch January 13, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants