Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ typings/
# next.js build output
.next

#kalypso precompiled binary
kalypso-cli

dist/**
./output
package-lock.json
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -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
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down
1 change: 0 additions & 1 deletion src/lib/azure/AzureKustoClusterScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down