-
Notifications
You must be signed in to change notification settings - Fork 26
Hardening Image for Gluu Janssen
Mohammad Abudayyeh edited this page Dec 6, 2021
·
1 revision
As we are using alpine-based image which uses busybox
applets (for example sh
is a shortcut to busybox sh
command, there are several ways to remove shell
Pros
- Only include required
busybox
applets or simply remove unwanted applet, i.e.sh
Cons
- Need to compile a customized busybox within custom alpine image
Pros
- No need to build/use custom alpine image
Cons
- Since
busybox
is uninstalled, all applets will not be available, this includes tools for troubleshoot (i.e.cat
,ls
,netstat
, etc.)
Things to consider:
- Some image entrypoints are shell script that sometime spawn multiple Python / Java / shell commands; this requires refactoring for example using
supervisor
(Python-based tool) to manage processes - ...