Skip to content

Commit

Permalink
Add ThreatIntel feed info in the settings and banner. (#2407)
Browse files Browse the repository at this point in the history
* add info in the settings as well as via banner about feed age

* update messages
  • Loading branch information
manV authored Jan 17, 2025
1 parent 8f99f2d commit bde90a9
Show file tree
Hide file tree
Showing 255 changed files with 915 additions and 262 deletions.
116 changes: 113 additions & 3 deletions deepfence_frontend/apps/dashboard/api-spec-original.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
"version": "v2.5.0"
"version": "v2.5.2"
},
"externalDocs": {
"description": "Deepfence Community",
Expand Down Expand Up @@ -786,6 +786,62 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/complete/containerimage": {
"post": {
"tags": ["Completion"],
"summary": "Get Completion for Container Image fields",
"description": "Complete Container Image info",
"operationId": "completeContainerImageInfo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompletionCompletionNodeFieldReq"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompletionCompletionNodeFieldRes"
}
}
}
},
"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/complete/host": {
"post": {
"tags": ["Completion"],
Expand Down Expand Up @@ -845,8 +901,8 @@
"/deepfence/complete/kubernetes-cluster": {
"post": {
"tags": ["Completion"],
"summary": "Get Completion for Kubernetes Cluster fields",
"description": "Complete Kubernetes Cluster info",
"summary": "Get Completion for kubernetes cluster fields",
"description": "Complete kubernetes cluster info",
"operationId": "completeKubernetesClusterInfo",
"requestBody": {
"content": {
Expand Down Expand Up @@ -1499,6 +1555,51 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/database/info": {
"get": {
"tags": ["Settings"],
"summary": "Get Database Info",
"description": "get database updated at info",
"operationId": "databaseInfo",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelDatabaseInfoResponse" }
}
}
},
"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/database/malware": {
"put": {
"tags": ["Settings"],
Expand Down Expand Up @@ -14641,6 +14742,15 @@
"vulnerability_scan_status": { "type": "string" }
}
},
"ModelDatabaseInfoResponse": {
"type": "object",
"properties": {
"malware_rules_updated_at": { "type": "string", "format": "date-time" },
"posture_controls_updated_at": { "type": "string", "format": "date-time" },
"secrets_rules_updated_at": { "type": "string", "format": "date-time" },
"vulnerability_db_updated_at": { "type": "string", "format": "date-time" }
}
},
"ModelDeleteIntegrationReq": {
"required": ["integration_ids"],
"type": "object",
Expand Down
116 changes: 113 additions & 3 deletions deepfence_frontend/apps/dashboard/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
"version": "v2.5.0"
"version": "v2.5.2"
},
"externalDocs": {
"description": "Deepfence Community",
Expand Down Expand Up @@ -786,6 +786,62 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/complete/containerimage": {
"post": {
"tags": ["Completion"],
"summary": "Get Completion for Container Image fields",
"description": "Complete Container Image info",
"operationId": "completeContainerImageInfo",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompletionCompletionNodeFieldReq"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompletionCompletionNodeFieldRes"
}
}
}
},
"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/complete/host": {
"post": {
"tags": ["Completion"],
Expand Down Expand Up @@ -845,8 +901,8 @@
"/deepfence/complete/kubernetes-cluster": {
"post": {
"tags": ["Completion"],
"summary": "Get Completion for Kubernetes Cluster fields",
"description": "Complete Kubernetes Cluster info",
"summary": "Get Completion for kubernetes cluster fields",
"description": "Complete kubernetes cluster info",
"operationId": "completeKubernetesClusterInfo",
"requestBody": {
"content": {
Expand Down Expand Up @@ -1499,6 +1555,51 @@
"security": [{ "bearer_token": [] }]
}
},
"/deepfence/database/info": {
"get": {
"tags": ["Settings"],
"summary": "Get Database Info",
"description": "get database updated at info",
"operationId": "databaseInfo",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ModelDatabaseInfoResponse" }
}
}
},
"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/database/malware": {
"put": {
"tags": ["Settings"],
Expand Down Expand Up @@ -14098,6 +14199,15 @@
"vulnerability_scan_status": { "type": "string" }
}
},
"ModelDatabaseInfoResponse": {
"type": "object",
"properties": {
"malware_rules_updated_at": { "type": "string", "format": "date-time" },
"posture_controls_updated_at": { "type": "string", "format": "date-time" },
"secrets_rules_updated_at": { "type": "string", "format": "date-time" },
"vulnerability_db_updated_at": { "type": "string", "format": "date-time" }
}
},
"ModelDeleteIntegrationReq": {
"required": ["integration_ids"],
"type": "object",
Expand Down
1 change: 1 addition & 0 deletions deepfence_frontend/apps/dashboard/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ export function getSettingsApiClient() {
getThreatMapperLicense: settingsApi.getLicense.bind(settingsApi),
deleteThreatMapperLicense: settingsApi.deleteLicense.bind(settingsApi),
testUnconfiguredEmail: settingsApi.testUnconfiguredEmail.bind(settingsApi),
getDatabaseInfo: settingsApi.databaseInfo.bind(settingsApi),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ models/ModelComplinaceScanResultsGroupReq.ts
models/ModelConnection.ts
models/ModelContainer.ts
models/ModelContainerImage.ts
models/ModelDatabaseInfoResponse.ts
models/ModelDeleteIntegrationReq.ts
models/ModelDeleteRegistryBulkReq.ts
models/ModelDownloadReportResponse.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Deepfence ThreatMapper
* Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
*
* The version of the OpenAPI document: v2.5.0
* The version of the OpenAPI document: v2.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Deepfence ThreatMapper
* Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
*
* The version of the OpenAPI document: v2.5.0
* The version of the OpenAPI document: v2.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Deepfence ThreatMapper
* Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
*
* The version of the OpenAPI document: v2.5.0
* The version of the OpenAPI document: v2.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Deepfence ThreatMapper
* Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate.
*
* The version of the OpenAPI document: v2.5.0
* The version of the OpenAPI document: v2.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit bde90a9

Please sign in to comment.