You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/29 04:54:05 UTC

[GitHub] [airflow] KyleJamesWalker edited a comment on issue #4931: [AIRFLOW-4109] Added support for passing the airflow fernet key to th…

KyleJamesWalker edited a comment on issue #4931: [AIRFLOW-4109] Added support for passing the airflow fernet key to th…
URL: https://github.com/apache/airflow/pull/4931#issuecomment-547254353
 
 
   I'm having the same issue but if I set the following:
   ``` 
   AIRFLOW__KUBERNETES_ENVIRONMENT_VARIABLES__AIRFLOW__CORE__FERNET_KEY: "xxx="
   AIRFLOW__KUBERNETES_ENVIRONMENT_VARIABLES__FERNET_KEY: "xxx="
   ```
   
   The worker gets the variables set, but the key is lowercase, so it's not being picked up...
   So airflow doesn't pick them up: ```
   fernet_key: xxx=
   airflow__core__fernet_key: xxx=
   ```
   
   Note: Previous env values did not have the `S` at the end of `VARIABLES`
   
   For now, I added a hack and my DAG and it works just fine:
   ```
   if os.getenv('fernet_key'):
       os.environ['FERNET_KEY'] = os.environ['fernet_key']
   ```
   
   Does anyone know how to get these to be set with uppercase values?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services