dexmach-csp / azure-csp-securescore

Scanning solution for Microsoft CSP partners to gain insights on the security posture of their linked customers
https://www.dexmach.com/
GNU Affero General Public License v3.0
21 stars 11 forks source link

Azure customer filter is matching to many offers #3

Open jaspercottenie opened 1 year ago

jaspercottenie commented 1 year ago

Current filter on the offer plans to get a list of all partner portal customers that are Azure customers is matching to many offers. The matching statement should be adjusted to more accurately match the 'Azure plan' offer. Current implementation will take other Azure offers in consideration which starts the attempted scan and adds the customer to the issue list while that customer could be pre-filtered. Adjusting the filter will enhance performance and leave out unnecessary customer scans.

A simple adjustment towards matching with 'azure plan' is not enough. Take a broader view on all possible offer names and make sure that the adjustment is covering the correct scenario.