-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
368 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"session": { | ||
"jobIDs": [ | ||
"80fc5ba7-e6df-4d8f-ae94-475242cd7345", | ||
"b56211c7-716a-4f9f-b27f-b4942195fa5e" | ||
], | ||
"timestamp": "2023-02-02T13:18:50.316451657+02:00", | ||
"rootJobID": "80fc5ba7-e6df-4d8f-ae94-475242cd7345", | ||
"action": "vulnerability-scan" | ||
}, | ||
"imageTag": "k8s.gcr.io/kube-proxy:v1.24.3", | ||
"wlid": "wlid://cluster-minikube/namespace-kube-system/daemonset-kube-proxy", | ||
"isScanned": false, | ||
"containerName": "kube-proxy", | ||
"jobID": "b56211c7-716a-4f9f-b27f-b4942195fa5e", | ||
"parentJobID": "80fc5ba7-e6df-4d8f-ae94-475242cd7345", | ||
"actionIDN": 3, | ||
"credentials": { | ||
"username": "oauth2accesstoken", | ||
"password": "very secret" | ||
}, | ||
"credentialsList": [ | ||
{ | ||
"username": "oauth2accesstoken", | ||
"password": "very secret" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
package domain | ||
|
||
import wssc "github.com/armosec/armoapi-go/apis" | ||
import ( | ||
"github.com/docker/docker/api/types" | ||
) | ||
|
||
type ScanIDKey struct{} | ||
type TimestampKey struct{} | ||
type WorkloadKey struct{} | ||
|
||
// ScanCommand is a proxy type for wssc.WebsocketScanCommand used to decouple business logic from implementation | ||
// it might evolve into its own struct at a later time | ||
type ScanCommand wssc.WebsocketScanCommand | ||
type ScanCommand struct { | ||
Credentialslist []types.AuthConfig | ||
ImageHash string | ||
InstanceID string | ||
Wlid string | ||
ImageTag string | ||
JobID string | ||
ContainerName string | ||
LastAction int | ||
ParentJobID string | ||
Args map[string]interface{} | ||
Session Session | ||
} | ||
|
||
type Session struct { | ||
JobIDs []string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.