mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-17 08:11:32 +00:00
added option for insecure http driver download
added option for insecure http driver download to the falco docker entrypoint. Signed-off-by: Tom Müller <60851960+toamto94@users.noreply.github.com>
This commit is contained in:
parent
159e3f6ffc
commit
56a4e31d18
@ -32,6 +32,7 @@ print_usage() {
|
|||||||
echo " --clean try to remove an already present driver installation"
|
echo " --clean try to remove an already present driver installation"
|
||||||
echo " --compile try to compile the driver locally (default true)"
|
echo " --compile try to compile the driver locally (default true)"
|
||||||
echo " --download try to download a prebuilt driver (default true)"
|
echo " --download try to download a prebuilt driver (default true)"
|
||||||
|
echo " --http-insecure enable insecure downloads"
|
||||||
echo " --print-env skip execution and print env variables for other tools to consume"
|
echo " --print-env skip execution and print env variables for other tools to consume"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Environment variables:"
|
echo "Environment variables:"
|
||||||
@ -57,6 +58,7 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
|
|||||||
|
|
||||||
ENABLE_COMPILE="false"
|
ENABLE_COMPILE="false"
|
||||||
ENABLE_DOWNLOAD="false"
|
ENABLE_DOWNLOAD="false"
|
||||||
|
HTTP_INSECURE="false"
|
||||||
has_driver=
|
has_driver=
|
||||||
has_opts=
|
has_opts=
|
||||||
for opt in "${falco_driver_loader_option_arr[@]}"
|
for opt in "${falco_driver_loader_option_arr[@]}"
|
||||||
@ -88,6 +90,9 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
|
|||||||
ENABLE_DOWNLOAD="true"
|
ENABLE_DOWNLOAD="true"
|
||||||
has_opts="true"
|
has_opts="true"
|
||||||
;;
|
;;
|
||||||
|
--http-insecure)
|
||||||
|
HTTP_INSECURE="true"
|
||||||
|
;;
|
||||||
--source-only)
|
--source-only)
|
||||||
>&2 echo "Support dropped in Falco 0.37.0."
|
>&2 echo "Support dropped in Falco 0.37.0."
|
||||||
print_usage
|
print_usage
|
||||||
@ -113,7 +118,7 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
|
|||||||
ENABLE_COMPILE="true"
|
ENABLE_COMPILE="true"
|
||||||
ENABLE_DOWNLOAD="true"
|
ENABLE_DOWNLOAD="true"
|
||||||
fi
|
fi
|
||||||
/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD
|
/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user