Skip to content

Commit

Permalink
Merge pull request #820 from deepfence/ui-v2-onboard-add-conn-routing
Browse files Browse the repository at this point in the history
UI v2 routing changes to support my connectors page
  • Loading branch information
milan-deepfence authored Jan 18, 2023
2 parents 8416439 + 438f8ad commit 933fe01
Show file tree
Hide file tree
Showing 24 changed files with 867 additions and 193 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ui-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
Expand Down
248 changes: 236 additions & 12 deletions deepfence_frontend/apps/dashboard/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/graph/topology": {
"/deepfence/graph/topology/": {
"post": {
"tags": ["Topology"],
"summary": "Get Topology Graph",
Expand Down Expand Up @@ -529,6 +529,214 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/graph/topology/containers": {
"post": {
"tags": ["Topology"],
"summary": "Get Containers Topology Graph",
"description": "Retrieve the full topology graph associated with the account from Containers",
"operationId": "getContainersTopologyGraph",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ReportersTopologyFilters" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsGraphResult" }
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/graph/topology/hosts": {
"post": {
"tags": ["Topology"],
"summary": "Get Hosts Topology Graph",
"description": "Retrieve the full topology graph associated with the account from Hosts",
"operationId": "getHostsTopologyGraph",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ReportersTopologyFilters" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsGraphResult" }
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/graph/topology/kubernetes": {
"post": {
"tags": ["Topology"],
"summary": "Get Kubernetes Topology Graph",
"description": "Retrieve the full topology graph associated with the account from Kubernetes",
"operationId": "getKubernetesTopologyGraph",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ReportersTopologyFilters" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsGraphResult" }
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/graph/topology/pods": {
"post": {
"tags": ["Topology"],
"summary": "Get Pods Topology Graph",
"description": "Retrieve the full topology graph associated with the account from Pods",
"operationId": "getPodsTopologyGraph",
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ReportersTopologyFilters" }
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsGraphResult" }
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsBadRequestResponse" }
}
}
},
"401": { "description": "Unauthorized" },
"403": { "description": "Forbidden" },
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiDocsFailureResponse" }
}
}
}
},
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/ingest/cloud-compliance": {
"post": {
"tags": ["Cloud Compliance"],
Expand Down Expand Up @@ -870,7 +1078,7 @@
},
"/deepfence/lookup/containers": {
"post": {
"tags": ["Topology"],
"tags": ["Lookup"],
"summary": "Retrieve Containers data",
"description": "Retrieve all the data associated with containers",
"operationId": "getContainers",
Expand Down Expand Up @@ -925,7 +1133,7 @@
},
"/deepfence/lookup/hosts": {
"post": {
"tags": ["Topology"],
"tags": ["Lookup"],
"summary": "Retrieve Hosts data",
"description": "Retrieve all the data associated with hosts",
"operationId": "getHosts",
Expand Down Expand Up @@ -980,7 +1188,7 @@
},
"/deepfence/lookup/processes": {
"post": {
"tags": ["Topology"],
"tags": ["Lookup"],
"summary": "Retrieve Processes data",
"description": "Retrieve all the data associated with processes",
"operationId": "getProcesses",
Expand Down Expand Up @@ -2956,20 +3164,34 @@
"type": { "type": "string" }
}
},
"ReportersContainsFilter": {
"required": ["filter_in"],
"type": "object",
"properties": {
"filter_in": {
"type": "object",
"additionalProperties": { "type": "array", "items": {} },
"nullable": true
}
}
},
"ReportersFieldsFilters": {
"required": ["contains_filter"],
"type": "object",
"properties": {
"contains_filter": { "$ref": "#/components/schemas/ReportersContainsFilter" }
}
},
"ReportersLookupFilter": {
"required": ["in_field_filter", "node_ids"],
"type": "object",
"properties": {
"in_field_filter": {
"type": "object",
"additionalProperties": { "type": "object" },
"type": "array",
"items": { "type": "string" },
"nullable": true
},
"node_ids": {
"type": "object",
"additionalProperties": { "type": "object" },
"nullable": true
}
"node_ids": { "type": "array", "items": { "type": "string" }, "nullable": true }
}
},
"ReportersNodeInfo": {
Expand Down Expand Up @@ -3062,7 +3284,8 @@
"region_filter",
"kubernetes_filter",
"host_filter",
"pod_filter"
"pod_filter",
"field_filters"
],
"type": "object",
"properties": {
Expand All @@ -3071,6 +3294,7 @@
"items": { "type": "string" },
"nullable": true
},
"field_filters": { "$ref": "#/components/schemas/ReportersFieldsFilters" },
"host_filter": {
"type": "array",
"items": { "type": "string" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ apis/CloudResourcesApi.ts
apis/ComplianceApi.ts
apis/ControlsApi.ts
apis/DiagnosisApi.ts
apis/LookupApi.ts
apis/MalwareScanApi.ts
apis/SecretScanApi.ts
apis/ThreatApi.ts
Expand Down Expand Up @@ -58,6 +59,8 @@ models/ReportColumn.ts
models/ReportMetadataRow.ts
models/ReportRow.ts
models/ReportTable.ts
models/ReportersContainsFilter.ts
models/ReportersFieldsFilters.ts
models/ReportersLookupFilter.ts
models/ReportersNodeInfo.ts
models/ReportersProviderThreatGraph.ts
Expand Down
Loading

0 comments on commit 933fe01

Please sign in to comment.