Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

feat(docker): create docker provider #462

Merged
merged 38 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0ac6453
feat(docker): Add config for Docker provider
paralta Jun 22, 2023
134b583
feat(docker): Add Docker client constructor
paralta Jun 22, 2023
f907d3d
feat(docker): Implement Discoverer interface for Docker provider
paralta Jun 22, 2023
552507c
feat(docker): connect the new docker provider to the rest of the code
adamtagscherer Jun 27, 2023
1553e1e
feat(docker): Refactor discover targets
paralta Jun 30, 2023
6aa4efd
feat(docker): add container and image support to target table
adamtagscherer Jul 4, 2023
e02827f
feat(docker): Create volume with the target container's filesystem
paralta Jul 5, 2023
858ce5e
feat(docker): Create volume with the target image's filesystem
paralta Jul 6, 2023
4020dab
feat(docker): remove scanconfig.yaml file
adamtagscherer Jul 6, 2023
e03addd
feat(docker): implement getScanConfigFileName function
adamtagscherer Jul 7, 2023
c3a0e3d
feat(docker): start scanner container part 1
adamtagscherer Jul 7, 2023
f9a6498
feat(docker): set vmclarity rest backend address to host.docker.internal
adamtagscherer Jul 10, 2023
f8689e4
feat(docker): Fix docker client constructor
paralta Jul 11, 2023
e633644
feat(docker): Fix flag in scan container script
paralta Jul 11, 2023
e39f5fc
fix(docker): scanner cli config marshalling
adamtagscherer Jul 12, 2023
b44dda3
feat(docker): Skip volume mount if volume already mounted
paralta Jul 12, 2023
6c98faf
feat(docker): Check if config file and scan container are already cre…
paralta Jul 13, 2023
1480619
feat(docker): Clean up and code review changes
paralta Jul 13, 2023
95824b8
feat: improve concurrency model for docker asset discovery
ramizpolic Jul 13, 2023
82187ca
feat: standardize docker asset discovery
ramizpolic Jul 14, 2023
0e95e16
feat(docker): Create new bridge network to run scan container
paralta Jul 14, 2023
925a740
feat(docker): Code review changes
paralta Jul 14, 2023
180ba73
feat(docker): Code review changes
paralta Jul 18, 2023
1c72df3
refactor(docker): break down entrypoint script, add comment to docker…
adamtagscherer Jul 18, 2023
061cb2b
Fix asset type switch case
paralta Jul 18, 2023
c8398a8
feat(docker): Add volume mount point as input in family configuration
paralta Jul 18, 2023
828408d
refactor(docker): remove docker config
adamtagscherer Jul 18, 2023
db563f4
feat(docker): Clean up and remove container location
paralta Jul 18, 2023
494871d
feat(docker): Fix verification errors
paralta Jul 19, 2023
51c09e6
feat: simplify docker provider flow
ramizpolic Jul 19, 2023
ed98833
feat(docker): Code review changes
paralta Jul 19, 2023
fb0e18e
feat(docker): Fix CI verification
paralta Jul 21, 2023
c917977
feat(docker): network changes for scanner container
paralta Jul 21, 2023
5d3eb0a
feat(docker): fix create volume success return
paralta Jul 24, 2023
d6e8611
feat(docker): change yaml package to fix families config marshalling
paralta Jul 24, 2023
5487d70
refactor(docker): parse constants with viper
adamtagscherer Jul 27, 2023
1f4bcac
refactor(docker): move default values to constants
adamtagscherer Jul 27, 2023
9647411
fix(docker): format with gofumpt
adamtagscherer Jul 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions api/models/models.gen.go

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

51 changes: 51 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ components:
- AWS
- Azure
- GCP
- Docker
- External

Scans:
Expand Down Expand Up @@ -1509,12 +1510,16 @@ components:
- $ref: '#/components/schemas/VMInfo'
- $ref: '#/components/schemas/PodInfo'
- $ref: '#/components/schemas/DirInfo'
- $ref: '#/components/schemas/ContainerImageInfo'
- $ref: '#/components/schemas/ContainerInfo'
discriminator:
propertyName: objectType
mapping:
VMInfo: '#/components/schemas/VMInfo'
PodInfo: '#/components/schemas/PodInfo'
DirInfo: '#/components/schemas/DirInfo'
ContainerImageInfo: '#/components/schemas/ContainerImageInfo'
ContainerInfo: '#/components/schemas/ContainerInfo'

VMInfo:
type: object
Expand Down Expand Up @@ -1567,6 +1572,52 @@ components:
required:
- objectType

ContainerInfo:
type: object
properties:
objectType:
type: string
containerName:
type: string
# TODO(paralta) Check if image needs to be a required property
image:
$ref: '#/components/schemas/ContainerImageInfo'
id:
type: string
createdAt:
type: string
format: date-time
labels:
type: array
items:
$ref: '#/components/schemas/Tag'
nullable: true
required:
- objectType

ContainerImageInfo:
type: object
properties:
objectType:
type: string
id:
type: string
name:
type: string
labels:
type: array
items:
$ref: '#/components/schemas/Tag'
nullable: true
architecture:
type: string
os:
type: string
size:
type: integer
required:
- objectType

DirInfo:
type: object
properties:
Expand Down
Loading
Loading