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

nginx: fix server_name case-sensitivity in parser #8263

Merged

Conversation

alexzorin
Copy link
Collaborator

This commit fixes an issue with the nginx parser where it would perform
case-sensitive matching against server_name.

This would cause the authenticator and installer to ignore existing
virtualhosts containing uppercase characters, resulting in duplicate
virtualhosts and broken configurations.

"Exact" and "wildcard" matching is now case-insensitive. Regex-based
matching will continue to respect the case mode of the pattern.

Fixes #6776.

This commit fixes an issue with the nginx parser where it would perform
case-sensitive matching against server_name.

This would cause the authenticator and installer to ignore existing
virtualhosts containing uppercase characters, resulting in duplicate
virtualhosts and broken configurations.

"Exact" and "wildcard" matching is now case-insensitive. Regex-based
matching will continue to respect the case mode of the pattern.

Fixes certbot#6776.
Copy link
Contributor

@ohemorange ohemorange left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@ohemorange ohemorange merged commit 95a6b61 into certbot:master Sep 8, 2020
@alexzorin
Copy link
Collaborator Author

I didn't get a chance to merge master after 1.9.0 was released, shall I submit another PR to move the changelog entry into the right section?

alexzorin added a commit to alexzorin/certbot that referenced this pull request Sep 8, 2020
@ohemorange
Copy link
Contributor

ohemorange commented Sep 8, 2020

AH nice catch, yes please, thanks!

@bmw
Copy link
Member

bmw commented Sep 8, 2020

This happened to me recently too in #8212. I created #8272 to look into if there is a good way for us to automatically avoid these issues if anyone has any ideas.

bmw pushed a commit that referenced this pull request Sep 9, 2020
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.

certbot adds acme-challenge to wrong config, if domain name is not lower case
3 participants