Skip to content

Commit

Permalink
Merge pull request #5 from polarityio/develop
Browse files Browse the repository at this point in the history
INT-1341: Adding additional custom type support
  • Loading branch information
sarus authored Dec 11, 2024
2 parents 7c3a6f5 + 94f75f2 commit 4d4aa86
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-int-dev-checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
run-integration-development-checklist:
runs-on: ubuntu-latest
container: 'centos:7'
container: 'rockylinux:8'

steps:
- uses: actions/checkout@v2
Expand Down
27 changes: 14 additions & 13 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,29 @@
"name": "Axonius",
"acronym": "AXON",
"description": "Axonius cybersecurity asset management solutions offer a comprehensive IT asset inventory, empowering users to enforce their network security policies.",
"entityTypes": [
"dataTypes": [
"IPv4",
"domain",
"email"
"email",
{
"type": "custom",
"name": "Hostname",
"description": "Matches on possible Hostnames lookups which can be a single search term between 5 and 25 characters using A-Z, 0-9 and dashes.",
"editable": true,
"enabled": false,
"key": "hostname",
"regex": "^(?<!\\n|\\r\\n)[ \\t]*[a-zA-Z0-9\\-]{5,25}[ \\t]*(?!\\n|\\r\\n)$"
}
],
"entityTypes": ["IPv4", "domain", "email"],
"customTypes": [
{
"key": "hostname",
"regex": "^(?<!\\n|\\r\\n)[ \\t]*[a-zA-Z0-9\\-]{5,25}[ \\t]*(?!\\n|\\r\\n)$"
}
],
"onDemandOnly": true,
"styles": [
"./styles/style.less"
],
"styles": ["./styles/style.less"],
"defaultColor": "light-blue",
"block": {
"component": {
Expand All @@ -27,13 +35,6 @@
"file": "./templates/block.hbs"
}
},
"request": {
"cert": "",
"key": "",
"passphrase": "",
"ca": "",
"proxy": ""
},
"logging": {
"level": "info"
},
Expand Down Expand Up @@ -84,4 +85,4 @@
"adminOnly": true
}
]
}
}
113 changes: 71 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Axonius",
"version": "3.1.3",
"version": "3.1.4",
"main": "./integration.js",
"private": true,
"dependencies": {
"async": "^3.2.4",
"postman-request": "^2.88.1-postman.31",
"async": "^3.2.6",
"postman-request": "^2.88.1-postman.40",
"lodash": "^4.17.21"
}
}
}
31 changes: 31 additions & 0 deletions templates/block.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,35 @@
<span class="source-tag">{{adapter}}</span>
{{/each}}
{{/if}}
{{#if result.attributes.specific_data.data.associated_devices}}
<h1 class="p-title">{{fa-icon icon="laptop" fixedWidth=true}} Associated Devices</h1>
{{#each result.attributes.specific_data.data.associated_devices as | device |}}
<div class="mb-2">
<div>
<span class="p-key">Device Name:</span>
<span class="p-value">{{device.device_caption}}</span>
</div>
{{#if device.device_serial}}
<div>
<span class="p-key">Device Serial #:</span>
<span class="p-value">{{device.device_serial}}</span>
</div>
{{/if}}
{{#if device.device_labels}}
<div>
<span class="p-key">Device Tags:</span>
<span class="p-value">{{device.device_labels}}</span>
</div>
{{/if}}
<div>
<span class="p-key">Device Unique Id:</span>
<span class="p-value">
<a class="p-link" href="{{block.userOptions.url}}/devices/{{device.device_id}}">
{{device.device_id}} {{fa-icon "external-link-square" class="external-link-icon"}}
</a>
</span>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}

0 comments on commit 4d4aa86

Please sign in to comment.