Skip to content

Commit 0b2f83c

Browse files
adwk67claude
andcommitted
fix: restore fernet key length comment in dereference module
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bb25c12 commit 0b2f83c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rust/operator-binary/src/controller/dereference.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ pub async fn dereference(
8989
.await
9090
.context(InvalidInternalSecretSnafu)?;
9191

92+
// https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/fernet.html#security-fernet
93+
// does not document how long the fernet key should be, but recommends using
94+
// python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
95+
// which returns `jUm21LuA76YZmrIa9u4eXRg0h0P24MDC9IDOmDvJbfw=`, which has 44 characters, which makes 32 bytes.
9296
random_secret_creation::create_random_secret_if_not_exists(
9397
&airflow.shared_fernet_key_secret_name(),
9498
FERNET_KEY_SECRET_KEY,

0 commit comments

Comments
 (0)