@@ -93,7 +93,11 @@ use crate::{
9393 AirflowAuthenticationClassResolved , AirflowClientAuthenticationDetailsResolved ,
9494 } ,
9595 authorization:: AirflowAuthorizationResolved ,
96- build_recommended_labels, v1alpha2,
96+ build_recommended_labels,
97+ internal_secret:: {
98+ FERNET_KEY_SECRET_KEY , INTERNAL_SECRET_SECRET_KEY , JWT_SECRET_SECRET_KEY ,
99+ } ,
100+ v1alpha2,
97101 } ,
98102 env_vars:: { self , build_airflow_template_envs} ,
99103 operations:: {
@@ -109,21 +113,6 @@ use crate::{
109113 } ,
110114} ;
111115
112- // Used for env-vars: AIRFLOW__WEBSERVER__SECRET_KEY, AIRFLOW__API__SECRET_KEY
113- // N.B. AIRFLOW__WEBSERVER__SECRET_KEY is deprecated as of 3.0.2.
114- // Secret key used to run the api server. It should be as random as possible.
115- // It should be consistent across instances of the webserver. The webserver key
116- // is also used to authorize requests to Celery workers when logs are retrieved.
117- pub const INTERNAL_SECRET_SECRET_KEY : & str = "INTERNAL_SECRET" ;
118- // Used for env-var: AIRFLOW__API_AUTH__JWT_SECRET
119- // Secret key used to encode and decode JWTs to authenticate to public and
120- // private APIs. It should be as random as possible, but consistent across
121- // instances of API services.
122- pub const JWT_SECRET_SECRET_KEY : & str = "JWT_SECRET" ;
123- // Used for env-var: AIRFLOW__CORE__FERNET_KEY
124- // See https://airflow.apache.org/docs/apache-airflow/stable/security/secrets/fernet.html#security-fernet
125- pub const FERNET_KEY_SECRET_KEY : & str = "FERNET_KEY" ;
126-
127116pub const AIRFLOW_CONTROLLER_NAME : & str = "airflowcluster" ;
128117pub const DOCKER_IMAGE_BASE_NAME : & str = "airflow" ;
129118pub const AIRFLOW_FULL_CONTROLLER_NAME : & str =
0 commit comments