https://kedro.org/ logo
#beginners-need-help
Title
# beginners-need-help
l

lbonini

03/07/2022, 7:58 PM
Hello! @User Could you help me with this one? I'm trying to use environment variables in mlflow.yml. I need to set
MLFLOW_TRACKING_INSECURE_TLS
to
true
. How am I supposed to declare it? It works only if I export in the terminal and executes
kedro run
g

Galileo-Galilei

03/07/2022, 8:47 PM
Hi, I think that kedro suggest having a .env file to export environment variables (no matter if they are mlflow related or not) EDIT: See https://kedro.readthedocs.io/en/latest/09_development/01_set_up_vscode.html?highlight=environment%20variables#debugging
That said, you can "hack" ``kedro-mlflow`` to export automatically this environment variable by setting it in your credentials
Copy code
yaml
#credentials.yml
mlflow_credentials:
  MLFLOW_TRACKING_INSECURE_TLS: True
Copy code
yaml
#mlflow.yml
server: 
  credentials: mlflow_credentials
This will work, but this is not really the "official" way to do it
l

lbonini

03/07/2022, 11:14 PM
ok, thanks, ill try this way tomorrow and send u the feedback