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: remove multiple registered domain for TLS managed certificates #173

Conversation

mavimo
Copy link
Member

@mavimo mavimo commented Nov 5, 2023

During the code review for the contribution #133 when added test we notice that we register the same domain multiple time, this PR add test to cover the TLS plugin and fix the underground problem.

@mavimo mavimo requested a review from Embraser01 November 5, 2023 09:58
@mavimo mavimo self-assigned this Nov 5, 2023
Copy link

codecov bot commented Nov 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f6f91c) 37.08% compared to head (6bc4dd9) 42.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
+ Coverage   37.08%   42.19%   +5.10%     
==========================================
  Files          12       12              
  Lines         364      365       +1     
==========================================
+ Hits          135      154      +19     
+ Misses        228      210      -18     
  Partials        1        1              
Files Coverage Δ
internal/caddy/global/tls.go 100.00% <100.00%> (+75.00%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mavimo mavimo requested a review from mholt November 5, 2023 11:20
@mavimo mavimo mentioned this pull request Nov 5, 2023
@mavimo mavimo enabled auto-merge (squash) November 5, 2023 13:07
@mavimo mavimo force-pushed the fix-remove-multiple-registered-domain-for-tls-managed-certificates branch from 68a01e9 to 6bc4dd9 Compare November 5, 2023 13:07
@mavimo mavimo merged commit c5abad0 into master Nov 5, 2023
4 checks passed
@mavimo mavimo deleted the fix-remove-multiple-registered-domain-for-tls-managed-certificates branch November 5, 2023 13:12
mavimo added a commit to Xinayder/caddy-ingress-controller that referenced this pull request Nov 7, 2023
…addyserver#173)

* fix: add tests for TLS plugin

* fix: do not register the same host multiple times in TLS plugin
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.

2 participants