diff --git a/.gitignore b/.gitignore index b64e014..a7acdb5 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,9 @@ typings/ # next.js build output .next +#kalypso precompiled binary +kalypso-cli + dist/** ./output package-lock.json diff --git a/README.md b/README.md index d042dc2..def5e99 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ curl -fsSL https://raw.githubusercontent.com/functional-team/kalypso-cli/refs/he ### Command line utility ```sh +# You may want to introduce the command kalypso-cli to your OS (e.g. in the PATH) Usage: kalypso-cli crawl [options] Crawl Azure Resources @@ -52,7 +53,11 @@ Find elements in json. This example lists the types of resources found in the cl jq '.crawl.resources[] | {type}' resources.json | sort -u ``` -## Developer guide +## Developers guide + +### Needed packages +* `@azure/arm-resourcegraph` + ### Build precompiled binaries (experimental) @@ -62,3 +67,15 @@ jq '.crawl.resources[] | {type}' resources.json | sort -u npm install --global xsea sudo npm run build && sudo npm run package ``` + +### Further development of the crawler - prerequisites + Feel free to fork our repository and contribute Pull Requests. + + To develop the crawler you need the following packages installed locally: + +- Node.js +- npm + + ``` + npm install commander --save + ``` \ No newline at end of file diff --git a/package.json b/package.json index 0228acb..7a63896 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@types/jsonpath": "^0.2.4", "azure-kusto-data": "^5.2.3", "boxen": "^5.1.2", - "commander": "^8.2.0", + "commander": "^8.3.0", "jsonfile": "^6.1.0", "jsonpath": "^1.1.1", "kalypso-cli": "file:" diff --git a/src/lib/azure/AzureKustoClusterScanner.ts b/src/lib/azure/AzureKustoClusterScanner.ts index 9cc07c9..a5b0335 100644 --- a/src/lib/azure/AzureKustoClusterScanner.ts +++ b/src/lib/azure/AzureKustoClusterScanner.ts @@ -56,7 +56,6 @@ export async function AzureKustoClusterScanner(kustoclusterresource:any):Promise const policyrow = JSON.parse(JSON.stringify(policy)); const tablename = policyrow.EntityName.split(".")[1].replace("[", '').replace("]", '') delete policyrow["PolicyName"] - delete policyrow["EntityName"] delete policyrow["EntityType"] if (!(tablename in updatepolicies)) {updatepolicies[tablename] = []} updatepolicies[tablename].push(policyrow)