Skip to content

refactor: support TLS private key of RSA format and add the full test certificates generation#885

Merged
killme2008 merged 1 commit intoGreptimeTeam:developfrom
zyy17:refactor/add-tls-rsa-key
Jan 19, 2023
Merged

refactor: support TLS private key of RSA format and add the full test certificates generation#885
killme2008 merged 1 commit intoGreptimeTeam:developfrom
zyy17:refactor/add-tls-rsa-key

Conversation

@zyy17
Copy link
Copy Markdown
Collaborator

@zyy17 zyy17 commented Jan 17, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

  • Support TLS private key of RSA format that is more common

  • Add the full test certificates generation

    Execute the src/servers/tests/ssl/gen-certs.sh and it will generate the full self-signed certificates(including root CA) with private keys of RSA and PKCS8 format.

Please explain IN DETAIL what the changes are in this PR and why they are needed:

  • Summarize your change (mandatory)
  • How does this PR work? Need a brief introduction for the changed logic (optional)
  • Describe clearly one logical change and avoid lazy messages (optional)
  • Describe any limitations of the current code (optional)

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

… certificates generation

chore: add the full certificate generation

Signed-off-by: zyy17 <zyylsxm@gmail.com>
@zyy17 zyy17 requested review from killme2008 and sunng87 January 17, 2023 04:19
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 17, 2023

Codecov Report

Merging #885 (df7dea7) into develop (bae0243) will decrease coverage by 0.03%.
The diff coverage is 90.00%.

@@             Coverage Diff             @@
##           develop     #885      +/-   ##
===========================================
- Coverage    86.25%   86.21%   -0.04%     
===========================================
  Files          425      427       +2     
  Lines        56638    57300     +662     
===========================================
+ Hits         48853    49402     +549     
- Misses        7785     7898     +113     
Flag Coverage Δ
rust 86.21% <90.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/servers/src/tls.rs 99.34% <90.00%> (-0.66%) ⬇️
src/object-store/src/test_util.rs 0.00% <0.00%> (-100.00%) ⬇️
src/datanode/src/instance.rs 49.76% <0.00%> (-16.11%) ⬇️
tests-integration/src/test_util.rs 87.55% <0.00%> (-11.99%) ⬇️
src/common/time/src/range.rs 93.19% <0.00%> (-6.81%) ⬇️
src/sql/src/error.rs 79.36% <0.00%> (-1.29%) ⬇️
src/cmd/src/error.rs 91.78% <0.00%> (-1.28%) ⬇️
src/servers/src/mysql/writer.rs 70.22% <0.00%> (-1.09%) ⬇️
src/cmd/src/datanode.rs 77.48% <0.00%> (-0.75%) ⬇️
src/meta-srv/src/handler/node_stat.rs 77.94% <0.00%> (-0.19%) ⬇️
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment thread src/servers/src/tls.rs
Copy link
Copy Markdown
Member

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 merged commit cc46194 into GreptimeTeam:develop Jan 19, 2023
@zyy17 zyy17 deleted the refactor/add-tls-rsa-key branch March 17, 2023 07:59
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
… certificates generation (GreptimeTeam#885)

chore: add the full certificate generation

Signed-off-by: zyy17 <zyylsxm@gmail.com>

Signed-off-by: zyy17 <zyylsxm@gmail.com>
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.

3 participants