feat: Add automatic SSL certificate selection when creating a website with HTTPS enabled#10789
Conversation
… with HTTPS enabled Optimize the default selection logic after the SSL list is loaded. Add a flagging mechanism for manual SSL certificate selection, which disables automatic selection once triggered. Add listeners for changes to the primary and more domains to trigger this automatic selection logic.
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
感谢支持。 |
Optimize the default selection logic after the SSL list is loaded. Add a flagging mechanism for manual SSL certificate selection, which disables automatic selection once triggered. Add listeners for changes to the primary and more domains to trigger this automatic selection logic.
What this PR does / why we need it?
在创建网站时,启用https时默认填充id最大的证书上去,用户还需要再打开选择框,选择一个合适的证书使用,看了下代码发现前端拿到了全部的证书,理论上可以前端手动做一个优先级匹配,猜出用户要使用的证书,从而让用户少选一步,提高整体网站创建的一个流畅度
Summary of your change
1.在用户创建网站时,如果用户已经输入了域名,那么启用https时会自动按照匹配的程度填充一个证书到选择框中
2. 如果用户手动选择了,则后续不会尝试填充域名
3.填充的顺序总体按照 匹配比例 > 匹配数量 > id
Please indicate you've done the following: