diff --git a/docker/driver-loader-legacy/docker-entrypoint.sh b/docker/driver-loader-legacy/docker-entrypoint.sh index 7355021a357..1d3b836dd32 100755 --- a/docker/driver-loader-legacy/docker-entrypoint.sh +++ b/docker/driver-loader-legacy/docker-entrypoint.sh @@ -36,8 +36,9 @@ print_usage() { echo " --print-env skip execution and print env variables for other tools to consume" echo "" echo "Environment variables:" - echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" - echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" + echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_HTTP_HEADERS specify comma separated list of http headers for driver download (e.g. 'x-emc-namespace: default,Proxy-Authenticate: Basic')" echo "" } @@ -113,4 +114,4 @@ if [ -z "$has_opts" ]; then ENABLE_DOWNLOAD="true" fi -/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE +/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE --http-headers="$FALCOCTL_DRIVER_HTTP_HEADERS" diff --git a/docker/driver-loader/docker-entrypoint.sh b/docker/driver-loader/docker-entrypoint.sh index 0e574bbc9b9..4c29bd08b2a 100755 --- a/docker/driver-loader/docker-entrypoint.sh +++ b/docker/driver-loader/docker-entrypoint.sh @@ -36,8 +36,9 @@ print_usage() { echo " --print-env skip execution and print env variables for other tools to consume" echo "" echo "Environment variables:" - echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" - echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" + echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_HTTP_HEADERS specify comma separated list of http headers for driver download (e.g. 'x-emc-namespace: default,Proxy-Authenticate: Basic')" echo "" } @@ -113,4 +114,4 @@ if [ -z "$has_opts" ]; then ENABLE_DOWNLOAD="true" fi -/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE +/usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE --http-headers="$FALCOCTL_DRIVER_HTTP_HEADERS" diff --git a/docker/falco/docker-entrypoint.sh b/docker/falco/docker-entrypoint.sh index 8b57a9ee2f4..e7bb664b060 100755 --- a/docker/falco/docker-entrypoint.sh +++ b/docker/falco/docker-entrypoint.sh @@ -36,8 +36,9 @@ print_usage() { echo " --print-env skip execution and print env variables for other tools to consume" echo "" echo "Environment variables:" - echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" - echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_REPOS specify different URL(s) where to look for prebuilt Falco drivers (comma separated)" + echo " FALCOCTL_DRIVER_NAME specify a different name for the driver" + echo " FALCOCTL_DRIVER_HTTP_HEADERS specify comma separated list of http headers for driver download (e.g. 'x-emc-namespace: default,Proxy-Authenticate: Basic')" echo "" } @@ -92,7 +93,7 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then ;; --http-insecure) HTTP_INSECURE="true" - ;; + ;; --source-only) >&2 echo "Support dropped in Falco 0.37.0." print_usage @@ -118,7 +119,7 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then ENABLE_COMPILE="true" ENABLE_DOWNLOAD="true" fi - /usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE + /usr/bin/falcoctl driver install --compile=$ENABLE_COMPILE --download=$ENABLE_DOWNLOAD --http-insecure=$HTTP_INSECURE --http-headers="$FALCOCTL_DRIVER_HTTP_HEADERS" fi