aquasecurity / aquasecurity/cloudsploit

Azure no result

Open
#1,728 9 comments 1 reaction 1 assignee Claimed by @alphadev4 View on GitHub
bug
Dominant language
JavaScript
Stars
3.8k
Forks
751
Avg merge
11d 9h
Merged PRs (30d)
3

Description

The config.js include the current credential for azure, and i use the command belong to generate the report
```
./index.js --json=azure.json --junit=azure.xml --cloud=azure --config=./config.js
```
But it throw the issue, and nothing return to json and xml file.

```
url: https://management.azure.com//subscriptions/78131263-201b-4c2e-8ba9-57731b087025/resourceGroups/rg-flowlity-global/providers/Microsoft.Storage/storageAccounts/stdatasynctrigger/listKeys?api-version=2019-06-01 obj: {"url":"https://management.azure.com//subscriptions/78131263-201b-4c2e-8ba9-57731b087025/resourceGroups/rg-flowlity-global/providers/Microsoft.Storage/storageAccounts/stdatasynctrigger/listKeys?api-version=2019-06-01","post":true,"rateLimit":3000} localData: undefined

INFO: Metadata collection complete. Analyzing...
INFO: Analysis complete. Scan report to follow...
Plugin Virtual Network Peering returned no results. There may be a problem with this plugin.
Plugin VM Desired SKU Size returned no results. There may be a problem with this plugin.
Plugin VM Approved Extensions returned no results. There may be a problem with this plugin.
/home/bubble/cloudsploit/helpers/azure/functions.js:203
if (!policyAssignmentStatus.length) {
^

TypeError: Cannot read properties of undefined (reading 'length')
at Object.checkPolicyAssignment (/home/bubble/cloudsploit/helpers/azure/functions.js:203:33)
at /home/bubble/cloudsploit/plugins/azure/securitycenter/monitorBlobEncryption.js:24:21
at /home/bubble/cloudsploit/node_modules/async/dist/async.js:3113:16
at eachOfArrayLike (/home/bubble/cloudsploit/node_modules/async/dist/async.js:1072:9)
at eachOf (/home/bubble/cloudsploit/node_modules/async/dist/async.js:1120:5)
at Object.eachLimit (/home/bubble/cloudsploit/node_modules/async/dist/async.js:3175:5)
at Object.run (/home/bubble/cloudsploit/plugins/azure/securitycenter/monitorBlobEncryption.js:19:15)
at /home/bubble/cloudsploit/engine.js:223:28
at /home/bubble/cloudsploit/node_modules/async/dist/async.js:3685:9
at replenish (/home/bubble/cloudsploit/node_modules/async/dist/async.js:1014:17)
```

Is Azure api updated?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.