hugochinchilla commented on issue #22738:
URL: https://github.com/apache/airflow/issues/22738#issuecomment-1285101705
Here is an example on how the issue can still be reproduced:
```python
from datetime import timedelta
from airflow import DAG
from airflow.providers.docker.operators.docker import DockerOperator
from airflow.sensors.time_delta import TimeDeltaSensor
from airflow.utils.dates import days_ago
from airflow.utils.log.secrets_masker import mask_secret
secret_value = "you cannot see this"
mask_secret(secret_value)
with DAG(
"secrets",
start_date=days_ago(1),
schedule_interval=None,
) as dag:
wait = TimeDeltaSensor(
task_id="wait",
delta=timedelta(seconds=30),
)
task = wait >> DockerOperator(
task_id="docker",
environment={
"MY_VARIABLE": secret_value,
},
image="hello-world",
)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]