forked from canonical/falco-rocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes falcosidekick and falcosidekick-ui rock bases to bare
Switching to a bare-based image will reduce the overall image size and reduces attack surface area. We can no longer use ensure_image_contains_paths to check if files exist in the rock images, since they are now bare-based. Instead, we can use ensure_image_contains_paths_bare, which checks the image layers instead. Because of this, we need sufficient permissions to check the /var/lib/docker folder. Adds additional check for falcosidekick-ui during the integration test.
- Loading branch information
1 parent
1fbc44a
commit 22cb499
Showing
6 changed files
with
43 additions
and
36 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ description: | | |
license: Apache-2.0 | ||
version: 2.2.0 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
run-user: _daemon_ | ||
|
||
|
@@ -43,9 +43,12 @@ parts: | |
# https://github.com/falcosecurity/falcosidekick-ui/blob/v2.2.0/Dockerfile#L8 | ||
falcosidekickui-user: | ||
plugin: nil | ||
overlay-script: | | ||
groupadd -R $CRAFT_OVERLAY --system falcosidekickui | ||
useradd -R $CRAFT_OVERLAY --system -g falcosidekickui -u 1234 falcosidekickui | ||
stage-packages: | ||
- base-passwd_data | ||
- base-files_base | ||
override-build: | | ||
groupadd -R $CRAFT_PART_INSTALL --system falcosidekickui | ||
useradd -R $CRAFT_PART_INSTALL --system -g falcosidekickui -u 1234 falcosidekickui | ||
build-falcosidekick-ui: | ||
plugin: nil | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ description: | | |
license: Apache-2.0 | ||
version: 2.29.0 | ||
|
||
base: [email protected] | ||
base: bare | ||
build-base: [email protected] | ||
|
||
platforms: | ||
|
@@ -35,9 +35,12 @@ parts: | |
# https://github.com/falcosecurity/falcosidekick/blob/2.29.0/Dockerfile#L8 | ||
falcosidekick-user: | ||
plugin: nil | ||
overlay-script: | | ||
groupadd -R $CRAFT_OVERLAY --system falcosidekick | ||
useradd -R $CRAFT_OVERLAY --system -g falcosidekick -u 1234 falcosidekick | ||
stage-packages: | ||
- base-passwd_data | ||
- base-files_base | ||
override-build: | | ||
groupadd -R $CRAFT_PART_INSTALL --system falcosidekick | ||
useradd -R $CRAFT_PART_INSTALL --system -g falcosidekick -u 1234 falcosidekick | ||
build-falcosidekick: | ||
plugin: nil | ||
|
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