CLOUDSTACK-9901 secure and hidden config values are returned as plaintext string - #927
Conversation
|
Code-wise it looks good, but is it possible that you add a unit test? |
|
Results of set of tests that I run on this branch (which I rebased myself first): Result: The 3 errors at the bottom are due to CLOUDSTACK-8991 and unrelated to this PR. And: Result: The test |
|
@karuturi I tested the Result: |
|
It might break compatibility as for some configs (global configs) people might be consuming global settings. With this change, list configuration API would return encrypted values which client or users won't know how to decrypt as they don't the encryption key. |
|
I'm not sure the best to deal with it, but I would avoid putting extra security if that gets into the way of tuning the system. |
1e4ea03 to
4919210
Compare
|
@karuturi Any updates? |
|
@karuturi please rebase against latest master LGTM tag:easypr |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
4919210 to
a6299ce
Compare
|
LGTM. |
a6299ce to
563b945
Compare
563b945 to
c2c3712
Compare
|
Code changes looks good to me. |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM based on code review
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-481 |
|
@blueorangutan test |
|
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-816)
|
|
Smoke test test_internal_lb.py uses a value of network.loadbalancer.haproxy.stats.auth which is encrypted for haproxy checks. settings["username"], settings["password"] = Configurations.list( Looks like the test needs to be reworked to support decryption. test_04_rvpc_internallb_haproxy_stats_on_all_interfaces (tests.smoke.test_internal_lb.TestInternalLb): DEBUG: ========Sending GET Cmd : listConfigurations======= |
|
@serg38 Thanks for filtering the error :) My tests run has been with encryption disabled. I think trillion runs with db encryption enabled. I will check on how I can decrypt the value in tests. I will try and fix the marvin test. Any suggestions on how to run jasypt encryption and decryption in python? |
c2c3712 to
f795a44
Compare
f795a44 to
37c4b92
Compare
d7c9deb to
3fed275
Compare
…text string secure and hidden config values are first unencrypted before returning them in the api. This is not desired as they are secure configs returning encrypted strings for secure and hidden configs if encryption is enabled.
…text fixed a testcase which was using encypted value.
|
update the PR with testcase fix |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
|
LGTM @rhtyd @borisstoyanov @DaanHoogland Can we run B.O. for this PR? |
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-696 |
|
@blueorangutan test |
|
@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1057)
|
|
tag:mergeready |
|
@karuturi , you want to merge this? |
secure and hidden config values are first unencrypted before returning
them in the api. This is not desired as they are secure configs
returning encrypted strings for secure and hidden configs if encryption
is enabled.