[bitnami/airflow] Release 2.5.1-debian-11-r9 (#24092)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2023-02-15 07:32:44 +01:00
committed by GitHub
parent a19b6e60bd
commit 840abcf915
3 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ ARG TARGETARCH
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
org.opencontainers.image.description="Application packaged by Bitnami" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="2.5.1-debian-11-r8" \
org.opencontainers.image.ref.name="2.5.1-debian-11-r9" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/airflow" \
org.opencontainers.image.title="airflow" \
org.opencontainers.image.vendor="VMware, Inc." \
@@ -28,6 +28,7 @@ airflow_env_vars=(
AIRFLOW_LASTNAME
AIRFLOW_EMAIL
AIRFLOW_EXECUTOR
AIRFLOW_RAW_FERNET_KEY
AIRFLOW_FERNET_KEY
AIRFLOW_SECRET_KEY
AIRFLOW_WEBSERVER_HOST
@@ -103,6 +104,7 @@ export AIRFLOW_EMAIL="${AIRFLOW_EMAIL:-user@example.com}"
# Airflow configuration
export AIRFLOW_EXECUTOR="${AIRFLOW_EXECUTOR:-SequentialExecutor}"
export AIRFLOW_RAW_FERNET_KEY="${AIRFLOW_RAW_FERNET_KEY:-}"
export AIRFLOW_FERNET_KEY="${AIRFLOW_FERNET_KEY:-}"
export AIRFLOW_SECRET_KEY="${AIRFLOW_SECRET_KEY:-}"
export AIRFLOW_WEBSERVER_HOST="${AIRFLOW_WEBSERVER_HOST:-127.0.0.1}"
@@ -79,6 +79,18 @@ airflow_validate() {
[[ -z "$AIRFLOW_POOL_SIZE" ]] && print_validation_error "Provided AIRFLOW_POOL_NAME but missing AIRFLOW_POOL_SIZE"
fi
# Check cryptography parameters
if [[ -n "$AIRFLOW_RAW_FERNET_KEY" && -z "$AIRFLOW_FERNET_KEY" ]]; then
local fernet_char_count
fernet_char_count="$(echo -n "$AIRFLOW_RAW_FERNET_KEY")"
if [[ "$fernet_char_count" -lt 32 ]]; then
print_validation_error "AIRFLOW_RAW_FERNET_KEY must have at least 32 characters"
elif [[ "$fernet_char_count" -gt 32 ]]; then
warn "AIRFLOW_RAW_FERNET_KEY has more than 32 characters, the rest will be ignored"
fi
AIRFLOW_FERNET_KEY="$(echo -n "${AIRFLOW_RAW_FERNET_KEY:0:32}" | base64)"
fi
return "$error_code"
}