pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
409 stars 304 forks source link

playground: auto tiproxy sign certs #2372

Closed xhebox closed 3 months ago

xhebox commented 5 months ago

What problem does this PR solve?

User needs to manually set session-xxxxx for tidb, to make tiproxy migration works. However, we could just generate a self-signed cert automatically. There is no security implication: the only requirement for this cert, is that, it should be same on all tidb instances.

Check List

Tests

Code changes

Side effects

Related changes

Release notes:

Enable tiproxy connection migration by default on playground
ti-chi-bot[bot] commented 5 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign kaaaaaaang for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/pingcap/tiup/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
codecov-commenter commented 5 months ago

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (271d5ea) 50.19% compared to head (6059a2d) 55.30%.

:exclamation: Current head 6059a2d differs from pull request most recent head c0e1bee. Consider uploading reports for the commit c0e1bee to get more accurate results

Files Patch % Lines
components/playground/instance/tiproxy.go 0.00% 27 Missing :warning:
components/playground/instance/tidb_config.go 50.00% 3 Missing and 1 partial :warning:
components/playground/playground.go 25.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2372 +/- ## ========================================== + Coverage 50.19% 55.30% +5.11% ========================================== Files 328 329 +1 Lines 35009 35059 +50 ========================================== + Hits 17571 19389 +1818 + Misses 15118 13334 -1784 - Partials 2320 2336 +16 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2372/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.32% <22.73%> (-0.01%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.60% <ø> (ø)` | | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2372/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.24% <0.00%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.