volume: fix volume metrics view from returning sensitive info to end user#3222
volume: fix volume metrics view from returning sensitive info to end user#3222yadvr merged 2 commits intoapache:masterfrom
Conversation
|
@rhtyd please add appropriate labels for this PR @blueorangutan package |
|
@dhlaluku a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2630 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3427)
|
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✖centos7 ✔debian. JID-2763 |
|
just in case someone needs to play with this: |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@rhtyd I saw more PRs on this subject. Is this still relevant? LGTM |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2786 |
|
Yes this is relevant @DaanHoogland thanks. |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
|
Trillian test result (tid-3583)
|
|
@blueorangutan test centos7 vmware-65u2 |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
|
@blueorangutan test centos7 vmware-65u2 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests |
…dmins * Show disk utilization metrics for all user types
622b950 to
5dc7236
Compare
|
@blueorangutan package |
|
Rebased to remove merge conflicts @rhtyd , @shwstppr , @borisstoyanov |
|
@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-2862 |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, test results attached
test_results.xlsx
Description
Problem: The listVolumeMetrics API response does not honor the volume detail visibility restrictions set for normal users and returns sensitive information which should only be visible to the root admin.
Root Cause: The listVolumeMetrics API response extends the ListVolumesByAdmin API internally and this results in a full display view response that is only meant for the root admin.
Solution: This has been fixed by rectifying the API response to not show ‘physical size’, 'storage type', and ‘storage pool’ information. The UI has also been fixed to hide these columns for normal users.
Types of changes
Screenshots (if appropriate):
User metrics view from the UI with physical size, storage type, and storage pool details hideen

Admin Response contains the full display view/results

How Has This Been Tested?