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

[ISSUE #966] Support configuration encryption function #1124

Merged
merged 1 commit into from May 26, 2023

Conversation

chuntaojun
Copy link
Member

@chuntaojun chuntaojun commented May 14, 2023

Please provide issue(s) of this PR:
Fixes #966

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

  • ApiServer
  • Auth
  • Configuration
  • Naming
  • HealthCheck
  • Metrics
  • Docs
  • Installation
  • Performance and Scalability
  • Test and Release

Please check any characteristics that apply to this pull request.

  • Does not have any user-facing changes. This may include API changes, behavior changes, performance improvements, etc.

@polaris-test-bot
Copy link

polaris-test-bot commented May 14, 2023

2023-05-14 12:42:51: =========TEST START==========
2023-05-14 13:10:35: [STANDALONE VERSION]PR autotest FAILED! We executed 33 test cases and 32 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-14 13:10:39: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-14 13:10:43: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-14 15:30:35: =========TEST START==========
2023-05-14 15:57:57: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-14 15:58:00: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-14 15:58:04: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-15 16:12:59: =========TEST START==========
2023-05-15 16:44:33: [STANDALONE VERSION]PR autotest FAILED! We executed 24 test cases and 23 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-15 16:44:37: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-15 16:44:40: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-15 19:48:07: =========TEST START==========
2023-05-15 20:31:49: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-15 20:31:53: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-15 20:31:57: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-18 16:39:00: =========TEST START==========
2023-05-18 16:39:48: 构建失败 !本次自动化测试将终止!失败原因:bash ./release/build.sh v1.17.0
2023-05-19 11:22:52: =========TEST START==========
2023-05-19 11:33:09: =========TEST START==========
2023-05-19 12:10:32: [STANDALONE VERSION]PR autotest FAILED! We executed 33 test cases and 32 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-19 12:10:36: [CLUSTER VERSION] PR autotest FAILED! We executed 25 test cases and 24 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-19 12:10:40: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-19 13:04:46: =========TEST START==========
2023-05-19 13:34:58: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-19 13:35:02: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-19 13:35:06: [KUBENETES VERSION]PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-22 10:22:30: =========TEST START==========
2023-05-22 10:49:02: [STANDALONE VERSION]PR autotest FAILED! We executed 33 test cases and 32 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-22 10:49:05: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-22 10:49:09: [KUBENETES VERSION]PR autotest FAILED! We executed 5 test cases and 0 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-22 11:29:29: =========TEST START==========
2023-05-22 11:57:35: [STANDALONE VERSION]PR autotest FAILED! We executed 33 test cases and 32 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-22 11:57:38: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-22 11:57:42: [KUBENETES VERSION]PR autotest FAILED! We executed 5 test cases and 0 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-22 17:45:38: =========TEST START==========
2023-05-22 18:16:48: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-22 18:16:52: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-22 18:16:55: [KUBENETES VERSION]PR autotest FAILED! We executed 5 test cases and 0 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-24 10:06:58: =========TEST START==========
2023-05-24 10:33:00: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-24 10:33:04: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-24 10:33:08: [KUBENETES VERSION]PR autotest FAILED! We executed 5 test cases and 0 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html
2023-05-25 19:32:50: =========TEST START==========
2023-05-25 20:01:21: [STANDALONE VERSION]PR autotest PASSED! We executed 33 test cases and 33 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/qta-report.html and https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/sta/ratelimit/qta-report.html
2023-05-25 20:01:25: [CLUSTER VERSION] PR autotest PASSED! We executed 25 test cases and 25 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/clu/qta-report.html
2023-05-25 20:01:28: [KUBENETES VERSION]PR autotest FAILED! We executed 5 test cases and 0 were passed. You can see test report in https://polaris-opentest-1306863770.cos.ap-guangzhou.myqcloud.com/pr1349698287/k8s/qta-report.html

@alexwanglei alexwanglei force-pushed the feat/encrypt-config branch 3 times, most recently from ad83c53 to 3f8df56 Compare May 15, 2023 11:47
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #1124 (1e935c2) into main (febe7c0) will decrease coverage by 0.19%.
The diff coverage is 44.84%.

❗ Current head 1e935c2 differs from pull request most recent head 7e6e236. Consider uploading reports for the commit 7e6e236 to get more accurate results

@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
- Coverage   57.35%   57.17%   -0.19%     
==========================================
  Files         210      211       +1     
  Lines       37710    38291     +581     
==========================================
+ Hits        21630    21892     +262     
- Misses      13508    13772     +264     
- Partials     2572     2627      +55     
Impacted Files Coverage Δ
plugin/plugin.go 66.66% <ø> (ø)
plugin/whitelist.go 0.00% <ø> (ø)
config/server.go 43.18% <25.00%> (-0.87%) ⬇️
config/config_file_release.go 38.32% <25.58%> (-2.99%) ⬇️
config/config_file_release_history.go 52.46% <33.96%> (-10.04%) ⬇️
config/config_file.go 48.96% <34.69%> (-2.76%) ⬇️
cache/config_file.go 75.82% <40.74%> (-2.01%) ⬇️
config/client_config_file.go 42.74% <42.50%> (-2.52%) ⬇️
plugin/crypto.go 50.79% <50.79%> (ø)
config/server_authability.go 84.41% <74.19%> (+3.92%) ⬆️
... and 4 more

... and 9 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

plugin/configcrypto/crypto.go Outdated Show resolved Hide resolved
release/conf/polaris-server.yaml Outdated Show resolved Hide resolved
@chuntaojun
Copy link
Member Author

1、配置文件的 tag 可以多加一个类型:配置加密算法的选择
2、配置文件加密插件可以是一个 list,用户可以启用多个配置加密插件

@alexwanglei alexwanglei force-pushed the feat/encrypt-config branch 7 times, most recently from d9edebc to 1e935c2 Compare May 24, 2023 02:06
@chuntaojun chuntaojun changed the title 支持配置加密功能 [ISSUE #966] 支持配置加密功能 May 26, 2023
@chuntaojun chuntaojun changed the title [ISSUE #966] 支持配置加密功能 [ISSUE #966] Support configuration encryption function May 26, 2023
@chuntaojun chuntaojun merged commit a3ee295 into polarismesh:main May 26, 2023
4 of 7 checks passed
@chuntaojun chuntaojun added this to the v1.17.2 milestone Jun 14, 2023
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