restapi: Remove sensitive response fields for non-admin users - #1020
restapi: Remove sensitive response fields for non-admin users#1020Artemi10 wants to merge 1 commit into
Conversation
Non-admin users can access detailed information such as MTU, CPU information, library information and other internal configuration data through network, host and storage domain API.This commit adds logic to remove these fields from responses for non-admin users to prevent unintentional data exposure. Fields that are required by the VM Portal are retained to ensure existing functionality is not broken. Signed-off-by: Liakh Artemii <aliakh@orionsoft.ru>
dupondje
left a comment
There was a problem hiding this comment.
Search for isFiltered() in the backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/*** files.
This should be implemented the same way then for additional fields you want to hide.
@dupondje I looked into the To avoid this, implemented a separate method
|
Non-admin users can access detailed information such as MTU, CPU information, library information and other internal configuration data through network, host and storage domain API.This commit adds logic to remove these fields from responses for non-admin users to prevent unintentional data exposure. Fields that are required by the VM Portal are retained to ensure existing functionality is not broken.
Changes introduced with this PR
Before fix

After fix

Before fix

After fix

Before fix

After fix

Are you the owner of the code you are sending in, or do you have permission of the owner?
Yes