Skip to content

Commit

Permalink
Merge pull request #119 from JupiterOne/APP-13750
Browse files Browse the repository at this point in the history
[APP-13750] Added MongoDB Dashboard
  • Loading branch information
ahadrovic authored Sep 28, 2023
2 parents 6357271 + b033d1e commit da62aec
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ List of dashboards:
- [IR - User Endpoint Blast Radius](src/boards/user-endpoint-blast-radius/)
- [Jamf & CrowdStrike Sensor Activity](src/boards/jamf-crowdstrike/)
- [Jira Insights](src/boards/jira-insights/)
- [MongoDB Insights](src/boards/mongodb-insights/)
- [Network Security](src/boards/network-security/)
- [Okta User Management](src/boards/okta-user-management/)
- [Resource Classification](src/boards/resource-classification/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupiterone/insights-dashboards",
"version": "4.0.1",
"version": "4.0.2",
"license": "UNLICENSED",
"description": "JupiterOne Insights Dashboards",
"main": "insights-dashboards.js",
Expand Down
185 changes: 185 additions & 0 deletions src/boards/mongodb-insights/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"widgets": [
{
"noResultMessage": "No ingested API keys found",
"description": "show the related entities for all provisioned keys",
"includeDeleted": false,
"id": "4d305ef9-4c30-4ab5-abca-0ac672cb286b",
"title": "API Key Relationships",
"type": "graph",
"config": {
"queries": [
{
"name": "Query 1",
"query": "Find mongodb_api_key that relates to * return TREE"
}
],
"settings": {
"graph": {
"graphNodeView": "expanded",
"graphViewType": "tree"
}
}
}
},
{
"noResultMessage": "No ingested API Keys found",
"questionId": "",
"description": "count of undeleted keys",
"id": "7a939522-532f-4f48-a692-80dc1ad9b3c5",
"title": "API Key Count",
"type": "number",
"config": {
"queries": [
{
"name": "Query 1",
"query": "FIND mongodb_api_key AS i RETURN count(i) as value"
}
],
"settings": {
"number": {
"trendDataIsEnabled": false
}
}
}
},
{
"description": "count of users with production access",
"id": "6173eb71-938b-4b28-851f-dd1974972d63",
"questionId": "",
"title": "Production Access User Count",
"type": "number",
"config": {
"queries": [
{
"name": "Query 1",
"query": "FIND mongodb_user as i THAT HAS << mongodb_project WITH tag.Production = true RETURN count(i) as value"
}
],
"settings": {
"number": {
"warning": {
"limitCondition": "greaterThan",
"val1": "10"
},
"trendDataIsEnabled": false,
"error": {
"limitCondition": "greaterThan",
"val1": "30"
},
"success": {
"limitCondition": "greaterThan",
"val1": "20"
}
}
}
}
},
{
"description": "mapped people with login user for MongoDB",
"id": "c311004b-6fcb-4a2a-a3b5-d5a70f0ad94a",
"questionId": "",
"title": "Count of People with MongoDB Users",
"type": "number",
"config": {
"queries": [
{
"name": "Query 1",
"query": "FIND Person THAT IS << mongodb_user RETURN count (Person) as value"
}
],
"settings": {
"number": {
"warning": {
"limitCondition": "greaterThan",
"val1": "10"
},
"trendDataIsEnabled": false,
"error": {
"limitCondition": "greaterThan",
"val1": "30"
},
"success": {
"limitCondition": "greaterThan",
"val1": "20"
}
}
}
}
},
{
"description": "mapped relationships for production projects",
"noResultMessage": "No ingested MongoDB projects found",
"id": "f4f123eb-f58b-41d0-9bef-116f409f3d2b",
"title": "Production Project Relationships",
"type": "graph",
"config": {
"queries": [
{
"name": "Query 1",
"query": "FIND mongodb_project WITH tag.Production = true THAT RELATES TO * RETURN TREE"
}
],
"settings": {
"graph": {
"graphNodeView": "expanded",
"graphViewType": "mesh"
}
}
}
}
],
"layouts": {
"sm": [],
"xs": [],
"lg": [
{
"static": false,
"w": 12,
"moved": false,
"h": 2,
"x": 0,
"y": 0,
"i": "4d305ef9-4c30-4ab5-abca-0ac672cb286b"
},
{
"static": false,
"w": 4,
"moved": false,
"h": 2,
"x": 0,
"y": 2,
"i": "7a939522-532f-4f48-a692-80dc1ad9b3c5"
},
{
"static": false,
"w": 4,
"moved": false,
"h": 2,
"x": 4,
"y": 2,
"i": "6173eb71-938b-4b28-851f-dd1974972d63"
},
{
"static": false,
"w": 4,
"moved": false,
"h": 2,
"x": 8,
"y": 2,
"i": "c311004b-6fcb-4a2a-a3b5-d5a70f0ad94a"
},
{
"static": false,
"w": 12,
"moved": false,
"h": 2,
"x": 0,
"y": 4,
"i": "f4f123eb-f58b-41d0-9bef-116f409f3d2b"
}
],
"xl": [],
"md": []
}
}
Binary file added src/boards/mongodb-insights/board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/boards/mongodb-insights/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
Publisher: JupiterOne
---

# MongoDB Insights

![sample-screenshot](board.png)

See all your API keys, users, access, and projects from MongoDB and how they relate to your inventory.

> Prerequisite:
>
> This requires the following integrations: MongoDB
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import highRiskAssets from "./boards/high-risk-assets/board.json";
import jamfCrowdStrike from "./boards/jamf-crowdstrike/board.json";
import jiraInsights from "./boards/jira-insights/board.json";
import kubernetesSecurityContext from "./boards/kubernetes-security-context/board.json";
import mongoDbInsights from "./boards/mongodb-insights/board.json";
import oktaUserManagement from "./boards/okta-user-management/board.json";
import resourceClassification from "./boards/resource-classification/board.json";
import riskRegister from "./boards/risk-register/board.json";
Expand Down Expand Up @@ -60,6 +61,7 @@ export const InsightsDashboards = {
"IR - User Endpoint Blast Radius": userEndpointBlastRadius,
"Jira Insights": jiraInsights,
"Kubernetes Security Context": kubernetesSecurityContext,
"MongoDB Insights": mongoDbInsights,
"Network Access and Firewall Rules": firewall,
"Okta User Management": oktaUserManagement,
"Resource Classification": resourceClassification,
Expand Down Expand Up @@ -231,6 +233,12 @@ export const MANAGED_BOARDS = [
category: BoardCategory.SDLC_DEVSECOPS,
...jiraInsights,
},
{
id: "mongodb-insights",
name: "MongoDB Insights",
category: "",
...mongoDbInsights,
},
{
id: "secure-development",
name: "Secure Development",
Expand Down

0 comments on commit da62aec

Please sign in to comment.