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

fix: allow trailing period in SNI and CN for SSL #11414

Merged
merged 7 commits into from
Jul 18, 2024

Conversation

shreemaan-abhishek
Copy link
Contributor

Description

APISIX would disallow requests under TLS if there was a mismatch based difference of presence/absence of a trailing period between SNI and CN. This has been fixed.

Check test cases for more info.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

apisix/ssl.lua Outdated
@@ -212,6 +214,7 @@ end


function _M.fetch_cert(sni, cert)
core.log.warn(debug.traceback())
Copy link
Member

Choose a reason for hiding this comment

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

can we remove this debug log? others LGTM

@Revolyssup Revolyssup self-requested a review July 18, 2024 06:44
@shreemaan-abhishek shreemaan-abhishek merged commit 85a6348 into apache:master Jul 18, 2024
31 checks passed
@shreemaan-abhishek shreemaan-abhishek deleted the fix-trailing-dot branch July 18, 2024 09:16
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